I am working on the application where I need to calculate the distance between 2 points on road. I am trying to make use of the Google API's to find the same.
However, I am seeing the difference in between Distance calculate by Distance Matrix/Direction Service vs Google Map.
e.g. Distance Matrix Call -
https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&mode=driving&origins=32.9068408094901%2C-117.16891048788365&destinations=32.88825094509964%2C-117.21174850405791
Returns Data as
Direction Service API Call -
https://maps.googleapis.com/maps/api/directions/json?origin=32.9068408094901%2C-117.16891048788365&destination=32.88825094509964%2C-117.21174850405791
However, Google Map returns completely different results
I want to understand -
- Difference between Distance Matrix API and Direction service? They return same distance
- Why Google Maps return completely different distance?