- We are storing user's latitude & longitude data every minutes.
- For example, after 50 minutes,we have 50 lat long entries in
- We want to calculate exact distance traveled using these lat longs.
- We know, how to calculate straight distance between two lat longs.
- We also know, how to calculate path distance between two lat longs
using google API.
- But, this API gives us distance of predefined path. User may take
short cuts during journey,that's why we want to calculate exact
distance traveled by passing entire set of lat longs captured during
Is there any API available for this or anyone else have built such king of solution in PHP?