# Walking-network round: design

This file and `walk-protocol.json` are fixed before the first scored run. Anything decided after seeing results is labelled
as such on the page.

## The question

How far does the published straight-line 400 metre measure sit from a walking-network measure of the same thing, which areas
does that move most, and what would a city's GIS team need to keep the measure current?

## Overlap test

The published page counts residents within 400 metres in a straight line. It answers which corridor leads under that
measure, how the answer moves with distance, gap, allocation and frequency rule, and what a top-up costs. It does not
answer this round's question. Its own words, copied from the page:

- "It does not model riders, demand or walking routes"
- "A walking network would shrink reach wherever water, highways or dead-end streets sit between a home and a stop."
- "Before money is committed I would rerun the leader and the runner-up on a walking network"

No other published study measures geography. The question family, region, schedule and census are the parent's, and the one
new input is a walking network, so this is a round of the parent study on a new page, not a new study. Published results
stay byte-identical. The one change to the entry page is a sentence linking here.

## Data and licences

| Input | Source | Licence | Status |
|---|---|---|---|
| Walking network | OpenStreetMap ways tagged `highway`, through the Overpass API at fixed dates | Open Database License | new; the filtered extract and every table derived from it ship under the same licence |
| Municipal boundaries | Statistics Canada 2021 cartographic census subdivisions, layer 9 of the service the parent used | Statistics Canada Open Licence | new |
| Schedule | BC Transit feed, the parent's frozen snapshot | BC Transit open data terms, supplied as is | reused, hash checked |
| Population and areas | Statistics Canada 2021 census, the parent's frozen files | Statistics Canada Open Licence | reused, hash checked |
| Inland water | BC Freshwater Atlas, the parent's frozen files | Open Government Licence - British Columbia | reused, hash checked |

The deciding licence sentences, extracted from each source, are in the source manifest of this round.

## The one thing that changes

The parent spreads each dissemination area's population evenly over its land. This round keeps that allocation and changes
only the distance. To do that it represents the land as a 20 metre grid of points, each carrying its area's population
in proportion to cell area over the area's full land area.

- **Straight line:** distance from the point to the nearest stop in a set.
- **Walking network:** straight-line distance from the point to its nearest walkable network node, plus the shortest path
  along the network, plus straight-line distance from the stop's nearest node to the stop.

Everything else is the parent's: the same stops, the same both-directions rule, the same baseline, the same incremental count
beyond the baseline. The grid's straight-line count must reproduce the parent's polygon results within a stated tolerance
before any walking number is trusted. That check can fail: it compares two different geometry routes against a frozen file.

## Network

Ways are split at shared OpenStreetMap nodes and subdivided to at most 10 metres, in EPSG:26910, undirected. Only the largest
connected component is used; what falls out is counted.

Four network variants, all on the same snapshot:

- `main`: everything people can walk. Out: motorways and their ramps, `foot=no`, `access=no` or `private` unless `foot` allows
  it, and anything not built.
- `no_trunk`: also out are trunk roads unless they carry `foot=yes`, `foot=designated` or a tagged sidewalk.
- `roads_only`: `main` without footways, paths, steps, cycleways, pedestrian areas, tracks and corridors, as a road
  centreline file would hold.
- `generous`: `main` plus private access and `foot=no`. Motorways stay out.

## Cases

Distance 300, 400 and 600 metres; maximum gap 15 and 20 minutes; the strict rule and the every-route-at-a-stop rule; both
parent allocations. That is 24 states for each of routes 14, 26 and 39. The parent's six 10-minute states tie at zero by
construction and are not repeated. The main case is 400 metres, 15 minutes, the strict rule, uniform over land. The network
variants run on the main case and on the every-route rule at 400 metres and 15 minutes.

## Which areas

Results per census subdivision (municipality or reserve) and per dissemination area, for the union of the baseline and all
three corridors in the main case, plus a reachable-land ratio per stop. Every resident in straight-line reach but out of
walking reach gets one cause, first match wins, from the straight segment between the point and its nearest stop in the set:

1. the segment leaves census land (water or shoreline);
2. the segment crosses a road the `main` variant excludes (a motorway or similar);
3. the point sits more than 100 metres from any walkable node (a large lot, park or unmapped area);
4. otherwise, street layout or a missing link.

## A simple correction

The same-count radius is the straight-line radius, on a 5 metre scan, whose count equals the 400 metre walking count. It is
computed per corridor and for each corridor from the other two. The second figure is the honest test of whether a planner
with only buffers can use one number.

## Keeping it current

Three pieces of evidence:

1. **Drift.** The main case rerun on OpenStreetMap at 1 November 2025, 1 November 2023 and 11 May 2021 (census day), against
   the 1 November 2026 snapshot, with the schedule and census held fixed. This measures how much a stale map moves the answer.
   It measures map edits, not only street changes.
2. **Refresh checks.** The checks in the protocol run on every refresh. Each must fail on a planted fault of its kind before
   it counts. That part is a self-test: one author wrote the checks and the planted faults.
3. **Blind faults.** An independent author who never saw the checks writes 8 faults a data refresh could introduce, as small
   functions over the input tables, given only the input schemas. The checks are committed before the author runs. The author
   runs once, every fault is scored once, and the count is reported whatever it shows. If this run cannot finish inside the
   round, the page says it did not run.

## Independent checks of the network distance

- A separate plain-Python shortest-path routine on the real graph must match the main routine exactly on three stop sets.
- 40 point-to-stop pairs, drawn with a fixed seed, are sent to a public foot router built on OpenStreetMap by a separate
  engine, at no more than one request a second. Bar: median absolute difference of at most 15 metres, and at least 80% of pairs
  within 10%. The router reads live map data, not the fixed snapshot, so small differences are expected. If the bar is missed
  the page says so.
- Grid stability: the main case rerun at a 10 metre grid must move each corridor's walking count by less than 1%.

## Predictions, before any run

- P1. In the main case each corridor keeps 60% to 80% of its straight-line residents on the walking network.
- P2. Route 14 still leads on residents in the main case.
- P3. The City of Victoria keeps a larger share of its straight-line residents than Saanich, View Royal, Colwood and Langford.
- P4. The same-count radius for a 400 metre walk is 280 to 340 metres.
- P5. Removing footways and paths lowers each corridor's walking count by 5% to 15%.
- P6. A one-year-old map moves each corridor's main count by under 2%, and a map from census day by under 5%.
- P7. More than 60% of residents lost between the two measures are lost to street layout or missing links, not to water or
  motorways.

Each is scored on the page, right or wrong.

## Decision rule

If route 14 still leads on the walking measure in the main case, the published recommendation stands, with the lower count.
If it does not, the page leads with the flip. No result changes the published page's numbers.

## Limits fixed in advance

A shortest path is not a pleasant or safe walk. The network has no slope, no crossing delay and no sidewalk width, so it is not a
measure for wheelchair users or for everyone on foot. OpenStreetMap is volunteer-mapped, so a missing path looks the same as a
real barrier. Population stays uniform within each dissemination area, and it is the 2021 census. Reach is not ridership.

## Stopping

One scored run of the frozen code. A code defect found after that run is fixed in a new declared run, with both kept and the
change named on the page. A source that cannot be fetched is reported, with the part it supported marked as not run.
