Skip to content

Commit cbc1290

Browse files
authored
Describe options for trunk access in bicycle and foot profiles
1 parent becfd8a commit cbc1290

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/profiles.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,20 @@ There are a few helper functions defined in the global scope that profiles can u
375375
- `trimLaneString`
376376
- `applyAccessTokens`
377377
- `canonicalizeStringList`
378+
379+
### osrm-extract location dependent data
380+
The creation of the dataset for routing use requires preprocessing of the osm data source.
381+
The first preprocessing step is via osrm-extract.
382+
Certain data (like driving-side or vehicle height) may be different between areas.
383+
The "--location-dependent-data" command option can be used to pass geojson polygon data to support this differentiation.
384+
385+
### Highway support for Trunk Roads
386+
The default routing profiles foot.lua and bicycle.lua do not allow access on ways with highway="trunk" or highway="trunk_link".
387+
The wiki page outlining access restrictions ("https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access_restrictions") outlines seven countries that do not allow such access.
388+
If the setup option uselocationtags includes 'trunk' then access is changed to yes for all countries.
389+
To support routing data that honours different trunk access
390+
391+
- confirm uselocationtags = 'trunk' is set
392+
- osrm-extract --location-dependent-data data/notrunk.geojson ...
393+
394+
This geojson sets the notrunk option for the seven countries (Austria, Belgium, Denmark, France, Hungary, Slovakia and Switzerland).

0 commit comments

Comments
 (0)