ORS tells me that the “Coordinates” parameter is missing. I searched the entire API (https://openrouteservice.org/dev/#/api-docs) and couldn’t see how to use the coordinates parameter. Also, the API never talks about the route “routes” but I deduce that “routes” = “directions”
Thank you for your help and thank you for this useful API !!
It’s generally better to use the v2 API which needs post requests and most of the content sent in the body of the request (the v1 endpoint will be removed in the not too distant future).
For example, the above query should be something like: localhost:8080/ors/v2/directions/foot-walking
with a body
Make sure that you also specify in the header 'Content-type: application/json` and it should work.
In the v1 api, coordinates are passed as a pipe separated list of coordinate pairs, so &coordinates=8.697609901428223,49.39622819171437|8.697609901428223,49.39622819171437 though the , and | should be url encoded
OK, so when using the v2 api, you either use the GET method with start=xxx&end=xxx in the querystring, OR you use the POST method whereby you have the information in the body. In the first image above, you are still sending it as a GET (the box next to the url).
Looking at the second item it looks like the profile for foot-walking hasn’t been built. Can you do a query to http://localhost:8080/ors/v2/status and post it? That will say what profiles are running.