Commit Graph
27 Commits
Author SHA1 Message Date
swaits aad93a246c Add the schema for the place registry and the record's place fields 2026-11-20 09:21:16 -07:00
swaitsandClaude Fable 5.2 358f0c4928 Give every trail a permanent number in trail-numbers.txt, and check it is only appended to
The Saved page's short links will be bit sets over these numbers, so a number
must never change or be reused. The registry is one id per line, seeded
alphabetically; build_index appends new records; the validator fails on a
record with no line, a repeated id or a malformed line; check_history fails
when an earlier line is changed, moved or removed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 15:19:50 -07:00
swaitsandClaude Fable 5.2 1601f7c755 Name the exact book or guide for every route, and link to it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 12:47:25 -07:00
swaitsandClaude Fable 5.2 5dc9d3e06c Treat relation members with the role route as main in the track tool
OpenStreetMap's wiki gives the role route as the old name of the empty role,
along with the cardinal-direction roles. The tool treated every role outside
its two lists as a side trail, which dropped 36 of the 49 ways of the Teton
Crest Trail relation. Roles the wiki does not define now stop the run, unless
every member has the same one, so no ways are dropped without a message.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 12:44:16 -07:00
swaitsandClaude Fable 5.2 f2235c420d Move the Kekekabic and Pukaskwa Coastal trails to the left-out list, keep Timberline, and write out the rule for shorter trails
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
The Gila loop's chosen start is removed: the Forest Service names none.
The "under review" sentence is no longer accepted by the data check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 12:02:51 -07:00
swaitsandClaude Fable 5.2 007ff5fb77 Add sourced day counts, seasons and permit notes, and record why short trails are listed
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 11:07:15 -07:00
swaitsandClaude Fable 5.2 d00df3b8ee Refuse held records with no reason, and note the page fixes in the changelog
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 10:53:27 -07:00
swaitsandClaude Fable 5.2 b1e3f3fb85 Stop pages stating false or contradictory things, and fix two phone layout bugs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 10:38:11 -07:00
swaitsandClaude Fable 5.2 2d6963ef77 Require a published length, limit required climbing to Class 3, and take the Escalante Overland Route off
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
Mirror to forge / mirror (push) Canceled after 0s
The length rule is 50 miles, or five days for an author's route that is
short on miles, and every trail or route needs a published length. Nothing
harder than Class 3 may be required. The Escalante Overland Route, added
earlier today, needs difficult climbing by its author's own account and
is now on the left-out list under a new reason; Muddy Creek in the San
Rafael Swell is left out because its guidebook prints no mileage.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 08:20:23 -07:00
swaitsandClaude Fable 5.2 f467fcb560 Say who each route author is, with a biography from the database
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
authors.toml gains a summary, a biography, the author's own site and
the pages each was read on, for people only. An author's page now
opens with the name and the summary, shows a joint credit only on the
route it applies to, and carries an About section after the routes.
People with three or more routes lead the authors page. Organisations
get no biography.

35 people have a summary and a biography and 4 a summary only, each
statement checked against the page it cites. Wilderness Mindset is
recorded as two people. The Sawtooth Wilderness High Route is credited
to Eric Poulin, who names himself as the author of Seeking Lost.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 12:09:34 -07:00
swaitsandClaude Fable 5.2 8637181a2b Make a trail's length one end-to-end walk, and put the map and the trails in the first screen
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
Lengths and what belongs:
- A trail's length is now the end-to-end length of its canonical path: one
  branch at a split, no side trails, no system totals. A holder's larger
  figure and the built length of an unfinished trail are separate fields
  (`system_km`, `system_note`, `built_km`), shown under the length.
- Corrected: Florida Trail 1,500 to 1,130 mi, American Discovery Trail
  6,800 to 5,008 mi, Ozark Trail to 230 mi, General Crook Trail to 138 mi,
  Sheltowee Trace to 343 mi, Allegheny Trail to 316 mi, Great Eastern
  Trail to 1,800 mi.
- The Florida Trail's and the Ice Age Trail's main tracks are re-cut as
  one walk; the other branches are alternates.
- A trail must be walkable from end to end today. Nine trails that are
  not, are a network, or fall under the floor move to the "Considered and
  left out" list. The Bayou State Trail is added. 196 trails.

Pages:
- The trail page puts the map and At a glance directly under the title;
  the home page drops its oversized hero and shows the trails and the map
  at once. Place and list pages put the list beside the map.
- Every map starts by itself once the page is ready, over a drawing of
  the tracks that is in the page from the first paint.
