Skip to content

Commit

Permalink
multicountry geojson is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
tombay authored Aug 13, 2024
1 parent 843a6ec commit 7eb952d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,10 @@ To enable support add 'countryspeeds' to the uselocationtags Set. e.g.

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/countryfoot.lua --location-dependent-data ../data/allthecountries.geojson

osrm-extract --profile ../profiles/countrybicycle.lua --location-dependent-data ../mygeojson/Netherlands.geojson

If you enable the tag but provide no location-dependent-data, the profile will use the 'Worldwide' settings. (https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access_restrictions#Worldwide)

It is possible to to include multiple countries in the location data file through the use of a FeatureCollection.

0 comments on commit 7eb952d

Please sign in to comment.