I need a script for calculate distance between two aeroport

Discussion in 'PHP' started by essadik34, Apr 7, 2011.

  1. #1
    the user will enter the departure city and arrival city, then we will calculate the distance,

    Thanks for your help ;)
     
    essadik34, Apr 7, 2011 IP
  2. lukefowell89

    lukefowell89 Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you mean difference in flight paths? or direct distance? All you would need to do is find the lat-lng for each airport then calculate the distance between them
     
    lukefowell89, Apr 8, 2011 IP
  3. essadik34

    essadik34 Active Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #3
    i mean direct distance between two cities, can you tell me how i get the lat-lng of each city
    thanks
     
    essadik34, Apr 8, 2011 IP
  4. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #4
    plog, Apr 8, 2011 IP
  5. essadik34

    essadik34 Active Member

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #5
    Thanks brother :D
     
    essadik34, Apr 12, 2011 IP
  6. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    srisen2, Apr 12, 2011 IP
  7. shmekerosu

    shmekerosu Active Member

    Messages:
    571
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    90
    #7
    you can get calculation directly from gmaps api or convert distance between 2 lat/long coordinates mathematically (no need of api or other tools). if you need help let me know.
    cheers and good luck!
     
    shmekerosu, Apr 29, 2011 IP