- Lists is in the header. The home page shows ten lists chosen in
  `collections.toml`. Tables have equal columns and stack on a phone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 18:57:21 -07:00
swaitsandClaude Fable 5.2 f2d3b71810 Add 130 views of the same records, speed up map pages, and say who maintains the site
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
- New pages built from the records: lists by length, time to walk,
  month, kind of walking and holder; place-by-list pages; a Triple Crown
  table and key-figure tables for the National Scenic and Recreation
  Trails; highest points, most climbing and climb per mile; a page for
  every route author, with the authors of three or more routes leading
  the authors page; connected trails; recently added and changed; a
  glossary and a method page. Every place page opens with a summary.
- Trail pages open with an "In brief" paragraph generated from the
  record and show when the record was last checked. The About page says
  who maintains the site and how to reach them.
- The map starts when it is reached, not with the page. The site's own
  CSS, scripts and fonts are fingerprinted and cached for a year. Every
  image has its dimensions.
- Titles are held to 60 characters and share previews get their own
  shorter description.
- Social cards are redrawn so a long name can no longer push text into
  the footer, and the site-wide card takes its wording from the site
  settings instead of an old hand-made image.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 16:51:13 -07:00
swaitsandClaude Fable 5.2 5b80fccd1e Say what each page is in the words people search with, and mark up the facts
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
A whole-site search audit found clean foundations and three gaps: titles
without the words people search for, no structured data on trail pages,
and trails that did not link to each other.

- Trail titles carry the name hikers use, the abbreviation, the length
  and what the page offers; "GPX" only where the page has one. A new
  optional `common_name` field holds the name hikers use (13 records).
- Descriptions are built from each record, at most 155 characters.
- Place and list pages are titled for what they are; heading levels no
  longer jump.
- Trail pages link to similar and related trails and to the lists they
  belong to. Every trail has at least three links from other trails.
- JSON-LD on every page: a Place for each trail, breadcrumbs, item lists
  on list and place pages, WebSite and Organization on the home page, a
  fuller Dataset on the data page.
- A social card per trail, a changelog feed, `lastmod` in the sitemap from
  record dates, `noindex` on the 404 and on raw per-trail files, a
  favicon and an `llms.txt` listing the data files and licences.
- The "Considered and left out" page has its spacing fixed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 14:57:30 -07:00
swaitsandClaude Fable 5.2 a46338afd5 Add the monthly refresh process as a project skill, with its tool
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
`/refresh-trails` starts a runbook an agent follows to check every record
against the pages it cites, re-check the trails that were left out, search
for missing trails and routes, update tracks and emblems, have every
proposal reviewed independently, and apply what the owner accepts.
`/refresh-trails light` verifies and re-checks only.

- Runbook, shared rules, eight worker briefs and the staged proposal
  format in `.claude/skills/refresh-trails/`.
- `tools/refresh.py`: preflight, slices, a polite link check, collect and
  apply, with tests. Workers stage proposals in `refresh/<date>/`, which
  git ignores; only the apply step edits records.
- `CONTRIBUTING.md` describes the refresh.

No trail record and nothing on the site changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 14:08:39 -07:00
swaitsandClaude Fable 5.2 24bfbb2fa8 Show each trail's own emblem, keep a history on every record, and list what was left out
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s
- Emblems for 81 trails, up from 41. Each is the trail's own crest, badge
  or roundel alone, cropped out of a larger logo where need be and made
  transparent where that could be done cleanly. Records without one say
  where an emblem was looked for. The validator checks the logo state.
- Every record has a `[[history]]` list: what changed or was asked for,
  on what basis, who asked and whether it was applied or declined.
  `tools/check_history.py` fails a changed fact with no history entry and
  prints earlier entries about a changed field. It runs in CI before the
  site deploys. Each trail page shows the history.
- A new page, "Considered and left out", built from `left-out.toml`:
  35 trails and routes with the reason, the deciding fact and its source.
- The Hoosier Heritage Trail has its ends, its free map set and its
  emblem from its association (issue 2). Any trail may list its holder's
  own guide or map set.
- A stated permission is quoted in the download credit box.
- `tools/gpx_track.py` turns a GPX file from a holder or a hiker into a
  record's track files.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:40:03 -07:00
swaitsandClaude Fable 5.2 d34a9617cd 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>
2026-11-16 12:22:56 -07:00
swaitsandClaude Fable 5.2 540a3220be Add the Eastern Sierra High Route and three OpenStreetMap tracks
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
The Eastern Sierra High Route (Dan Stenziano, ESHR) is a sold route, so
the record has no track.

