SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to calculate the distance between two latitudes and longitudes

    Hi

    All

    I am using google maps which is displaying the route. I want to calculate how many kilometers the person has traveled.
    I am storing the latitudes and longitudes in the database


    Please provide me the code


    Thanks and regards.

    Md.Samiuddin

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    69 Post(s)
    Tagged
    0 Thread(s)
    Take a look at the PHP in the first post of this thread:
    http://www.sitepoint.com/forums/mysq...de-759719.html


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •