Example about POST with local docker instance


#1

Hi from this newbie!

I played a lot in the last month with the API sandbox, but now I touched the quotas limits.
So I installed the local docker version of Openroute Service, but I see that in order to use it I need more than switchinghttps://api.openrouteservice.org/ with http://localhost:8080.

Can you please me how to query the local instance?

This is what I used until now, with Python:

call = requests.post('https://api.openrouteservice.org/v2/directions/driving-car/geojson', json=body, headers=headers)

Of course, body and headers are properly filled.

Thank you!


#2

If you’re using Python, try this: https://github.com/GIScience/openrouteservice-py.

What you’re calling is http://localhost:8080/ors/v2/directions/.... See here: