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.
This commit is contained in:
swaits committed 2026-11-10 14:23:21 -07:00
1 parent aacb43d38e
commit 4ac5815af9
10 files changed
+340 -128

No files matched your search

+8
View File
@@ -1,5 +1,13 @@
# Changelog
## 2026-11-10 - Person-defined routes added to the rule and the schema
- The inclusion rule now lists person-defined routes as well as designated trails: high routes, traverses and loops that a person or a small group worked out and published, at the same 50-mile floor. See README.md, section "Inclusion rule".
- The rule follows the creator's choice. Where the creator sells the route or chooses not to publish a line, the record has no line and no line is included from any source, OpenStreetMap included. Where the creator publishes the line freely, a line is included only where the creator's terms allow it or where OpenStreetMap carries the route as a relation.
- New record fields in docs/schema.md: `kind`, the `[route]` table (creator, year, line policy, the creator's words) and the `[[guide]]` array (what the route is got from, free or for sale, with price, publisher and ISBN where known).
- tools/validate.py checks the new fields and the line rule. tools/build_index.py carries `kind` and `line_policy` into trails.csv and index.geojson, and the README gets a second generated table for routes.
- NOTICE.md says a route's creator can ask for a record to be corrected or removed.
## 2026-11-10 - Floor lowered to 50 miles, and 40 trails added
- The inclusion rule is now 50 miles (80 km) instead of 100 km, in README.md, CONTRIBUTING.md and the tier definitions in docs/schema.md. The reason is the owner's: "It's basically multi day wilderness backpacking."
+4 -2
View File
@@ -19,7 +19,9 @@ The second command must print `OK <n> trails`.
## Add a trail
A trail belongs here when it meets the inclusion rule in README.md: a named, continuous walking route, or a named loop, of at least 50 miles (80 km) (a few well-known routes of 60-80 km are also listed), that a land agency or trail association designates, maintains and publishes as one trail, in the United States or Canada. Routes whose creators choose not to publish a track are not added.
A trail belongs here when it meets the inclusion rule in README.md: a named, continuous walking route, or a named loop, of at least 50 miles (80 km) (a few well-known routes of 60-80 km are also listed), in the United States or Canada. It is either a trail that a land agency or a trail association designates, maintains and publishes as one trail, or a person-defined route: a high route, a traverse or a loop that a person or a small group worked out and published.
A person-defined route whose creator chooses not to publish a track is still added, as a record with no line, pointing to where the route is got from its creator. No line for it is included from any source, OpenStreetMap included. The rule is in README.md, section "Inclusion rule"; the fields are in docs/schema.md.
To add one:
@@ -42,4 +44,4 @@ To add one:
- Plain, short English. No sales talk.
- Records state facts and sources. If a term comes from a source page, quote the sentence and give the page in `source.licence_text` or SOURCES.md.
- Do not add personal names or email addresses, local file paths, or notes about how a change was produced.
- Do not add personal names or email addresses, local file paths, or notes about how a change was produced. This is about contributors and about how a change was made. The published name of a route's creator, or of a guide's author, is a fact about the route and belongs in the record (`route.creator`, `guide.author`).
+2
View File
@@ -12,6 +12,8 @@ Some logos are official emblems of United States National Scenic or Historic Tra
A holder who wants a logo removed, replaced or credited differently can ask by opening an issue in this repository, or by writing to the repository maintainers through the contact shown on the repository's main page. Say which trail and which file. The file will be removed or replaced, and the record will be updated to say so.
The same applies to a person-defined route. A route's creator can ask for its record to be corrected or removed, and the record will be corrected or removed. Say which route.
## Data
Lines keep the terms of their sources. See each trail's record and SOURCES.md. In particular, lines from OpenStreetMap are © OpenStreetMap contributors and are available under the Open Database License (ODbL): https://www.openstreetmap.org/copyright
+27 -4
View File
@@ -6,15 +6,27 @@ A public dataset of long-distance hiking trails in the United States and Canada:
This is a dataset, not a guide. Each record says what the trail is, how long it is, where its line came from, and under what terms that line may be used. It is not a navigation product: lines vary in quality, some trails are unfinished, and some records have no line at all. Check a trail's own record before using its line.
The counts at this release: 104 trail records, 84 with a line, 20 records only.
The counts at this release:
<!-- BEGIN COUNTS -->
104 records, 84 with a line, 20 records only. Of these, 0 are person-defined routes: 0 with a line and 0 records only.
<!-- END COUNTS -->
## Inclusion rule
A long trail here is a named, continuous walking route, or a named loop, of at least 50 miles (80 km), that a land agency or a trail association designates, maintains and publishes as one trail, in the United States or Canada. The floor is 50 miles because that is about what multi-day wilderness backpacking takes. A small number of well-known multi-day trails between 60 km and 80 km are also listed.
A long trail here is a named, continuous walking route, or a named loop, of at least 50 miles (80 km), in the United States or Canada: either a trail that a land agency or a trail association designates, maintains and publishes as one trail, or a person-defined route as described below. The floor is 50 miles because that is about what multi-day wilderness backpacking takes. A small number of well-known multi-day trails between 60 km and 80 km are also listed.
Every United States National Scenic Trail is listed. Other trails are listed when they meet the rule above.
Some routes are left out on purpose. A few route creators choose not to publish a track for their route, because finding the way is part of the route. Those routes are not listed here, and no line for them is included, out of respect for that choice. Routes whose creators do publish a track are not affected by this rule.
Person-defined routes are listed too, at the same 50-mile floor. A person-defined route is one that a person or a small group worked out and published: a high route, a traverse, or a loop of linked trails. Its record names the creator and says where the route is got from the creator: the guidebook, map set or page, and whether it is free or sold. Whether a line is included follows the creator's choice:
- The creator sells the route, or chooses not to publish a line: the record has no line. No line is included from any source, OpenStreetMap included.
- The creator publishes the line freely: a line is included only where the creator's terms allow passing it on, or where OpenStreetMap carries the route as a route relation. Otherwise the record points to the creator's own download.
- Not settled: the record has no line until it is.
A creator who wants a record changed or removed can ask; see NOTICE.md.
A trail may be listed as a record only, with no line, when no line for it may be shared. The record says why.
@@ -131,6 +143,17 @@ A trail may be listed as a record only, with no line, when no line for it may be
<!-- END TRAIL TABLE -->
## Person-defined routes
Routes that a person or a small group worked out and published. The record says who made the route, where it is got from, and whether the creator shares the line. See the inclusion rule above.
<!-- BEGIN ROUTE TABLE -->
| ID | Route | Country | States / provinces | Length (km) | Creator | Line policy | Line | First guide |
| --- | --- | --- | --- | ---: | --- | --- | --- | --- |
<!-- END ROUTE TABLE -->
## Layout
One directory per trail. The directory name is the trail's stable `id` and never changes.
@@ -159,7 +182,7 @@ SOURCES.md each distinct source, its terms, and the trails that use it
- Read a trail: open its `trail.toml`. The `[source]` section says where the line came from and under what terms it may be used.
- Read all trails at once: use `trails.csv`, or `index.geojson` for a map overview.
- Check the data: run `python3 tools/validate.py`. It prints `OK 104 trails` when all records pass.
- Check the data: run `python3 tools/validate.py`. It prints `OK <n> trails` when all records pass.
- Rebuild the generated files after editing a record: run `python3 tools/build_index.py`.
Follow the licence in each record. Lines from OpenStreetMap need the credit "© OpenStreetMap contributors" and stay under the ODbL. Lines from United States federal agencies are public domain in the United States. Other lines carry the credit named in their record.
+8
View File
@@ -48,6 +48,14 @@ Used by: 1 record (The Great Trail), record only.
Terms: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0, as stated on the source item (read 2026-11-09; source page in the record). Those terms do not allow commercial use or derivatives, so no line from this source is included.
## Person-defined routes (creator's own pages, no line included)
Used by: the person-defined routes (`kind = "route"`). Each record names its creator and the guide the route is got from, in its `[[guide]]` tables, and `route.line_policy` says whether the creator shares the line.
Terms found: none. No route creator's page read on 2026-11-10 states a licence for the route's line. The record says where the line may be got from the creator, and `source.line_absent_reason` says why no line is included here: the route is sold as a guide, the creator withholds the line, the question is not settled, or the creator offers a download with no licence that allows passing it on. Where OpenStreetMap carries the route as a route relation and the creator publishes the line freely, the line comes from OpenStreetMap under the terms above.
Page: the creator's or publisher's own page for the guide, given in each record's first `[[guide]]` and quoted in `route.creator_words_url` where the creator's words are quoted.
## Every record's source
+34 -3
View File
@@ -32,13 +32,14 @@ line_file = "line.geojson"
| --- | --- | --- | --- |
| `id` | string | Stable identifier. Equals the directory name. Never changes. | `"long-trail"` |
| `name` | string | The trail's own name. | `"Long Trail (Vermont)"` |
| `short_name` | string | Abbreviation, as carried on the trail's shield. | `"LT"` |
| `short_name` | string | Abbreviation, as carried on the trail's shield, or the short form of a route's name where it has no shield. | `"LT"` |
| `country` | string | `US` or `CA`. | `"US"` |
| `regions` | array of strings | State, province or territory codes crossed. | `["VT"]` |
| `length_km` | integer | Published length in kilometres. A check value, not measured from the line. | `438` |
| `length_note` | string | Where the published length comes from. | `"272 mi published"` |
| `tier` | string | `national` (US National Scenic Trail), `regional` (80 km or more), `short` (well-known, 60-80 km), `deferred`, or `candidate`. | `"regional"` |
| `designation` | string | What makes it a long trail: statute, agency or association. | `"National Scenic Trail (1968)"` |
| `kind` | string, where present | `"route"` for a person-defined route: one that a person or a small group worked it out and published. Absent means a designated trail: one that a land agency or a trail association designates. | `"route"` |
| `tier` | string | `national` (US National Scenic Trail), `regional` (80 km or more), `short` (well-known, 60-80 km), `deferred`, or `candidate`. The tiers apply to routes as well. | `"regional"` |
| `designation` | string | What makes it a long trail: statute, agency or association, or for a route the person and year it was published. | `"National Scenic Trail (1968)"` |
| `wave` | integer or string | `1` for trails in the first set; `"held"` where listing is undecided. | `1` |
| `wave_note` | string, where present | Why a held trail is held. | `"Held: no usable whole line exists."` |
| `inclusion` | string, where present | `nst-unconditional` for every National Scenic Trail; `candidate-decision-pending` for a candidate. Absent otherwise. | `"nst-unconditional"` |
@@ -97,6 +98,36 @@ line_file = "line.geojson"
| `parts` | integer, where verified | Pieces left after joining line ends within 100 m. | `1` |
| `note` | string | What was found, including failures and gaps. | `"389.5 km in 12 parts against 480 km planned."` |
## `[route]`: the creator and the line policy
Present only when `kind = "route"`. A route is a high route, a traverse or a loop of linked trails that a person or a small group worked out and published.
| Field | Type | Meaning | Example |
| --- | --- | --- | --- |
| `creator` | string | The person, people or group who worked the route out. | `"Steve Roper"` |
| `year` | integer, where known | The year the route was first published or first walked, as the source states it. Absent when no page read states one. | `1970` |
| `line_policy` | string | `open` (the creator publishes the line freely), `sold` (the route is got by buying a guide or map set), `withheld` (the creator chooses not to publish a line), or `unclear` (not settled). | `"sold"` |
| `creator_words` | string, where found | The creator's own words on sharing the line, quoted exactly. | `"There is no route, so you must create one on your own."` |
| `creator_words_url` | string, where `creator_words` is present | The page the words were read on. | `"https://andrewskurka.com/adventures/great-western-loop/route-description/"` |
| `creator_words_by` | string, where the words are another person's | Whose words `creator_words` quotes, when they are not the creator's. | `"Andrew Skurka"` |
| `note` | string, where present | Anything else about the route's lines: when it was first walked, what it links, what is still missing. | `"The guidebook's maps are the line."` |
## `[[guide]]`: where the route is got from
An array of tables, one per guide, and at least one for every route. A guide is the book, map set or page that gives the route.
| Field | Type | Meaning | Example |
| --- | --- | --- | --- |
| `title` | string | The guide's title or the page's name. | `"Sierra High Route, 2nd Edition"` |
| `author` | string | Who wrote or published it. | `"Steve Roper"` |
| `access` | string | `"free"` or `"purchase"`. | `"purchase"` |
| `url` | string | The creator's or publisher's own page for the guide. | `"https://www.mountaineers.org/books/books/sierra-high-route-2nd-edition-traversing-timberline-country"` |
| `format` | string | What the guide is: book, map set, web page, GPX file, and so on. | `"book"` |
| `price` | string, where known | The price exactly as the page states it, with the date read in `price_checked`. | `"$24.95"` |
| `price_checked` | string (date), where `price` is present | Date the price was read, `YYYY-MM-DD`. | `"2026-11-10"` |
| `publisher` | string, where known | The publisher, where it is not the author. | `"Mountaineers Books"` |
| `isbn` | string, where known | The book's ISBN. | `"978-0-89886-506-6"` |
## Files beside the record
| File | Meaning |
+1 -1
View File
@@ -1 +1 @@
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-122.875553,53.339327],[-122.881838,53.351788],[-122.891778,53.358552],[-122.891242,53.361783],[-122.894789,53.368134],[-122.906642,53.373966],[-122.907603,53.377345],[-122.912909,53.381547],[-122.92271,53.38655],[-122.928757,53.38731],[-122.931061,53.393432],[-122.936923,53.395851],[-122.937368,53.399661],[-122.945762,53.408371],[-122.971149,53.405806],[-122.973361,53.404575],[-122.97271,53.40188],[-122.975896,53.401531],[-122.978589,53.403034],[-122.982511,53.402453],[-123.006448,53.407586],[-123.013342,53.410338],[-123.030924,53.410532],[-123.038367,53.408616],[-123.048329,53.39839]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-123.10167,53.351448],[-123.100719,53.354906],[-123.093371,53.359083],[-123.082341,53.359967],[-123.062726,53.368344],[-123.056817,53.37933],[-123.058128,53.382755],[-123.053224,53.386331],[-123.048329,53.39839]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-123.136824,53.311822],[-123.119514,53.330228],[-123.116319,53.339168],[-123.108867,53.343775],[-123.10167,53.351448]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-123.140027,53.308575],[-123.136824,53.311822]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-123.13939,53.302373],[-123.142107,53.305387],[-123.140027,53.308575]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-123.13939,53.302373],[-123.147165,53.305913],[-123.155772,53.30528],[-123.176201,53.310196],[-123.184921,53.309869],[-123.192142,53.306027],[-123.197003,53.310044],[-123.201173,53.31062],[-123.209878,53.308658],[-123.248822,53.307457],[-123.278104,53.298158],[-123.287334,53.291484],[-123.298467,53.287648],[-123.318724,53.291683],[-123.328187,53.297276],[-123.338329,53.298309],[-123.387056,53.295682],[-123.403041,53.296345],[-123.417067,53.295034],[-123.419632,53.296493],[-123.420378,53.294455],[-123.42917,53.29342],[-123.440993,53.289099],[-123.447718,53.289523],[-123.4643,53.285916],[-123.48308,53.284338],[-123.505365,53.285949],[-123.5155,53.288116],[-123.52385,53.286445],[-123.541816,53.286039],[-123.549694,53.281335],[-123.556659,53.280684],[-123.564852,53.281652],[-123.586788,53.288154],[-123.600513,53.294191],[-123.62354,53.29744],[-123.6279,53.29617],[-123.63123,53.29758],[-123.63687,53.29724],[-123.63703,53.29434],[-123.64824,53.29188],[-123.666831,53.294379],[-123.682347,53.287805],[-123.690131,53.28742],[-123.692427,53.285553],[-123.710474,53.286741],[-123.714493,53.283163],[-123.723146,53.28333],[-123.726969,53.281987],[-123.735291,53.282955],[-123.745833,53.287005],[-123.754362,53.287675],[-123.758671,53.28484],[-123.767475,53.285202],[-123.773907,53.287694],[-123.772255,53.284453],[-123.773711,53.282249],[-123.790468,53.27736],[-123.795026,53.278724],[-123.806425,53.272833],[-123.82462,53.273268],[-123.827029,53.270872],[-123.834728,53.268798],[-123.856195,53.266649],[-123.863108,53.264408],[-123.873628,53.265084],[-123.877714,53.263371],[-123.888996,53.263128],[-123.893688,53.258111],[-123.900944,53.255169],[-123.911898,53.252164],[-123.921545,53.251679],[-123.93328,53.24704],[-123.940314,53.247202],[-123.942071,53.241453],[-123.950716,53.234948],[-123.950074,53.23384],[-123.953614,53.232661],[-123.963067,53.231509],[-123.979296,53.233712],[-123.994477,53.232194],[-124.025477,53.222528],[-124.050185,53.21736],[-124.059852,53.213074],[-124.073561,53.210852],[-124.103804,53.211466],[-124.121685,53.204588],[-124.137021,53.189355],[-124.156982,53.178435],[-124.180935,53.176305],[-124.207369,53.177364],[-124.215546,53.174999],[-124.22545,53.17488],[-124.236706,53.169691],[-124.247913,53.172359],[-124.267828,53.168793],[-124.270103,53.170667],[-124.278167,53.17244],[-124.283904,53.171611],[-124.298453,53.168525],[-124.313606,53.162849],[-124.321235,53.155202],[-124.329567,53.153357],[-124.332491,53.149575],[-124.338501,53.146597]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-124.350489,53.142339],[-124.369382,53.135986],[-124.384512,53.13435],[-124.402961,53.129914],[-124.404411,53.125239]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail"},"geometry":{"type":"LineString","coordinates":[[-124.404427,53.124807],[-124.401891,53.120961]]}},{"type":"Feature","properties":Line truncated
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-122.875553,53.339327],[-122.881838,53.351788],[-122.891778,53.358552],[-122.891242,53.361783],[-122.894789,53.368134],[-122.906642,53.373966],[-122.907603,53.377345],[-122.912909,53.381547],[-122.92271,53.38655],[-122.928757,53.38731],[-122.931061,53.393432],[-122.936923,53.395851],[-122.937368,53.399661],[-122.945762,53.408371],[-122.971149,53.405806],[-122.973361,53.404575],[-122.97271,53.40188],[-122.975896,53.401531],[-122.978589,53.403034],[-122.982511,53.402453],[-123.006448,53.407586],[-123.013342,53.410338],[-123.030924,53.410532],[-123.038367,53.408616],[-123.048329,53.39839]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-123.10167,53.351448],[-123.100719,53.354906],[-123.093371,53.359083],[-123.082341,53.359967],[-123.062726,53.368344],[-123.056817,53.37933],[-123.058128,53.382755],[-123.053224,53.386331],[-123.048329,53.39839]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-123.136824,53.311822],[-123.119514,53.330228],[-123.116319,53.339168],[-123.108867,53.343775],[-123.10167,53.351448]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-123.140027,53.308575],[-123.136824,53.311822]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-123.13939,53.302373],[-123.142107,53.305387],[-123.140027,53.308575]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-123.13939,53.302373],[-123.147165,53.305913],[-123.155772,53.30528],[-123.176201,53.310196],[-123.184921,53.309869],[-123.192142,53.306027],[-123.197003,53.310044],[-123.201173,53.31062],[-123.209878,53.308658],[-123.248822,53.307457],[-123.278104,53.298158],[-123.287334,53.291484],[-123.298467,53.287648],[-123.318724,53.291683],[-123.328187,53.297276],[-123.338329,53.298309],[-123.387056,53.295682],[-123.403041,53.296345],[-123.417067,53.295034],[-123.419632,53.296493],[-123.420378,53.294455],[-123.42917,53.29342],[-123.440993,53.289099],[-123.447718,53.289523],[-123.4643,53.285916],[-123.48308,53.284338],[-123.505365,53.285949],[-123.5155,53.288116],[-123.52385,53.286445],[-123.541816,53.286039],[-123.549694,53.281335],[-123.556659,53.280684],[-123.564852,53.281652],[-123.586788,53.288154],[-123.600513,53.294191],[-123.62354,53.29744],[-123.6279,53.29617],[-123.63123,53.29758],[-123.63687,53.29724],[-123.63703,53.29434],[-123.64824,53.29188],[-123.666831,53.294379],[-123.682347,53.287805],[-123.690131,53.28742],[-123.692427,53.285553],[-123.710474,53.286741],[-123.714493,53.283163],[-123.723146,53.28333],[-123.726969,53.281987],[-123.735291,53.282955],[-123.745833,53.287005],[-123.754362,53.287675],[-123.758671,53.28484],[-123.767475,53.285202],[-123.773907,53.287694],[-123.772255,53.284453],[-123.773711,53.282249],[-123.790468,53.27736],[-123.795026,53.278724],[-123.806425,53.272833],[-123.82462,53.273268],[-123.827029,53.270872],[-123.834728,53.268798],[-123.856195,53.266649],[-123.863108,53.264408],[-123.873628,53.265084],[-123.877714,53.263371],[-123.888996,53.263128],[-123.893688,53.258111],[-123.900944,53.255169],[-123.911898,53.252164],[-123.921545,53.251679],[-123.93328,53.24704],[-123.940314,53.247202],[-123.942071,53.241453],[-123.950716,53.234948],[-123.950074,53.23384],[-123.953614,53.232661],[-123.963067,53.231509],[-123.979296,53.233712],[-123.994477,53.232194],[-124.025477,53.222528],[-124.050185,53.21736],[-124.059852,53.213074],[-124.073561,53.210852],[-124.103804,53.211466],[-124.121685,53.204588],[-124.137021,53.189355],[-124.156982,53.178435],[-124.180935,53.176305],[-124.207369,53.177364],[-124.215546,53.174999],[-124.22545,53.17488],[-124.236706,53.169691],[-124.247913,53.172359],[-124.267828,53.168793],[-124.270103,53.170667],[-124.278167,53.17244],[-124.283904,53.171611],[-124.298453,53.168525],[-124.313606,53.162849],[-124.321235,53.155202],[-124.329567,53.153357],[-124.332491,53.149575],[-124.338501,53.146597]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie Heritage Trail","kind":"designated"},"geometry":{"type":"LineString","coordinates":[[-124.350489,53.142339],[-124.369382,53.135986],[-124.384512,53.13435],[-124.402961,53.129914],[-124.404411,53.125239]]}},{"type":"Feature","properties":{"id":"alexander-mackenzie","name":"Alexander MacKenzie HeritaLine truncated
+89 -13
View File
@@ -19,19 +19,29 @@ except ModuleNotFoundError: # Python < 3.11: minimal fallback for this repo's T
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BEGIN = "<!-- BEGIN TRAIL TABLE -->"
END = "<!-- END TRAIL TABLE -->"
COUNT_BEGIN = "<!-- BEGIN COUNTS -->"
COUNT_END = "<!-- END COUNTS -->"
ROUTE_BEGIN = "<!-- BEGIN ROUTE TABLE -->"
ROUTE_END = "<!-- END ROUTE TABLE -->"
DESIGNATED = "designated"
def load_toml(path):
if tomllib is not None:
with open(path, "rb") as f:
return tomllib.load(f)
rec, section = {}, None
rec, table = {}, None
for raw in open(path, encoding="utf-8"):
line = raw.strip()
if not line or line.startswith("#"):
continue
if line.startswith("[[") and line.endswith("]]"):
# array of tables, for example [[guide]]
table = {}
rec.setdefault(line[2:-2].strip(), []).append(table)
continue
if line.startswith("[") and line.endswith("]"):
section = rec.setdefault(line[1:-1], {})
table = rec.setdefault(line[1:-1].strip(), {})
continue
key, _, val = line.partition("=")
val = val.strip()
@@ -46,7 +56,7 @@ def load_toml(path):
out = int(val)
except ValueError:
out = float(val)
(section if section is not None else rec)[key.strip()] = out
(table if table is not None else rec)[key.strip()] = out
return rec
@@ -64,17 +74,25 @@ def load_trails(root=ROOT):
return trails
def trail_kind(t):
return t.get("kind") or DESIGNATED
def line_policy(t):
return t.get("route", {}).get("line_policy", "") if trail_kind(t) == "route" else ""
def csv_text(trails):
buf = io.StringIO()
w = csv.writer(buf, lineterminator="\n")
w.writerow(["id", "name", "country", "regions", "length_km", "status",
"line_source", "licence"])
"line_source", "licence", "kind", "line_policy"])
for t in trails:
src = t.get("source", {})
status = "included" if src.get("line_file") else "record-only"
w.writerow([t["id"], t["name"], t["country"], ";".join(t.get("regions", [])),
t["length_km"], status, src.get("line_source", ""),
src.get("licence", "")])
src.get("licence", ""), trail_kind(t), line_policy(t)])
return buf.getvalue()
@@ -146,39 +164,97 @@ def index_geojson_text(trails, root=ROOT):
new_geom = {"type": "MultiLineString", "coordinates": parts}
else:
continue
props = {"id": t["id"], "name": t["name"], "kind": trail_kind(t)}
if trail_kind(t) == "route":
props["line_policy"] = line_policy(t)
features.append({
"type": "Feature",
"properties": {"id": t["id"], "name": t["name"]},
"properties": props,
"geometry": new_geom,
})
fc = {"type": "FeatureCollection", "features": features}
return json.dumps(fc, ensure_ascii=False, separators=(",", ":")) + "\n"
def _cell(value):
return str(value).replace("|", "\\|")
def readme_table(trails):
lines = [
"| ID | Trail | Country | States / provinces | Length (km) | Line | Licence |",
"| --- | --- | --- | --- | ---: | --- | --- |",
]
for t in trails:
if trail_kind(t) != DESIGNATED:
continue
src = t.get("source", {})
line = "yes" if src.get("line_file") else "no (record only)"
regions = ", ".join(t.get("regions", []))
name = str(t["name"]).replace("|", "\\|")
lines.append(
f"| {t['id']} | {name} | {t['country']} | {regions} | {t['length_km']} | {line} | {src.get('licence','')} |"
f"| {t['id']} | {_cell(t['name'])} | {t['country']} | {regions} | "
f"{t['length_km']} | {line} | {src.get('licence','')} |"
)
return "\n".join(lines)
def first_guide(t):
guides = t.get("guide") or []
if not guides:
return ""
g = guides[0]
title = _cell(g.get("title", ""))
url = g.get("url", "")
access = g.get("access", "")
return f"[{title}]({url}) ({access})" if url else f"{title} ({access})"
def readme_route_table(trails):
lines = [
"| ID | Route | Country | States / provinces | Length (km) | Creator | Line policy | Line | First guide |",
"| --- | --- | --- | --- | ---: | --- | --- | --- | --- |",
]
for t in trails:
if trail_kind(t) != "route":
continue
src = t.get("source", {})
line = "yes" if src.get("line_file") else "no"
regions = ", ".join(t.get("regions", []))
lines.append(
f"| {t['id']} | {_cell(t['name'])} | {t['country']} | {regions} | "
f"{t['length_km']} | {_cell(t.get('route', {}).get('creator', ''))} | "
f"{line_policy(t)} | {line} | {first_guide(t)} |"
)
return "\n".join(lines)
def counts_line(trails):
total = len(trails)
with_line = sum(1 for t in trails if t.get("source", {}).get("line_file"))
routes = [t for t in trails if trail_kind(t) == "route"]
routes_with_line = sum(1 for t in routes if t.get("source", {}).get("line_file"))
return (
f"{total} records, {with_line} with a line, {total - with_line} records only. "
f"Of these, {len(routes)} are person-defined routes: {routes_with_line} with a line "
f"and {len(routes) - routes_with_line} records only."
)
def replace_block(text, begin, end, body, path):
if begin not in text or end not in text:
raise SystemExit(f"README markers {begin!r} and {end!r} not found in {path}")
before, rest = text.split(begin, 1)
_, after = rest.split(end, 1)
return before + begin + "\n\n" + body + "\n\n" + end + after
def render_readme(readme_path, trails):
with open(readme_path, encoding="utf-8") as f:
text = f.read()
if BEGIN not in text or END not in text:
raise SystemExit(f"README trail-table markers not found in {readme_path}")
before, rest = text.split(BEGIN, 1)
_, after = rest.split(END, 1)
return before + BEGIN + "\n\n" + readme_table(trails) + "\n\n" + END + after
text = replace_block(text, COUNT_BEGIN, COUNT_END, counts_line(trails), readme_path)
text = replace_block(text, BEGIN, END, readme_table(trails), readme_path)
text = replace_block(text, ROUTE_BEGIN, ROUTE_END, readme_route_table(trails), readme_path)
return text
def main():
+62
View File
@@ -22,6 +22,8 @@ ALLOWED_LICENCES = {
"CC-BY-NC-ND-4.0", "none-stated", "restricted", "unknown",
}
DATA_LICENCES = {"us-gov-public-domain", "CC-BY-4.0", "CC-BY", "ODbL-1.0"}
LINE_POLICIES = {"open", "sold", "withheld", "unclear"}
NO_LINE_POLICIES = {"sold", "withheld", "unclear"}
DATE_RE = re.compile(r"^\d{4}-\d{2}-\d{2}$")
spec = importlib.util.spec_from_file_location(
@@ -196,6 +198,66 @@ def main():
if not rec.get("verification", {}).get("verified") in (True, False):
errors.append(f"{tid}: missing required field verification.verified")
kind = rec.get("kind")
route = rec.get("route")
guides = rec.get("guide")
if kind is not None and kind != "route":
errors.append(f"{tid}: kind must be \"route\" when present, not {kind!r}")
if kind == "route":
if not isinstance(route, dict):
errors.append(f"{tid}: kind is \"route\" but there is no [route] table")
route = {}
if not str(route.get("creator", "")).strip():
errors.append(f"{tid}: route.creator is missing")
policy = route.get("line_policy")
if policy not in LINE_POLICIES:
errors.append(
f"{tid}: route.line_policy must be one of "
f"{', '.join(sorted(LINE_POLICIES))}, not {policy!r}")
if (str(route.get("creator_words", "")).strip()
and not str(route.get("creator_words_url", "")).strip()):
errors.append(
f"{tid}: route.creator_words is present but "
"route.creator_words_url is missing")
if not isinstance(guides, list) or not guides:
errors.append(f"{tid}: kind is \"route\" but there is no [[guide]] table")
else:
for i, g in enumerate(guides, 1):
for field in ("title", "author", "access", "url"):
if not str(g.get(field, "")).strip():
errors.append(f"{tid}: guide {i} is missing {field}")
if g.get("access") not in ("free", "purchase"):
errors.append(
f"{tid}: guide {i} access must be \"free\" or \"purchase\", "
f"not {g.get('access')!r}")
if not str(g.get("url", "")).startswith(("https://", "http://")):
errors.append(f"{tid}: guide {i} url must be an http(s) URL")
if (str(g.get("price", "")).strip()
and not DATE_RE.match(str(g.get("price_checked", "")))):
errors.append(
f"{tid}: guide {i} has a price but no price_checked date "
"(YYYY-MM-DD)")
if policy in NO_LINE_POLICIES:
if src.get("line_file"):
errors.append(
f"{tid}: line_policy is {policy}, so source.line_file must be empty")
for name in ("line.geojson", "alternates.geojson"):
if os.path.isfile(os.path.join(tdir, name)):
errors.append(
f"{tid}: line_policy is {policy}, so {name} must not be present")
if osm.get("relation"):
errors.append(
f"{tid}: line_policy is {policy}, so osm.relation must be 0")
if not str(src.get("line_absent_reason", "")).strip():
errors.append(
f"{tid}: line_policy is {policy}, so source.line_absent_reason "
"must say why no line is included")
else:
if route is not None:
errors.append(f"{tid}: [route] table present but kind is not \"route\"")
if guides:
errors.append(f"{tid}: [[guide]] present but kind is not \"route\"")
for dirpath, dirnames, filenames in os.walk(ROOT):
if ".git" in dirpath:
dirnames[:] = []
+105 -105
View File
@@ -1,105 +1,105 @@
id,name,country,regions,length_km,status,line_source,licence
alexander-mackenzie,Alexander MacKenzie Heritage Trail,CA,BC,420,included,OpenStreetMap,ODbL-1.0
allegheny-trail,Allegheny Trail,US,WV,530,included,OpenStreetMap,ODbL-1.0
appalachian,Appalachian National Scenic Trail,US,GA;NC;TN;VA;WV;MD;PA;NJ;NY;CT;MA;VT;NH;ME,3537,included,National Park Service Appalachian NST and Appalachian Trail Conservancy,us-gov-public-domain
arizona,Arizona National Scenic Trail,US,AZ,1287,included,OpenStreetMap,ODbL-1.0
avon,Avon Trail,CA,ON,130,included,OpenStreetMap,ODbL-1.0
backbone,Backbone Trail,US,CA,108,included,OpenStreetMap,ODbL-1.0
baker,Baker Trail,US,PA,216,included,OpenStreetMap,ODbL-1.0
bartram,Bartram Trail,US,GA;NC,180,included,OpenStreetMap,ODbL-1.0
batona,Batona Trail,US,NJ,80,included,OpenStreetMap,ODbL-1.0
bay-circuit,Bay Circuit Trail,US,MA,370,included,OpenStreetMap,ODbL-1.0
benton-mackaye,Benton MacKaye Trail,US,GA;TN;NC,463,included,OpenStreetMap,ODbL-1.0
border-route,Border Route Trail,US,MN,105,included,OpenStreetMap,ODbL-1.0
brazeau-loop,Brazeau Loop,CA,AB,81,record-only,none (no line included),none-stated
bruce-trail,Bruce Trail,CA,ON,890,included,OpenStreetMap,ODbL-1.0
buckeye,Buckeye Trail,US,OH,2250,included,OpenStreetMap,ODbL-1.0
california-coastal,California Coastal Trail,US,CA,1931,record-only,none (no line included),none-stated
canol,Canol Heritage Trail,CA,NT,371,included,OpenStreetMap,ODbL-1.0
centennial-sd,Centennial Trail,US,SD,179,included,OpenStreetMap,ODbL-1.0
chesapeake-ohio-canal,Chesapeake and Ohio Canal Towpath,US,MD;DC;WV,297,record-only,none (no line included),none-stated
cohos,Cohos Trail,US,NH,270,included,OpenStreetMap,ODbL-1.0
colorado-trail,Colorado Trail,US,CO,782,included,"USDA Forest Service (EDW National Forest System trails), with OpenStreetMap where the Forest Service publishes no segment",us-gov-public-domain
continental-divide,Continental Divide National Scenic Trail,US,NM;CO;WY;ID;MT,4989,included,Continental Divide Trail Coalition (CDTC),CC-BY
corvallis-to-the-sea,Corvallis-to-the-Sea Trail,US,OR,97,included,OpenStreetMap,ODbL-1.0
cranberry-lake-50,Cranberry Lake 50,US,NY,80,included,OpenStreetMap,ODbL-1.0
cross-vermont,Cross Vermont Trail,US,VT,145,included,OpenStreetMap,ODbL-1.0
cumberland-trail,Cumberland Trail,US,TN,480,included,OpenStreetMap,ODbL-1.0
donut-hole,Donut Hole Trail,US,PA,152,included,OpenStreetMap,ODbL-1.0
east-coast-trail,East Coast Trail (Newfoundland),CA,NL,336,included,OpenStreetMap,ODbL-1.0
finger-lakes,Finger Lakes Trail,US,NY,950,included,OpenStreetMap,ODbL-1.0
florida,Florida National Scenic Trail,US,FL,2414,included,OpenStreetMap,ODbL-1.0
foothills,Foothills Trail,US,SC;NC,122,included,OpenStreetMap,ODbL-1.0
fundy-footpath,Fundy Footpath,CA,NB,41,record-only,none (no line included),ODbL-1.0
ganaraska,Ganaraska Hiking Trail,CA,ON,500,included,OpenStreetMap,ODbL-1.0
grand-enchantment,Grand Enchantment Trail,US,AZ;NM,1239,record-only,none (no line included),ODbL-1.0
great-divide-trail,Great Divide Trail,CA,AB;BC,1130,included,OpenStreetMap,ODbL-1.0
great-eastern,Great Eastern Trail,US,AL;GA;TN;KY;VA;WV;MD;PA;NY,3200,record-only,none (no line included),ODbL-1.0
great-trail,The Great Trail (Trans Canada Trail),CA,all provinces and territories,28000,record-only,none (no line included),CC-BY-NC-ND-4.0
great-western,Great Western Trail,US,AZ;UT;ID;WY;MT,4800,record-only,none (no line included),none-stated
high-sierra,High Sierra Trail,US,CA,116,included,OpenStreetMap,ODbL-1.0
highlands,Highlands Trail,US,NJ;NY;PA;CT,290,included,OpenStreetMap,ODbL-1.0
horse-shoe,Horse-Shoe Trail,US,PA,225,included,OpenStreetMap,ODbL-1.0
ice-age,Ice Age National Scenic Trail,US,WI,1931,included,OpenStreetMap,ODbL-1.0
idaho-centennial,Idaho Centennial Trail,US,ID,1448,included,OpenStreetMap,ODbL-1.0
iditarod,Iditarod National Historic Trail,US,AK,3701,record-only,none (no line included),us-gov-public-domain
island-walk,The Island Walk,CA,PE,700,included,OpenStreetMap,ODbL-1.0
john-muir,John Muir Trail,US,CA,340,included,OpenStreetMap,ODbL-1.0
kekekabic,Kekekabic Trail,US,MN,66,record-only,none (no line included),ODbL-1.0
la-cloche,La Cloche Silhouette Trail,CA,ON,80,included,OpenStreetMap,ODbL-1.0
laurel-highlands,Laurel Highlands Hiking Trail,US,PA,113,included,OpenStreetMap,ODbL-1.0
lone-star,Lone Star Hiking Trail,US,TX,155,included,OpenStreetMap,ODbL-1.0
long-path,Long Path,US,NJ;NY,576,included,OpenStreetMap,ODbL-1.0
long-trail,Long Trail (Vermont),US,VT,438,included,OpenStreetMap,ODbL-1.0
loyalsock,Loyalsock Trail,US,PA,95,included,OpenStreetMap,ODbL-1.0
maah-daah-hey,Maah Daah Hey Trail,US,ND,232,included,OpenStreetMap,ODbL-1.0
mason-dixon,Mason-Dixon Trail,US,PA;MD;DE,311,included,OpenStreetMap,ODbL-1.0
mattabesett,Mattabesett Trail,US,CT,105,included,OpenStreetMap,ODbL-1.0
metacomet-monadnock,Metacomet-Monadnock Trail,US,CT;MA;NH,185,included,OpenStreetMap,ODbL-1.0
mid-state,Mid State Trail,US,PA,515,included,OpenStreetMap,ODbL-1.0
midstate-ma,Midstate Trail (Massachusetts),US,MA,148,included,OpenStreetMap,ODbL-1.0
monadnock-sunapee,Monadnock-Sunapee Greenway,US,NH,80,included,OpenStreetMap,ODbL-1.0
mountains-to-sea,Mountains-to-Sea Trail,US,NC,1890,included,OpenStreetMap,ODbL-1.0
natchez-trace,Natchez Trace National Scenic Trail,US,MS;AL;TN,105,included,"National Park Service, Natchez Trace Parkway",us-gov-public-domain
new-england,New England National Scenic Trail,US,CT;MA,378,included,National Park Service with the Connecticut Forest & Park Association and the Appalachian Mountain Club,us-gov-public-domain
nez-perce,Nez Perce (Nee-Me-Poo) National Historic Trail,US,OR;ID;MT;WY,1883,record-only,none (no line included),us-gov-public-domain
north-boundary,North Boundary Trail,CA,AB,159,record-only,none (no line included),none-stated
north-country,North Country National Scenic Trail,US,ND;MN;WI;MI;OH;PA;NY;VT,7403,included,OpenStreetMap,ODbL-1.0
north-south,North-South Trail,US,RI,125,included,OpenStreetMap,ODbL-1.0
northville-placid,Northville-Placid Trail,US,NY,220,included,OpenStreetMap,ODbL-1.0
oak-ridges,Oak Ridges Trail,CA,ON,270,included,OpenStreetMap,ODbL-1.0
oregon-coast,Oregon Coast Trail,US,OR,650,included,OpenStreetMap,ODbL-1.0
oregon-desert,Oregon Desert Trail,US,OR,1200,record-only,none (no line included),ODbL-1.0
ouachita,Ouachita National Recreation Trail,US,AR;OK,359,included,OpenStreetMap,ODbL-1.0
overmountain-victory,Overmountain Victory National Historic Trail,US,VA;TN;NC;SC,540,record-only,none (no line included),us-gov-public-domain
ozark-highlands,Ozark Highlands Trail,US,AR,435,included,OpenStreetMap,ODbL-1.0
ozark-trail,Ozark Trail (Missouri),US,MO,630,included,OpenStreetMap,ODbL-1.0
pacific-crest,Pacific Crest National Scenic Trail,US,CA;OR;WA,4265,included,Pacific Crest Trail Association (PCTA),CC-BY-4.0
pacific-northwest,Pacific Northwest National Scenic Trail,US,MT;ID;WA,1931,included,"USDA Forest Service, Pacific Northwest Region (Region 6)",us-gov-public-domain
palmetto,Palmetto Trail,US,SC,800,included,OpenStreetMap,ODbL-1.0
pinhoti,Pinhoti Trail,US,AL;GA,540,included,OpenStreetMap,ODbL-1.0
potomac-heritage,Potomac Heritage National Scenic Trail,US,DC;MD;VA;PA,1448,included,"National Park Service, Potomac Heritage NST",us-gov-public-domain
pukaskwa-coastal,Pukaskwa Coastal Hiking Trail,CA,ON,60,record-only,none (no line included),ODbL-1.0
quehanna,Quehanna Trail,US,PA,119,included,OpenStreetMap,ODbL-1.0
rideau-trail,Rideau Trail,CA,ON,387,included,OpenStreetMap,ODbL-1.0
river-to-river,River to River Trail,US,IL,257,included,OpenStreetMap,ODbL-1.0
sentier-international-appalaches,"Sentier international des Appalaches (International Appalachian Trail, Quebec and New Brunswick)",CA,QC;NB,1177,included,OpenStreetMap,ODbL-1.0
sentier-national,Sentier National (Quebec),CA,QC,1500,included,OpenStreetMap,ODbL-1.0
sheltowee-trace,Sheltowee Trace National Recreation Trail,US,KY;TN,515,included,OpenStreetMap,ODbL-1.0
south-boundary,South Boundary Trail,CA,AB,121,record-only,none (no line included),none-stated
standing-stone,Standing Stone Trail,US,PA,137,included,OpenStreetMap,ODbL-1.0
sunapee-ragged-kearsarge,Sunapee-Ragged-Kearsarge Greenway,US,NH,121,included,OpenStreetMap,ODbL-1.0
sunshine-coast,Sunshine Coast Trail,CA,BC,180,included,OpenStreetMap,ODbL-1.0
superior-hiking,Superior Hiking Trail,US,MN,499,included,OpenStreetMap,ODbL-1.0
susquehannock,Susquehannock Trail System,US,PA,135,included,OpenStreetMap,ODbL-1.0
tahoe-rim,Tahoe Rim Trail,US,CA;NV,266,included,OpenStreetMap,ODbL-1.0
teton-crest,Teton Crest Trail,US,WY,64,record-only,none (no line included),ODbL-1.0
timberline,Timberline Trail (Mount Hood),US,OR,64,record-only,none (no line included),us-gov-public-domain
traversee-charlevoix,Traversée de Charlevoix,CA,QC,105,included,OpenStreetMap,ODbL-1.0
tuscarora,Tuscarora Trail,US,PA;MD;VA;WV,406,included,OpenStreetMap,ODbL-1.0
uinta-highline,Uinta Highline Trail,US,UT,167,included,OpenStreetMap,ODbL-1.0
vancouver-island,Vancouver Island Trail,CA,BC,800,included,OpenStreetMap,ODbL-1.0
voyageur,Voyageur Trail,CA,ON,1100,included,OpenStreetMap,ODbL-1.0
waskahegan,Waskahegan Trail,CA,AB,309,record-only,none (no line included),none-stated
west-coast-trail,West Coast Trail,CA,BC,75,record-only,none (no line included),ODbL-1.0
wonderland,Wonderland Trail,US,WA,150,included,OpenStreetMap,ODbL-1.0
id,name,country,regions,length_km,status,line_source,licence,kind,line_policy
alexander-mackenzie,Alexander MacKenzie Heritage Trail,CA,BC,420,included,OpenStreetMap,ODbL-1.0,designated,
allegheny-trail,Allegheny Trail,US,WV,530,included,OpenStreetMap,ODbL-1.0,designated,
appalachian,Appalachian National Scenic Trail,US,GA;NC;TN;VA;WV;MD;PA;NJ;NY;CT;MA;VT;NH;ME,3537,included,National Park Service Appalachian NST and Appalachian Trail Conservancy,us-gov-public-domain,designated,
arizona,Arizona National Scenic Trail,US,AZ,1287,included,OpenStreetMap,ODbL-1.0,designated,
avon,Avon Trail,CA,ON,130,included,OpenStreetMap,ODbL-1.0,designated,
backbone,Backbone Trail,US,CA,108,included,OpenStreetMap,ODbL-1.0,designated,
baker,Baker Trail,US,PA,216,included,OpenStreetMap,ODbL-1.0,designated,
bartram,Bartram Trail,US,GA;NC,180,included,OpenStreetMap,ODbL-1.0,designated,
batona,Batona Trail,US,NJ,80,included,OpenStreetMap,ODbL-1.0,designated,
bay-circuit,Bay Circuit Trail,US,MA,370,included,OpenStreetMap,ODbL-1.0,designated,
benton-mackaye,Benton MacKaye Trail,US,GA;TN;NC,463,included,OpenStreetMap,ODbL-1.0,designated,
border-route,Border Route Trail,US,MN,105,included,OpenStreetMap,ODbL-1.0,designated,
brazeau-loop,Brazeau Loop,CA,AB,81,record-only,none (no line included),none-stated,designated,
bruce-trail,Bruce Trail,CA,ON,890,included,OpenStreetMap,ODbL-1.0,designated,
buckeye,Buckeye Trail,US,OH,2250,included,OpenStreetMap,ODbL-1.0,designated,
california-coastal,California Coastal Trail,US,CA,1931,record-only,none (no line included),none-stated,designated,
canol,Canol Heritage Trail,CA,NT,371,included,OpenStreetMap,ODbL-1.0,designated,
centennial-sd,Centennial Trail,US,SD,179,included,OpenStreetMap,ODbL-1.0,designated,
chesapeake-ohio-canal,Chesapeake and Ohio Canal Towpath,US,MD;DC;WV,297,record-only,none (no line included),none-stated,designated,
cohos,Cohos Trail,US,NH,270,included,OpenStreetMap,ODbL-1.0,designated,
colorado-trail,Colorado Trail,US,CO,782,included,"USDA Forest Service (EDW National Forest System trails), with OpenStreetMap where the Forest Service publishes no segment",us-gov-public-domain,designated,
continental-divide,Continental Divide National Scenic Trail,US,NM;CO;WY;ID;MT,4989,included,Continental Divide Trail Coalition (CDTC),CC-BY,designated,
corvallis-to-the-sea,Corvallis-to-the-Sea Trail,US,OR,97,included,OpenStreetMap,ODbL-1.0,designated,
cranberry-lake-50,Cranberry Lake 50,US,NY,80,included,OpenStreetMap,ODbL-1.0,designated,
cross-vermont,Cross Vermont Trail,US,VT,145,included,OpenStreetMap,ODbL-1.0,designated,
cumberland-trail,Cumberland Trail,US,TN,480,included,OpenStreetMap,ODbL-1.0,designated,
donut-hole,Donut Hole Trail,US,PA,152,included,OpenStreetMap,ODbL-1.0,designated,
east-coast-trail,East Coast Trail (Newfoundland),CA,NL,336,included,OpenStreetMap,ODbL-1.0,designated,
finger-lakes,Finger Lakes Trail,US,NY,950,included,OpenStreetMap,ODbL-1.0,designated,
florida,Florida National Scenic Trail,US,FL,2414,included,OpenStreetMap,ODbL-1.0,designated,
foothills,Foothills Trail,US,SC;NC,122,included,OpenStreetMap,ODbL-1.0,designated,
fundy-footpath,Fundy Footpath,CA,NB,41,record-only,none (no line included),ODbL-1.0,designated,
ganaraska,Ganaraska Hiking Trail,CA,ON,500,included,OpenStreetMap,ODbL-1.0,designated,
grand-enchantment,Grand Enchantment Trail,US,AZ;NM,1239,record-only,none (no line included),ODbL-1.0,designated,
great-divide-trail,Great Divide Trail,CA,AB;BC,1130,included,OpenStreetMap,ODbL-1.0,designated,
great-eastern,Great Eastern Trail,US,AL;GA;TN;KY;VA;WV;MD;PA;NY,3200,record-only,none (no line included),ODbL-1.0,designated,
great-trail,The Great Trail (Trans Canada Trail),CA,all provinces and territories,28000,record-only,none (no line included),CC-BY-NC-ND-4.0,designated,
great-western,Great Western Trail,US,AZ;UT;ID;WY;MT,4800,record-only,none (no line included),none-stated,designated,
high-sierra,High Sierra Trail,US,CA,116,included,OpenStreetMap,ODbL-1.0,designated,
highlands,Highlands Trail,US,NJ;NY;PA;CT,290,included,OpenStreetMap,ODbL-1.0,designated,
horse-shoe,Horse-Shoe Trail,US,PA,225,included,OpenStreetMap,ODbL-1.0,designated,
ice-age,Ice Age National Scenic Trail,US,WI,1931,included,OpenStreetMap,ODbL-1.0,designated,
idaho-centennial,Idaho Centennial Trail,US,ID,1448,included,OpenStreetMap,ODbL-1.0,designated,
iditarod,Iditarod National Historic Trail,US,AK,3701,record-only,none (no line included),us-gov-public-domain,designated,
island-walk,The Island Walk,CA,PE,700,included,OpenStreetMap,ODbL-1.0,designated,
john-muir,John Muir Trail,US,CA,340,included,OpenStreetMap,ODbL-1.0,designated,
kekekabic,Kekekabic Trail,US,MN,66,record-only,none (no line included),ODbL-1.0,designated,
la-cloche,La Cloche Silhouette Trail,CA,ON,80,included,OpenStreetMap,ODbL-1.0,designated,
laurel-highlands,Laurel Highlands Hiking Trail,US,PA,113,included,OpenStreetMap,ODbL-1.0,designated,
lone-star,Lone Star Hiking Trail,US,TX,155,included,OpenStreetMap,ODbL-1.0,designated,
long-path,Long Path,US,NJ;NY,576,included,OpenStreetMap,ODbL-1.0,designated,
long-trail,Long Trail (Vermont),US,VT,438,included,OpenStreetMap,ODbL-1.0,designated,
loyalsock,Loyalsock Trail,US,PA,95,included,OpenStreetMap,ODbL-1.0,designated,
maah-daah-hey,Maah Daah Hey Trail,US,ND,232,included,OpenStreetMap,ODbL-1.0,designated,
mason-dixon,Mason-Dixon Trail,US,PA;MD;DE,311,included,OpenStreetMap,ODbL-1.0,designated,
mattabesett,Mattabesett Trail,US,CT,105,included,OpenStreetMap,ODbL-1.0,designated,
metacomet-monadnock,Metacomet-Monadnock Trail,US,CT;MA;NH,185,included,OpenStreetMap,ODbL-1.0,designated,
mid-state,Mid State Trail,US,PA,515,included,OpenStreetMap,ODbL-1.0,designated,
midstate-ma,Midstate Trail (Massachusetts),US,MA,148,included,OpenStreetMap,ODbL-1.0,designated,
monadnock-sunapee,Monadnock-Sunapee Greenway,US,NH,80,included,OpenStreetMap,ODbL-1.0,designated,
mountains-to-sea,Mountains-to-Sea Trail,US,NC,1890,included,OpenStreetMap,ODbL-1.0,designated,
natchez-trace,Natchez Trace National Scenic Trail,US,MS;AL;TN,105,included,"National Park Service, Natchez Trace Parkway",us-gov-public-domain,designated,
new-england,New England National Scenic Trail,US,CT;MA,378,included,National Park Service with the Connecticut Forest & Park Association and the Appalachian Mountain Club,us-gov-public-domain,designated,
nez-perce,Nez Perce (Nee-Me-Poo) National Historic Trail,US,OR;ID;MT;WY,1883,record-only,none (no line included),us-gov-public-domain,designated,
north-boundary,North Boundary Trail,CA,AB,159,record-only,none (no line included),none-stated,designated,
north-country,North Country National Scenic Trail,US,ND;MN;WI;MI;OH;PA;NY;VT,7403,included,OpenStreetMap,ODbL-1.0,designated,
north-south,North-South Trail,US,RI,125,included,OpenStreetMap,ODbL-1.0,designated,
northville-placid,Northville-Placid Trail,US,NY,220,included,OpenStreetMap,ODbL-1.0,designated,
oak-ridges,Oak Ridges Trail,CA,ON,270,included,OpenStreetMap,ODbL-1.0,designated,
oregon-coast,Oregon Coast Trail,US,OR,650,included,OpenStreetMap,ODbL-1.0,designated,
oregon-desert,Oregon Desert Trail,US,OR,1200,record-only,none (no line included),ODbL-1.0,designated,
ouachita,Ouachita National Recreation Trail,US,AR;OK,359,included,OpenStreetMap,ODbL-1.0,designated,
overmountain-victory,Overmountain Victory National Historic Trail,US,VA;TN;NC;SC,540,record-only,none (no line included),us-gov-public-domain,designated,
ozark-highlands,Ozark Highlands Trail,US,AR,435,included,OpenStreetMap,ODbL-1.0,designated,
ozark-trail,Ozark Trail (Missouri),US,MO,630,included,OpenStreetMap,ODbL-1.0,designated,
pacific-crest,Pacific Crest National Scenic Trail,US,CA;OR;WA,4265,included,Pacific Crest Trail Association (PCTA),CC-BY-4.0,designated,
pacific-northwest,Pacific Northwest National Scenic Trail,US,MT;ID;WA,1931,included,"USDA Forest Service, Pacific Northwest Region (Region 6)",us-gov-public-domain,designated,
palmetto,Palmetto Trail,US,SC,800,included,OpenStreetMap,ODbL-1.0,designated,
pinhoti,Pinhoti Trail,US,AL;GA,540,included,OpenStreetMap,ODbL-1.0,designated,
potomac-heritage,Potomac Heritage National Scenic Trail,US,DC;MD;VA;PA,1448,included,"National Park Service, Potomac Heritage NST",us-gov-public-domain,designated,
pukaskwa-coastal,Pukaskwa Coastal Hiking Trail,CA,ON,60,record-only,none (no line included),ODbL-1.0,designated,
quehanna,Quehanna Trail,US,PA,119,included,OpenStreetMap,ODbL-1.0,designated,
rideau-trail,Rideau Trail,CA,ON,387,included,OpenStreetMap,ODbL-1.0,designated,
river-to-river,River to River Trail,US,IL,257,included,OpenStreetMap,ODbL-1.0,designated,
sentier-international-appalaches,"Sentier international des Appalaches (International Appalachian Trail, Quebec and New Brunswick)",CA,QC;NB,1177,included,OpenStreetMap,ODbL-1.0,designated,
sentier-national,Sentier National (Quebec),CA,QC,1500,included,OpenStreetMap,ODbL-1.0,designated,
sheltowee-trace,Sheltowee Trace National Recreation Trail,US,KY;TN,515,included,OpenStreetMap,ODbL-1.0,designated,
south-boundary,South Boundary Trail,CA,AB,121,record-only,none (no line included),none-stated,designated,
standing-stone,Standing Stone Trail,US,PA,137,included,OpenStreetMap,ODbL-1.0,designated,
sunapee-ragged-kearsarge,Sunapee-Ragged-Kearsarge Greenway,US,NH,121,included,OpenStreetMap,ODbL-1.0,designated,
sunshine-coast,Sunshine Coast Trail,CA,BC,180,included,OpenStreetMap,ODbL-1.0,designated,
superior-hiking,Superior Hiking Trail,US,MN,499,included,OpenStreetMap,ODbL-1.0,designated,
susquehannock,Susquehannock Trail System,US,PA,135,included,OpenStreetMap,ODbL-1.0,designated,
tahoe-rim,Tahoe Rim Trail,US,CA;NV,266,included,OpenStreetMap,ODbL-1.0,designated,
teton-crest,Teton Crest Trail,US,WY,64,record-only,none (no line included),ODbL-1.0,designated,
timberline,Timberline Trail (Mount Hood),US,OR,64,record-only,none (no line included),us-gov-public-domain,designated,
traversee-charlevoix,Traversée de Charlevoix,CA,QC,105,included,OpenStreetMap,ODbL-1.0,designated,
tuscarora,Tuscarora Trail,US,PA;MD;VA;WV,406,included,OpenStreetMap,ODbL-1.0,designated,
uinta-highline,Uinta Highline Trail,US,UT,167,included,OpenStreetMap,ODbL-1.0,designated,
vancouver-island,Vancouver Island Trail,CA,BC,800,included,OpenStreetMap,ODbL-1.0,designated,
voyageur,Voyageur Trail,CA,ON,1100,included,OpenStreetMap,ODbL-1.0,designated,
waskahegan,Waskahegan Trail,CA,AB,309,record-only,none (no line included),none-stated,designated,
west-coast-trail,West Coast Trail,CA,BC,75,record-only,none (no line included),ODbL-1.0,designated,
wonderland,Wonderland Trail,US,WA,150,included,OpenStreetMap,ODbL-1.0,designated,
1 id name country regions length_km status line_source licence kind line_policy
2 alexander-mackenzie Alexander MacKenzie Heritage Trail CA BC 420 included OpenStreetMap ODbL-1.0 designated
3 allegheny-trail Allegheny Trail US WV 530 included OpenStreetMap ODbL-1.0 designated
4 appalachian Appalachian National Scenic Trail US GA;NC;TN;VA;WV;MD;PA;NJ;NY;CT;MA;VT;NH;ME 3537 included National Park Service Appalachian NST and Appalachian Trail Conservancy us-gov-public-domain designated
5 arizona Arizona National Scenic Trail US AZ 1287 included OpenStreetMap ODbL-1.0 designated
6 avon Avon Trail CA ON 130 included OpenStreetMap ODbL-1.0 designated
7 backbone Backbone Trail US CA 108 included OpenStreetMap ODbL-1.0 designated
8 baker Baker Trail US PA 216 included OpenStreetMap ODbL-1.0 designated
9 bartram Bartram Trail US GA;NC 180 included OpenStreetMap ODbL-1.0 designated
10 batona Batona Trail US NJ 80 included OpenStreetMap ODbL-1.0 designated
11 bay-circuit Bay Circuit Trail US MA 370 included OpenStreetMap ODbL-1.0 designated
12 benton-mackaye Benton MacKaye Trail US GA;TN;NC 463 included OpenStreetMap ODbL-1.0 designated
13 border-route Border Route Trail US MN 105 included OpenStreetMap ODbL-1.0 designated
14 brazeau-loop Brazeau Loop CA AB 81 record-only none (no line included) none-stated designated
15 bruce-trail Bruce Trail CA ON 890 included OpenStreetMap ODbL-1.0 designated
16 buckeye Buckeye Trail US OH 2250 included OpenStreetMap ODbL-1.0 designated
17 california-coastal California Coastal Trail US CA 1931 record-only none (no line included) none-stated designated
18 canol Canol Heritage Trail CA NT 371 included OpenStreetMap ODbL-1.0 designated
19 centennial-sd Centennial Trail US SD 179 included OpenStreetMap ODbL-1.0 designated
20 chesapeake-ohio-canal Chesapeake and Ohio Canal Towpath US MD;DC;WV 297 record-only none (no line included) none-stated designated
21 cohos Cohos Trail US NH 270 included OpenStreetMap ODbL-1.0 designated
22 colorado-trail Colorado Trail US CO 782 included USDA Forest Service (EDW National Forest System trails), with OpenStreetMap where the Forest Service publishes no segment us-gov-public-domain designated
23 continental-divide Continental Divide National Scenic Trail US NM;CO;WY;ID;MT 4989 included Continental Divide Trail Coalition (CDTC) CC-BY designated
24 corvallis-to-the-sea Corvallis-to-the-Sea Trail US OR 97 included OpenStreetMap ODbL-1.0 designated
25 cranberry-lake-50 Cranberry Lake 50 US NY 80 included OpenStreetMap ODbL-1.0 designated
26 cross-vermont Cross Vermont Trail US VT 145 included OpenStreetMap ODbL-1.0 designated
27 cumberland-trail Cumberland Trail US TN 480 included OpenStreetMap ODbL-1.0 designated
28 donut-hole Donut Hole Trail US PA 152 included OpenStreetMap ODbL-1.0 designated
29 east-coast-trail East Coast Trail (Newfoundland) CA NL 336 included OpenStreetMap ODbL-1.0 designated
30 finger-lakes Finger Lakes Trail US NY 950 included OpenStreetMap ODbL-1.0 designated
31 florida Florida National Scenic Trail US FL 2414 included OpenStreetMap ODbL-1.0 designated
32 foothills Foothills Trail US SC;NC 122 included OpenStreetMap ODbL-1.0 designated
33 fundy-footpath Fundy Footpath CA NB 41 record-only none (no line included) ODbL-1.0 designated
34 ganaraska Ganaraska Hiking Trail CA ON 500 included OpenStreetMap ODbL-1.0 designated
35 grand-enchantment Grand Enchantment Trail US AZ;NM 1239 record-only none (no line included) ODbL-1.0 designated
36 great-divide-trail Great Divide Trail CA AB;BC 1130 included OpenStreetMap ODbL-1.0 designated
37 great-eastern Great Eastern Trail US AL;GA;TN;KY;VA;WV;MD;PA;NY 3200 record-only none (no line included) ODbL-1.0 designated
38 great-trail The Great Trail (Trans Canada Trail) CA all provinces and territories 28000 record-only none (no line included) CC-BY-NC-ND-4.0 designated
39 great-western Great Western Trail US AZ;UT;ID;WY;MT 4800 record-only none (no line included) none-stated designated
40 high-sierra High Sierra Trail US CA 116 included OpenStreetMap ODbL-1.0 designated
41 highlands Highlands Trail US NJ;NY;PA;CT 290 included OpenStreetMap ODbL-1.0 designated
42 horse-shoe Horse-Shoe Trail US PA 225 included OpenStreetMap ODbL-1.0 designated
43 ice-age Ice Age National Scenic Trail US WI 1931 included OpenStreetMap ODbL-1.0 designated
44 idaho-centennial Idaho Centennial Trail US ID 1448 included OpenStreetMap ODbL-1.0 designated
45 iditarod Iditarod National Historic Trail US AK 3701 record-only none (no line included) us-gov-public-domain designated
46 island-walk The Island Walk CA PE 700 included OpenStreetMap ODbL-1.0 designated
47 john-muir John Muir Trail US CA 340 included OpenStreetMap ODbL-1.0 designated
48 kekekabic Kekekabic Trail US MN 66 record-only none (no line included) ODbL-1.0 designated
49 la-cloche La Cloche Silhouette Trail CA ON 80 included OpenStreetMap ODbL-1.0 designated
50 laurel-highlands Laurel Highlands Hiking Trail US PA 113 included OpenStreetMap ODbL-1.0 designated
51 lone-star Lone Star Hiking Trail US TX 155 included OpenStreetMap ODbL-1.0 designated
52 long-path Long Path US NJ;NY 576 included OpenStreetMap ODbL-1.0 designated
53 long-trail Long Trail (Vermont) US VT 438 included OpenStreetMap ODbL-1.0 designated
54 loyalsock Loyalsock Trail US PA 95 included OpenStreetMap ODbL-1.0 designated
55 maah-daah-hey Maah Daah Hey Trail US ND 232 included OpenStreetMap ODbL-1.0 designated
56 mason-dixon Mason-Dixon Trail US PA;MD;DE 311 included OpenStreetMap ODbL-1.0 designated
57 mattabesett Mattabesett Trail US CT 105 included OpenStreetMap ODbL-1.0 designated
58 metacomet-monadnock Metacomet-Monadnock Trail US CT;MA;NH 185 included OpenStreetMap ODbL-1.0 designated
59 mid-state Mid State Trail US PA 515 included OpenStreetMap ODbL-1.0 designated
60 midstate-ma Midstate Trail (Massachusetts) US MA 148 included OpenStreetMap ODbL-1.0 designated
61 monadnock-sunapee Monadnock-Sunapee Greenway US NH 80 included OpenStreetMap ODbL-1.0 designated
62 mountains-to-sea Mountains-to-Sea Trail US NC 1890 included OpenStreetMap ODbL-1.0 designated
63 natchez-trace Natchez Trace National Scenic Trail US MS;AL;TN 105 included National Park Service, Natchez Trace Parkway us-gov-public-domain designated
64 new-england New England National Scenic Trail US CT;MA 378 included National Park Service with the Connecticut Forest & Park Association and the Appalachian Mountain Club us-gov-public-domain designated
65 nez-perce Nez Perce (Nee-Me-Poo) National Historic Trail US OR;ID;MT;WY 1883 record-only none (no line included) us-gov-public-domain designated
66 north-boundary North Boundary Trail CA AB 159 record-only none (no line included) none-stated designated
67 north-country North Country National Scenic Trail US ND;MN;WI;MI;OH;PA;NY;VT 7403 included OpenStreetMap ODbL-1.0 designated
68 north-south North-South Trail US RI 125 included OpenStreetMap ODbL-1.0 designated
69 northville-placid Northville-Placid Trail US NY 220 included OpenStreetMap ODbL-1.0 designated
70 oak-ridges Oak Ridges Trail CA ON 270 included OpenStreetMap ODbL-1.0 designated
71 oregon-coast Oregon Coast Trail US OR 650 included OpenStreetMap ODbL-1.0 designated
72 oregon-desert Oregon Desert Trail US OR 1200 record-only none (no line included) ODbL-1.0 designated
73 ouachita Ouachita National Recreation Trail US AR;OK 359 included OpenStreetMap ODbL-1.0 designated
74 overmountain-victory Overmountain Victory National Historic Trail US VA;TN;NC;SC 540 record-only none (no line included) us-gov-public-domain designated
75 ozark-highlands Ozark Highlands Trail US AR 435 included OpenStreetMap ODbL-1.0 designated
76 ozark-trail Ozark Trail (Missouri) US MO 630 included OpenStreetMap ODbL-1.0 designated
77 pacific-crest Pacific Crest National Scenic Trail US CA;OR;WA 4265 included Pacific Crest Trail Association (PCTA) CC-BY-4.0 designated
78 pacific-northwest Pacific Northwest National Scenic Trail US MT;ID;WA 1931 included USDA Forest Service, Pacific Northwest Region (Region 6) us-gov-public-domain designated
79 palmetto Palmetto Trail US SC 800 included OpenStreetMap ODbL-1.0 designated
80 pinhoti Pinhoti Trail US AL;GA 540 included OpenStreetMap ODbL-1.0 designated
81 potomac-heritage Potomac Heritage National Scenic Trail US DC;MD;VA;PA 1448 included National Park Service, Potomac Heritage NST us-gov-public-domain designated
82 pukaskwa-coastal Pukaskwa Coastal Hiking Trail CA ON 60 record-only none (no line included) ODbL-1.0 designated
83 quehanna Quehanna Trail US PA 119 included OpenStreetMap ODbL-1.0 designated
84 rideau-trail Rideau Trail CA ON 387 included OpenStreetMap ODbL-1.0 designated
85 river-to-river River to River Trail US IL 257 included OpenStreetMap ODbL-1.0 designated
86 sentier-international-appalaches Sentier international des Appalaches (International Appalachian Trail, Quebec and New Brunswick) CA QC;NB 1177 included OpenStreetMap ODbL-1.0 designated
87 sentier-national Sentier National (Quebec) CA QC 1500 included OpenStreetMap ODbL-1.0 designated
88 sheltowee-trace Sheltowee Trace National Recreation Trail US KY;TN 515 included OpenStreetMap ODbL-1.0 designated
89 south-boundary South Boundary Trail CA AB 121 record-only none (no line included) none-stated designated
90 standing-stone Standing Stone Trail US PA 137 included OpenStreetMap ODbL-1.0 designated
91 sunapee-ragged-kearsarge Sunapee-Ragged-Kearsarge Greenway US NH 121 included OpenStreetMap ODbL-1.0 designated
92 sunshine-coast Sunshine Coast Trail CA BC 180 included OpenStreetMap ODbL-1.0 designated
93 superior-hiking Superior Hiking Trail US MN 499 included OpenStreetMap ODbL-1.0 designated
94 susquehannock Susquehannock Trail System US PA 135 included OpenStreetMap ODbL-1.0 designated
95 tahoe-rim Tahoe Rim Trail US CA;NV 266 included OpenStreetMap ODbL-1.0 designated
96 teton-crest Teton Crest Trail US WY 64 record-only none (no line included) ODbL-1.0 designated
97 timberline Timberline Trail (Mount Hood) US OR 64 record-only none (no line included) us-gov-public-domain designated
98 traversee-charlevoix Traversée de Charlevoix CA QC 105 included OpenStreetMap ODbL-1.0 designated
99 tuscarora Tuscarora Trail US PA;MD;VA;WV 406 included OpenStreetMap ODbL-1.0 designated
100 uinta-highline Uinta Highline Trail US UT 167 included OpenStreetMap ODbL-1.0 designated
101 vancouver-island Vancouver Island Trail CA BC 800 included OpenStreetMap ODbL-1.0 designated
102 voyageur Voyageur Trail CA ON 1100 included OpenStreetMap ODbL-1.0 designated
103 waskahegan Waskahegan Trail CA AB 309 record-only none (no line included) none-stated designated
104 west-coast-trail West Coast Trail CA BC 75 record-only none (no line included) ODbL-1.0 designated
105 wonderland Wonderland Trail US WA 150 included OpenStreetMap ODbL-1.0 designated