Thames Valley, Grand Valley and Nepisiguit Mi'gmaq now have tracks from
OpenStreetMap, with elevation. The Boreal Trail does not: OpenStreetMap
holds only three short pieces of it, and its record now says so.

osm_track.py tries a third Overpass server, and tries every server once
before it waits, so a dead one no longer costs minutes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 09:38:21 -07:00
swaitsandClaude Fable 5.2 ae86d5c3cc Keep a trail's abbreviation only where one is in real use
Every record had an abbreviation because the schema required one, so
where a trail had none one was made up. Nineteen were shared by 49
trails and many were inventions nobody uses ("TCT-WY", "BT-ON").

The rule now:
- An abbreviation is recorded only where the trail's holder or author
  uses it, or it is in established use among hikers. The new field
  short_name_url names the page where it was seen.
- None is made up. short_name is optional, and a trail nobody
  abbreviates has none.
- It is written without full stops: "AT", not "A.T.".
- Two trails may truthfully share one. The City of Prescott calls the
  Prescott Circle Trail "the PCT", so its record says so.

Each of the 182 abbreviations was checked against the trail's own
pages. 104 are kept with their source page, 13 of them corrected to
the form in use (for example "MST" for both the Mountains-to-Sea and
Mid State trails, "FT" for the Florida Trail). 78 are removed.

The validator enforces the rule.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 01:25:14 -07:00
swaitsandClaude Fable 5.2 5c716c3c62 Check LongTrailsWiki's lists, link to its pages, drop five non-trails
LongTrailsWiki. Its maintainer pointed out its List of Long Trails and
its backlog, the List of Trails to Review. Every entry in the United
States and Canada on both was checked against the inclusion rule: 188
entries on the first, 573 on the second. Seven trails that meet the
rule and were missing are added: Prescott Circle, High Country Pathway,
Guadalupe Ridge, Toiyabe Crest and General George Crook trails, and the
Condor Trail and Mojave-Sonoran Trail as routes. Nothing is copied from
the wiki, whose content is share-alike: it tells us a trail exists, and
each record's facts come from the pages it names.

Links. A record can now carry any number of [[link]] tables for other
pages about the trail, each with a title, a publisher and an address.
The official site stays in hike.official_url. 97 trails link to their
page on LongTrailsWiki. The validator checks the new table.

Credit. The README gains "Other lists of long trails", naming the lists
this dataset has been checked against, LongTrailsWiki and OpenLongTrails
first.

Removed, as not walking trails: The Great Trail (Trans Canada Trail, a
30,000 km network of greenways, waterways and roads), the Great Western
Trail (a motor route), and the Iditarod, Nez Perce and Overmountain
Victory National Historic Trails. Each was marked undecided, and its
own note said why it did not belong.

From saved copies of sites that refuse automated reads: the Black
Canyon National Recreation Trail and the Montana Trail are added;
missing facts are filled on six trails; and two facts are corrected
from the holders' own pages (the Colorado Trail's high point is
13,271 ft, and the East Coast Trail is one linear trail, not a network).

The dataset now holds 182 trails, 102 with a track.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 23:52:47 -07:00
swaitsandClaude Fable 5.2 c7e8e58dce Add 41 trails found by checking other lists of long trails
Every entry on the lists other sites keep (Wikipedia's United States and
Canadian lists, the National Trails System, the OpenStreetMap wiki,
ALDHA-West, The Trek, thru-hiking.com, Nutty Hiker, HikeList, Explore
magazine's Canadian list, Hike Ontario, and the pages of about a dozen
route authors) was checked against the inclusion rule. The trails that
meet it and were missing are added: 29 official trails and 12 routes.
The dataset now holds 178 trails, 97 with a track.

Each new record confirms the trail's length and holder on the holder's
own page, includes a track only where it may be shared, and carries
sourced hiker facts. Five are marked held where a question is open.
The American Discovery Trail is listed, with its record saying how much
of it is road and shared path.

Rule changes, as decided:
- The floor stays at 50 miles. The Fundy Footpath (41 km) is removed,
  since it sits below even the band for short well-known trails.
- Not listed: paths made mainly for cycling, such as gravel rail trails
  and canal towpaths, and historic trails that are mainly driving
  routes. The README says so.
- A hiker fact may now be read on an established hiking site where the
  holder and government pages say nothing; that site is named as the
  source. The holder's figure still wins a disagreement.

