One routing graph for AM-licence vehicles across all supported countries. The Netherlands is the one supported today. The build, merge, audit and release are built for several countries on equal terms, and a second is added by the procedure in adding a country. Country-specific rules, primary sources and retrieval dates are documented per country under docs/countries/.
The build enriches each country's OpenStreetMap extract with its own authority data, audits every input, and merges the results by OSM identity and official territory. Ways and junctions carry their own country attribution. A supported border crossing must satisfy every applicable country's rules; territory with no verified rules stays closed. Conflicting source versions stop the merge.
A class borrows a stock Valhalla access bit, its carrier. A class keeps its carrier across a border, so a country added later puts each of its classes on the carrier of the class it matches:
| Carrier | Netherlands | Valhalla costing |
|---|---|---|
motorcycle |
bromfiets |
motorcycle |
truck |
brommobiel |
truck |
Identifiers retain their statutory language. A carrier is storage for a
vehicle's access decision; it does not give that vehicle the rights of a
truck or motorcycle. Consumers must use the matching rules package for vehicle
selection, speeds and powertrain-dependent legal zones. A route is lawful only
once amgraph_rules.legal_zones.LegalZones.blocks has passed it against the
release's boundaries/legal-zones.geojson: the tiles cannot hold an emission
zone, because a combustion and an electric vehicle of one class share a carrier.
A consumer not written in Python must reproduce that check, not skip it.
- Documentation index
- Multi-country architecture
- The access model
- Build, verification and releases
- Shared country rules and adding a country
- Country rules: Netherlands
- Contributor instructions
The code is Copyright Rashad Ansari under the PolyForm Noncommercial License 1.0.0: use it, change it and redistribute it for any noncommercial purpose, keeping the licence and its required notice with it. Commercial use needs a separate licence.
The published graph is derived from OpenStreetMap, © OpenStreetMap contributors, so it is offered under the Open Database License 1.0, which allows commercial use and asks for attribution and share-alike. The boundary files are © Kadaster under CC BY 4.0.
NOTICE.md sets out all three in full, and why they differ.