Update profiles.md

This commit is contained in:
tombay 2024-08-06 12:05:34 +10:00 committed by GitHub
parent 5de04792e6
commit b969f13e14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,12 @@ When running OSRM preprocessing commands you specify the profile with the --prof
`osrm-extract --profile ../profiles/car.lua planet-latest.osm.pbf`
### Profiles for Country differences
Some countries have differing access rules for different transport types. (https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access_restrictions). Profiles countrycar, countrybicycle and countryfoot may be used as starting points for country support. Country Specific location data (geojson geometry) should be provided to the osrm-extract for example:
osrm-extract --profile ../profiles/countryfoot.lua --location-dependent-data ../data/osmb.geojson
osrm-extract --profile ../profiles/countrybicycle.lua --location-dependent-data ../mygeojson/Netherlands.geojson
## Processing flow
It's important to understand that profiles are used when preprocessing the OSM data, NOT at query time when routes are computed.