Relative Position in PHP between 2 points (Lat/Long)
- by Brian H
I have a database of airports with Latitude and Longitude for each point. I want to run a PHP script to find all airports that are nearby a given airport, with their distance and relative direction.
I.e. for Airport KLDJ (40-37-02.810N 074-14-40.539W)
Airport Nearby
KJFK - John F Kennedy Airport (21.2 nm NE) (40-38-23.104N 073-46-44.132W)
…