[OSRM-talk] Left/Right side of the street?
Daniel Patterson
daniel at mapbox.com
Fri Mar 2 22:05:55 UTC 2018
Hi Xavier,
Yes. Take a look at the "approaches=curb" parameter - this will force
the routing engine to approach the waypoint on the curb side of the road.
By default, the curb side is the right, but you can modify that in the Lua
profile by changing the "driving_side" property, or if you need to set up
routing data for countries with both, use the `--location-dependent-data
data/driving_side.geojson` parameter to `osrm-extract` to set the
driving-side on a country-by-country basis.
See the "Request Options" section of the API documentation for details on
how to use the `approaches=` parameter:
http://project-osrm.org/docs/v5.15.2/api/#requests
daniel
On Fri, Mar 2, 2018 at 1:59 PM, Xavier Prudent <prudentxavier at gmail.com>
wrote:
> Dear all,
>
> Being a newcomer in OSRM, my question may sound naive :
>
> When requiring for a route between 3 points A, B, C, in a
> drive-on-the-right country.
>
> Can OSRM take into account the fact that B may be on the left side of the
> way?
>
> Thanks,
>
> regards,
>
> Xavier
>
> --
>
> *Xavier Prudent *
>
> *Data Scientist - Data Mining - Machine Learning*
>
> Web :* www.xavierprudent.com <http://www.xavierprudent.com>*
> Tel (Québec) : (514) 668 76 46
> Skype : xavierprudent
>
>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20180302/c562bfd5/attachment-0001.html>
More information about the OSRM-talk
mailing list