gis-ops / routingpy

🌎 Python library to access all public routing, isochrones and matrix APIs in a consistent manner.
https://routingpy.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
252 stars 26 forks source link

OSRM #48

Closed orlandombaa closed 2 years ago

orlandombaa commented 2 years ago

Hello I just started to use routingpy. I see that there is many providers. I would like to use OSRM. However, the examples that I have seen are using mapbox_osrm which use a mapbox token and the free version has a very limited numbers of requests.

How can I use directly OSRM? In the webpage of OSRM I dont find the steps to create a token.

Best regards, Orlando

TimMcCauley commented 2 years ago

Greetings @orlandoandradeb you would have to run OSRM locally and then you can use this class https://github.com/gis-ops/routing-py/blob/master/routingpy/routers/osrm.py accordingly. Check the Github OSRM repository how to do so, I can recommend using the docker approach, the steps are fairly clear. If you have any further questions feel free to open this issue again.

orlandombaa commented 2 years ago

@TimMcCauley Thank you!