Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

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

Closed
karussell opened this issue Sep 2, 2015 · 0 comments
Closed
Labels

Comments

@karussell
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant