OSRM has unfound route(s) from location


#1

Hello
Im getting this error when I try to run the optimization through google apps script.

What does it mean?


#2

Generally: always copy the request into threads like this pls, otherwise it’s hard to debug.

This is easy though: the optimizer encountered one or more routes it can’t calculate because one or more of the input coordinates couldn’t be snapped to the road network or there are no valid routes between them. If you run a Matrix API request on the input data, you’ll see which ones return 0 for distance/duration, then you can throw those out.


#3

Great!
Thanks for the tip on requesting help in future - Ive made a note. Thank you again for explaining the error I was getting; It makes sense, now that I know that GPS coords must be reachable by road. All the locations are in Brazil. And I will try your suggestion, thanks again.