Looking for a solution for measuring the straight line distance between two addresses using Google maps API, not the driving distance.
Asked
Active
Viewed 3,414 times
1 Answers
2
First use google map geocoding API to find the lat/lng of your adresses:
Then calculate distances between those two points using Harvesine formula
Here is an example of the Haversine formula injs on a SO post
m.nachury
- 912
- 7
- 22