Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Most files come in both directions, `-sobo` (Cape Reinga → Bluff) and `-nobo`

| File | Contents |
|---|---|
| `te-araroa-{sobo,nobo}.gpx` | 21 tracks (7 for the main route, one per stretch you can walk; transport connectors; 13 bypasses), 656 waypoints typed `hut`/`campsite`/`town`/`resupply`/`food`/`accommodation`/`caravan-park`/`gap`/`access`, all in walking order - the 70 `access` ones are turnoffs on the route itself, marking where you leave the trail for a site it does not pass. The stable filenames - link to these |
| `te-araroa-{sobo,nobo}.gpx` | 21 tracks (7 for the main route, one per stretch you can walk; transport connectors; 13 bypasses), 656 waypoints typed `hut`/`campsite`/`town`/`resupply`/`food`/`accommodation`/`caravan-park`/`gap`, all in walking order, plus 70 turnoffs typed `<type>-access` (`town-access`, `hut-access`, ...) - points on the route itself marking where you leave the trail for a site it does not pass, carrying the type of what they serve so a reader can tell a shop from a hut without following the link. The stable filenames - link to these |
| `te-araroa-2026-27-{sobo,nobo}.gpx` | the same bytes under this release's name |
| `resupply-plan-{sobo,nobo}.csv` | 266 sites in trail order: km, official km, section, trail elevation, leg distances, leg ascent/descent, whether the leg crosses a break in the route, bunks, water, booking, phone, address, hours, DOC link |
| `sections-{sobo,nobo}.csv` | 79 official sections with km ranges, counted in that direction and in the trust's chainage |
Expand Down
140 changes: 70 additions & 70 deletions out/te-araroa-2026-27-nobo.gpx

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions out/te-araroa-2026-27-sobo.gpx

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions out/te-araroa-nobo.gpx

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions out/te-araroa-sobo.gpx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion out/te-araroa.meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
]
}
],
"generatedAt": "2026-09-09T10:07:59.146Z",
"generatedAt": "2026-09-09T21:52:34.708Z",
"source": {
"fetchedAt": "2026-09-08",
"files": [
Expand Down
7 changes: 6 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,12 @@ function writeDirection(
`${kmPrefix(site.km)} | Leave the trail here for ${site.name} ` +
`(${site.type}), ${(site.offTrailMeters / 1000).toFixed(1)} km off ` +
`trail. | ${site.description}`,
type: "access",
// The turnoff carries the type of what it serves, with `-access` on the
// end. Both halves are load-bearing: a consumer deciding whether it can
// buy food here needs to know a town is a town, and a walker reading the
// list needs to know this is the roadside, not the town. Typing every
// turnoff `access` lost the first; typing it `town` would lose the second.
type: `${site.type}-access`,
cmt: site.section,
};
// The turnoff comes first: you reach it before you reach the place.
Expand Down
2 changes: 1 addition & 1 deletion src/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Most files come in both directions, \`-sobo\` (Cape Reinga → Bluff) and \`-nob

| File | Contents |
|---|---|
| \`te-araroa-{sobo,nobo}.gpx\` | ${s.tracks} tracks (${s.walkingTracks} for the main route, one per stretch you can walk; transport connectors; ${s.bypasses} bypasses), ${n(s.waypoints)} waypoints typed \`hut\`/\`campsite\`/\`town\`/\`resupply\`/\`food\`/\`accommodation\`/\`caravan-park\`/\`gap\`/\`access\`, all in walking order - the ${s.accessPoints} \`access\` ones are turnoffs on the route itself, marking where you leave the trail for a site it does not pass. The stable filenames - link to these |
| \`te-araroa-{sobo,nobo}.gpx\` | ${s.tracks} tracks (${s.walkingTracks} for the main route, one per stretch you can walk; transport connectors; ${s.bypasses} bypasses), ${n(s.waypoints)} waypoints typed \`hut\`/\`campsite\`/\`town\`/\`resupply\`/\`food\`/\`accommodation\`/\`caravan-park\`/\`gap\`, all in walking order, plus ${s.accessPoints} turnoffs typed \`<type>-access\` (\`town-access\`, \`hut-access\`, ...) - points on the route itself marking where you leave the trail for a site it does not pass, carrying the type of what they serve so a reader can tell a shop from a hut without following the link. The stable filenames - link to these |
| \`te-araroa-${meta.season}-{sobo,nobo}.gpx\` | the same bytes under this release's name |
| \`resupply-plan-{sobo,nobo}.csv\` | ${n(s.planRows)} sites in trail order: km, official km, section, trail elevation, leg distances, leg ascent/descent, whether the leg crosses a break in the route, bunks, water, booking, phone, address, hours, DOC link |
| \`sections-{sobo,nobo}.csv\` | ${s.sections} official sections with km ranges, counted in that direction and in the trust's chainage |
Expand Down
2 changes: 1 addition & 1 deletion test/outputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ test("every site the trail does not pass has a turnoff on the route", () => {
for (const direction of meta.directions) {
const gpx = readFileSync(out(`te-araroa-${direction.id}.gpx`), "utf8");
assert.equal(
(gpx.match(/<type>access<\/type>/g) ?? []).length,
(gpx.match(/<type>[a-z-]+-access<\/type>/g) ?? []).length,
access.length,
`${direction.code} GPX is missing turnoff waypoints`
);
Expand Down
Loading