Add 19 trails and 20 tracks, record stated permission, and remove the C&O Canal Towpath
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

A deeper, region-by-region search of the web added 14 official trails and
4 routes. The Hoosier Heritage Trail was added at its association's request
(issue 2) with the association's own track, shared by written permission.

- New licence value `stated-permission`, with the quoted words, who gave
  them, when and where as fields of the record, shown on the trail page
  and carried in the GPX description.
- Tracks from OpenStreetMap or the Forest Service's open trail data for
  eleven of the new trails and seven existing ones. `tools/osm_track.py`
  can join several relations and leave ways out by name.
- The C&O Canal Towpath is removed: the rule leaves out canal towpaths.
- The Grand Enchantment Trail is recorded as a route by its author, with
  no track.
- Corrections to the Finger Lakes, Ozark Highlands, Eastern Continental
  and Knobstone records, checked against the pages they cite.
- Site: the list pages' own units switch is gone in favour of the header
  one; the map switch and a swapped length range stay in step with the
  page.
- CHANGELOG.md brought up to date from the site's opening to today.

204 trails: 147 official trails and 57 routes; 126 have a track.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-16 12:22:56 -07:00
1 parent c11a72a7dd
commit d34a9617cd
127 files changed
+2612 -358

No files matched your search

+15 -2
View File
@@ -265,13 +265,26 @@ def _num(v):
def gpx_text(parts, name, url="", attribution="", licence="", licence_text="",
creator="long-trails dataset"):
"""GPX 1.1 with one <trk> and one <trkseg> per part."""
creator="long-trails dataset", permission=None):
"""GPX 1.1 with one <trk> and one <trkseg> per part.
`permission` is the source's stated-permission fields (permission_quote, permission_by,
permission_date, permission_url) when the licence is stated-permission."""
desc = []
if attribution:
desc.append(f"Attribution: {attribution}")
if licence_text:
desc.append(f"Licence: {licence_text}")
if permission and permission.get("permission_quote"):
said = f'Permission: "{permission["permission_quote"]}"'
if permission.get("permission_by"):
said += f" Said by {permission['permission_by']}"
if permission.get("permission_date"):
said += f" on {permission['permission_date']}"
said += "."
if permission.get("permission_url"):
said += f" Read at {permission['permission_url']}"
desc.append(said)
elif licence:
desc.append(f"Licence: {licence}")
out = [