Measured by tools/place_trails.py against the NPS, Wilderness Connect, CPCAD and GMBA
outlines: 260 places in places.toml and a [[place]] table, places_checked, places_track and
one history entry on each record that has a place. Trails with no track are left for a
person to place.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Records never store parents, so apply left Rocky Mountains and the other great systems out
of places.toml while a child's within named them.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Gaspésie came out as gasp-sie, Lion's Head as lion-s-head and Forks of The Credit kept a
capital T.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GMBA draws the Adirondacks by relief and its outline stops about 21 km east of Cranberry
Lake, so the 80 km Cranberry Lake 50 loop, inside the Adirondack Park, was in no range.
The cause is the source's outline, not the trail: an allow-list entry can now push a
range's outline out (grow_km, with grow_clip to keep it off ground it should not reach),
and the Adirondack Mountains use it so the loop is placed without a rule for one trail.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 25 ranges the first run's digest kept, plus the named ranges whatever their tracked
count (trails with no track will be added to them by hand): Wind River, Teton, Uinta,
Wasatch, San Juan, Sawtooth, Beartooth, Absaroka, Bitterroot, Great Smoky Mountains,
Canadian Rockies, Olympic, White Mountains, Bighorn, Sangre de Cristo, Wallowa, Ruby,
Trinity Alps, Selkirk, Brooks, Alaska Range, Ouachita and Catskill. The source has no Ozark
Mountains (only the Ozark Plateau), so that one is left out. A range's within names its
great system only, so at most two kept levels apply to a trail. Sequoia and Kings Canyon
are joined again and Glacier gets the slug glacier.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The first run filtered CPCAD to LOC IN (1,2), so Ontario (LOC 9) and Quebec (LOC 11)
parks never came back: a bug in the query, not a gap in the data. The query now
selects by park designation across all locations, adds National Park Reserve, and
reads each park's province from LOC.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
NPS writes MO-IL, ID-MT-WY and TN-NC, and the old split on commas and slashes
dropped those places' states.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
When a wilderness area and a national park hold exactly the same trails and one
name's words contain the other's, only the park is kept, so Sequoia and Kings
Canyon and Yosemite do not get two pages. The rule runs on the tracked sets in
propose and on every record's tracked and stated places in --check.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The range source lists six ranges twice under different ids (Mount Whitney Group,
Palisades, Southern Adirondacks and others). They are now one place with both ids
and the union of the two outlines, so no slug carries a numeric suffix.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A registry entry's where now comes from the outline's own source (the NPS and
Wilderness Connect state field, the CPCAD province code), else from the state
boxes in web/place-bounds.toml, else a hand value in the allow-list. A reviewed
where already in places.toml is kept on a re-run.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Up to ten trails the link stays ?t=id,id,... With more it is a version
character and a base64url bit set over the trails' permanent numbers
(trail-numbers.txt), 70 characters for any list instead of 1,013 for 49
trails. Both forms open for good; ?s= wins when both are there; a retired
or unknown number is ignored and a code that cannot be read shows the page's
existing no-trails state. A short link does not keep the order saved, so
that list opens A to Z.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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>
Choosing it asks the browser for the visitor's position once and orders the list by straight-line
distance to the nearest point of each trail's track on the overview map (or its start and end,
where it has no track), shown on each row in miles or kilometres. The position stays in the page:
it is not stored, sent or put in the address. Trails with no position go last and are counted;
a refused or failed request puts the list back in its earlier order with a plain line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each row's search words come in four tiers (name and abbreviation, author, the full names of
the states, provinces and countries plus where it starts and ends and the land unit or body its
record names, and the summary). Typed words match at the start of words in any order, without
regard to case, accents or apostrophes, and the strongest matches come first. A row that matched
only beyond its name says where in one quiet line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The loop is 57.3 km in 1 part from the Park Atlas Rae Lakes Loop layer, public
domain; the 3.0 km stem from Road's End is kept in the alternates. Bartram,
Bay Circuit and Western Uplands were checked against public layers and left
unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>