NHDOT's Turnpike System: 7 plazas (Hooksett Main and Ramp, Bedford Main, Hampton Main and Side, Dover, Rochester), 12 classes, from NHDOT's schedule effective January 1, 2022: NH E-ZPass accounts pay the E-ZPass Fare (the 30% / 10% discount, RSA 237:11 V), everyone else — cash, other states' E-ZPass, plate billing at the all-electronic plazas — the posted Cash Fare. Plus the private Mt. Washington Auto Road (per person).
nhdot_toll_rates_2022 (a new source name with the new year), then update the builder's source name and the regression amounts.node ~/apitest/fetch_b100.mjs ~/nhfetch <name>=<url>, then rsync -a ~/nhfetch/ geo1@192.168.50.220:/home/geo1/maps/toll/NH/sources/. The statute (nh_rsa_237_11) and NHDOT's plaza layer (nhdot_facilities_toll_plazas) fetch from geo1.mwar_drive_yourself).python3 nh_state.py parses the schedule PDF (asserts the 7 plaza names and 12 values each) and the class chart (asserts 12 classes). Full chain with NH after an OSM refresh.
PLAZA in the builder (asserted within 400 m).Hosts: geo1 (192.168.50.220) holds the sources, builders, drafts, map and API; b100 (192.168.50.14) is the test client. All times are Eastern.
| what | where (geo1 unless said) |
|---|---|
| sources list | /home/geo1/maps/toll/NH/urls.txt (name <tab> URL) |
| archived sources | /home/geo1/maps/toll/NH/sources/<name>/<YYYY-MM-DD>/ (file + meta.json: url, fetched, sha256) |
| builder | /home/geo1/system/handbuilt/nh_state.py; shared code toll_common.py |
| OpenStreetMap inputs | /home/geo1/system/handbuilt/osm/nh_* (cut from /home/geo1/maps/osm/us-latest.osm.pbf) |
| output | draft /srv/toll/draft/NH/ (the builders write here); published /srv/toll/NH/ (copied from the draft by promote.py publish). The map and the API read the published page, or the draft while it is listed for review |
| toll engine | source /home/geo1/maps/web/tolls.js, served copy /srv/maps/tolls.js (the API runs the served copy) |
| API | /home/geo1/maps/api/server.mjs on 127.0.0.1:8090 behind nginx /api/; pid in logs/test.pid |
| regression trips | b100: ~/apitest/site/cases.json, runner ~/apitest/run.py, browser check ~/apitest/browser.mjs |
python3 /home/geo1/system/handbuilt/fetch_list.py NH [name ...] (no names = every line of urls.txt). A new source: add a line to urls.txt first, then fetch it by name.node ~/apitest/fetch_b100.mjs <out> <name>=<url> ..., then rsync -a <out>/ geo1@192.168.50.220:/home/geo1/maps/toll/NH/sources/. Its meta.json records that it came from b100.diff, pdftotext -layout for PDFs). Same content: nothing to do. Changed amounts or a new effective date: rebuild (step 2) and update the expected amounts of the affected regression trips from the operator's own figures.python3 /home/geo1/maps/toll/bin/tollup.py NH update fetches the adapter's sources (bin/adapters/nh.py), stores a document only when its content changes, writes one rate file per version under /home/geo1/maps/toll/NH/rates/ and appends every price change to history.csv (every run to runs.log). TOLL_WEB=/home/geo1/maps/toll/corpus python3 /home/geo1/maps/toll/bin/publish.py NH writes the corpus /home/geo1/maps/toll/corpus/NH from it (DE: plain publish.py DE writes /srv/toll/DE). Never hand-edit either. Then rebuild the draft (step 2) so it picks up the new rates.
cd /home/geo1/system/handbuilt && python3 nh_state.pybash /home/geo1/system/handbuilt/chain.sh NH (logs in /tmp/nh1.log ... nh6.log; it prints the points, any point on no road and the untied count). The builders written since October 2026 share state_kit.py (sources, booths, terms, rows, write) and own_state.py (keeps a state's untied list to toll nodes inside the state, by the local geocoder; cache osm/node_state.json).cd /home/geo1/system/handbuilt; H=$(ls osm/nh_highways_*.geojsonseq); J=$(ls osm/nh_junctions_*.geojsonseq)
python3 nh_state.py && python3 osm_streets.py NH $H $J && python3 nh_state.py && python3 osm_snap.py NH && python3 toll_ways.py NH && python3 nh_state.pytoll_ways.py's output: nodes claimed by two points: {} and points on no road: [] must both be empty.OSM way <id>) needs that way in osm/nh_lane_ways.json (the builder writes it). A point on a road priced entry to exit needs gantry in its location name, or toll_ways.py treats it as a position-only exit marker.osm/ny_not_toll_nodes.json (congestion-zone gantries that are not tolls); every state's untied list leaves those out, so rebuild NJ and PA after NY.tolls.js when it starts. Restart it: cd /home/geo1/maps/api && kill $(cat logs/test.pid); (nohup /home/geo1/maps/node/bin/node server.mjs > logs/server.log 2>&1 & echo $! > logs/test.pid) (it is started by hand, not a service).python3 ~/apitest/run.py ~/apitest/site/cases.json. Every trip must be OK. Add a trip for every rate or rule you change, with the amount taken from the operator's own source.tolls.js): edit /home/geo1/maps/web/tolls.js, check with /home/geo1/maps/node/bin/node --check, copy to /srv/maps/tolls.js with sudo install -o www-data -g www-data -m 644, restart the API, run the trips.The builders match toll points to the OSM way ids the router drives, so the extracts here must come from the same us-latest.osm.pbf the router (Valhalla, /home/geo1/maps/valhalla_data) was built from (now 2026-09-27). New OSM data means: rebuild the router tiles, then for each state cut the box, rebuild its OSM inputs and run the full chain, then compare untied_toll_nodes.csv and the estimated positions below. The box for NH and the cutting commands are in the state's procedure above; the toll-node and way index comes from python3 tollnode_ways.py NH.
A rebuild writes the draft (/srv/toll/draft/NH); the published page (/srv/toll/NH) does not change. python3 /home/geo1/maps/toll/bin/promote.py review NH lists the draft for review: the map and the API then read it instead of the published page. Run the regression trips from b100. After approval, python3 /home/geo1/maps/toll/bin/promote.py publish NH copies the draft to /srv/toll/NH (the previous page is kept under /home/geo1/maps/toll/NH/published/<time>/) and takes it off the review list. After a change, update the coverage line for NH in the API page (/api.html, generator /home/geo1/maps/api/doc/api_page.py) and rebuild this page: python3 /home/geo1/system/handbuilt/maintain_pages.py NH.
Each fetch is kept in its own dated folder under /home/geo1/maps/toll/NH/sources/<name>/; the builder always reads the newest one, so a new fetch takes effect at the next rebuild and the old one stays for comparison.
| source | fetched (newest) | fetches kept | how | listed in urls.txt | rows using it |
|---|---|---|---|---|---|
ezpassnh_homehttps://www.ezpassnh.com/ | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | |
mwar_drive_yourselfhttps://www.mt-washington.com/drive-yourself | 2026-10-09 | 1 | fetch_list.py | yes | 2 |
nh_rsa_237_11https://www.gc.nh.gov/rsa/html/XX/237/237-11.htm | 2026-10-09 | 1 | fetch_list.py | yes | |
nhdot_aet_everett_2026https://www.dot.nh.gov/news-and-media/all-electronic-tolling-set-begin-fe-everett-turnpike | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | |
nhdot_aet_spauldinghttps://www.dot.nh.gov/news-and-media/all-electronic-tolling-set-begin-spaulding-turnpike | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | |
nhdot_ezpass_systemhttps://www.dot.nh.gov/navigating-nh/highways-and-toll-roads/turnpikes-projects/e-zpass-sy | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | |
nhdot_facilities_toll_plazashttps://maps.dot.nh.gov/arcgis_server/rest/services/Facilities/NHDOT_FACILITIES/MapServer/ | 2026-10-09 | 1 | fetch_list.py | yes | |
nhdot_spaulding_turnpikehttps://www.dot.nh.gov/navigating-nh/highways-and-toll-roads/turnpike-systems/spaulding-tu | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | |
nhdot_toll_class_charthttps://mm.nh.gov/files/uploads/dot/remote-docs/tolls-class-chart.pdf | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | |
nhdot_toll_rates_2022https://www.dot.nh.gov/sites/g/files/ehbemt811/files/imported-files/toll-rate-01012022.pdf | 2026-10-09 | 1 | b100 (192.168.50.14), headless Chrome: the site refuses geo1 / scripts (HTTP 403) | yes | 171 |
| id | facility | operator | points | rate / trip rows | effective dates in the rows | source |
|---|---|---|---|---|---|---|
NH-TPK-EVERETT | F.E. Everett Turnpike | NHDOT Bureau of Turnpikes | 3 | 72 | 2022-01-01 | nhdot_toll_rates_2022 |
NH-TPK-BLUESTAR | Blue Star Turnpike | NHDOT Bureau of Turnpikes | 2 | 48 | 2022-01-01 | nhdot_toll_rates_2022 |
NH-TPK-SPAULDING | Spaulding Turnpike | NHDOT Bureau of Turnpikes | 2 | 48 | 2022-01-01 | nhdot_toll_rates_2022 |
NH-MWAR | Mt. Washington Auto Road | Mt. Washington Summit Road Company | 1 | 1 | 2026-10-09_observed | mwar_drive_yourself |
| point | facility | location | placed on | why |
|---|---|---|---|---|
NH-MWAR-01 | Mt. Washington Auto Road | Toll House (base of the road) | the Auto Road's first way from NH 16 (OSM 'Mount Washington Auto Road') | per person, seasonal |
R1: 7, R3: 1, direction: 7, not: 3, per: 1, scheduled: 1 (all in decisions.csv).
None.
Toll booths / gantries mapped in OpenStreetMap on or near this state's roads that no toll point claims; a route through one lists it under unpriced. After an OSM refresh, look at new ones here (untied_toll_nodes.csv): a new gantry on a priced road means a point is missing.
Run from b100 (never on geo1): python3 ~/apitest/run.py ~/apitest/site/cases.json. Every trip must come back OK; a changed amount is either a rate change (update the expected amount from the operator's own source) or a fault.
| trip | expected |
|---|---|
| NH I-95 Hampton Main, NJ E-ZPass = posted fare ($2.00, NHDOT 2022 schedule) | $2.00 |
| NH I-95 Hampton Main, NH account = NH E-ZPass fare ($1.40) | $1.40 |
| NH I-93 Hooksett Main, bill by plate = posted fare ($1.00) | $1.00 |
| NH Everett Tpk Bedford Main, NH account ($0.70) | $0.70 |
| NH Spaulding Dover + Rochester, NJ E-ZPass ($0.75 + $0.75) | $1.50 |
| NH Mt. Washington Auto Road, driver alone ($36 per adult) | $36.00 |