graphhopper / directions-api

Issues for the GraphHopper Directions API
https://graphhopper.com/api/1/docs/
60 stars 25 forks source link

What is the response for the Matrix API if a location cannot be found? #17

Closed karussell closed 8 years ago

karussell commented 8 years ago

See these coordinates:

https://graphhopper.com/api/1/matrix?point=53.600859,8.304977&point=53.639753,8.246269&type=json&vehicle=car&debug=true&key=[YOUR_KEY]&out_array=times&out_array=distances

Of course, you have to replace YOUR_KEY

The response in this example is:

{"message":"Bad Request",
 "hints":[{"details":"java.lang.IllegalArgumentException","message":"Cannot find from_points: 1"},
          {"details":"java.lang.IllegalArgumentException","message":"Cannot find to_points: 1"}]}

Here is the GraphHopper Maps query with the same coordinates.