New tool: tools/osm_track.py fetches a trail's OpenStreetMap route
relation and writes line.geojson, alternates.geojson and release.txt in
the dataset's form, with the measured length and number of parts. It
reproduces the existing Loyalsock and Arizona tracks exactly.

Corrections: the Deseret Hiking Route also runs through Idaho, and the
Vagabond Loop links its author's live page in place of an archived copy.

Tracks for four of the new trails (Thames Valley, Grand Valley,
Nepisiguit Mi'gmaq, Boreal) are still to be fetched: the Overpass
servers were unreachable.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 20:37:14 -07:00
swaitsandClaude Fable 5.2 d84116ce3a Add start and end positions for trails with no track
Two optional [hike] fields, start_lonlat and end_lonlat, give the
position of the place named in start and end, so that a trail with no
track can still be put on a map. 32 of the 53 trails with no track now
have at least one: 45 points in all.

Every point names its source. Only sources that fit the records'
public-domain dedication were used: the USGS Geographic Names
Information System, Natural Resources Canada's geographical names, and
Wikidata. A point is the named place, not a surveyed trailhead. Where
the trailhead itself is in none of those, the point is the lake, creek
or meadow it is named for. An end that is only a border, a whole park
or a mountain range has no point.

The validator checks the shape and range of each point, that its place
name and source are present, and that two ends are not farther apart
than the trail is long.

Also: the Eastern Continental Trail starts at Key West, as its author's
page says, and the Brazeau Loop gains its start, the Nigel Creek
trailhead.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 17:30:12 -07:00
swaitsandClaude Fable 5.2 efb6164737 Add hiker facts and elevation to the trail records
Each record gains a [hike] table with what a person choosing a trail
wants to know: a one-sentence summary, the official page, where it
starts and ends, its shape, how many days it takes, the season, the
high point, the terrain, how much is off trail and whether a permit is
needed. Every fact names the source it came from, and the validator
rejects a fact with no source. 137 of the 138 trails have the table.

The 85 trails with a track gain elevation.json: highest and lowest
points, total climb and descent, and a profile, computed by
tools/elevation.py from the AWS Terrain Tiles.

Wording: a hiker-made trail is a "route" and its person the "author";
a trail's geometry is a "track". The README, the contributing guide and
the schema now say so, and 71 sentences in the records were rewritten
to match.

Corrections found while checking sources:
- Bartram Trail: the official link now goes to the Forest Service page,
  because the old domain serves injected spam.
- Eastern Continental Trail: ends at Cap Gaspé; Newfoundland removed
  from its regions.
- Wind River High Route (Dixon and Wilson): named for both authors.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 01:32:22 -07:00
swaitsandClaude Fable 5.2 1760ae4da9 Name the dataset Long Hikes and say where changes are sent
The README is titled Long Hikes, after the site at longhikes.org, and
points to https://github.com/swaits/longhikes for issues and pull
requests. CONTRIBUTING.md has a new section on how to send a change:
the "Report a problem" form on each trail's page, editing a record in
a fork, and the checks every pull request gets.

The route table's column and the schema heading say "track policy",
as the site does; the field is still `line_policy`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 13:17:20 -07:00
swaits e998a15b30 Call a trail's geometry a track, not a line
The documents and the records' own notes now say "track" for what is
stored in line.geojson and offered as GPX. Field and file names keep
"line" (line.geojson, line_policy, line_source), and so do attribution
strings, creators' quoted words and trail names.
2026-11-13 13:06:31 -07:00
swaits 4ac5815af9 Schema and rule for person-defined routes
Person-defined routes are now listed at the same 50-mile floor as
designated trails, as records that say where the route is got from its
creator. A line is included only where the creator's terms allow it or
where OpenStreetMap carries the route; nothing is included for a sold,
withheld or unsettled route.

Adds kind, [route] and [[guide]] to the schema, the checks in
tools/validate.py, kind and line_policy in trails.csv and
index.geojson, and a second generated README table for routes.
2026-11-10 14:23:21 -07:00
swaits b0eab384d5 Do not write Python bytecode into the tree
Validate / validate (push) Canceled after 0s
validate.py imports build_index.py; stop it creating
tools/__pycache__ and ignore bytecode files.
2026-11-09 16:25:56 -07:00
swaits dd0c3ebf8e Add trail data: 64 records, 40 lines
Records, redistributable lines, alternates, logos and release
notes, one directory per trail. Lines keep their source terms;
records name the source and licence for every file.
2026-11-09 16:08:44 -07:00