finalbytes / google-distance-matrix-api

Google Distance Matrix API
MIT License
10 stars 10 forks source link

ZERO_RESULTS is not handled #4

Open michaelrachlitz opened 5 years ago

michaelrachlitz commented 5 years ago

For queries too abstract on the origin parameter, ex. zipcodes matching multiple locations in the world, Google Distance Matrix API won't be able to know where the origin is based.

This results in no calculations for the comparison to destinations, Google treats this with the status for each element "ZERO_RESULTS". The library does not handle ZERO_RESULTS today.

finalbytes commented 5 years ago

Thank you for reporting this shortcoming. I will look at it as soon as I have the time.