问题描述:

  1. We are storing user's latitude & longitude data every minutes.
  2. For example, after 50 minutes,we have 50 lat long entries in

    database.

  3. We want to calculate exact distance traveled using these lat longs.
  4. We know, how to calculate straight distance between two lat longs.
  5. We also know, how to calculate path distance between two lat longs

    using google API.

  6. 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

    journey.

Is there any API available for this or anyone else have built such king of solution in PHP?

相关阅读:
Top