Longitude and Latitude Calculations
Posted: Wed Oct 08, 2008 6:50 am
I was wondering if anyone could help me with Longitude and Latitude calculations.
What I am trying to do is see if a longitude and latitude supplied by a user falls within a pre-defined circular area (unfortunately it has to be circular, it would have been easy working with a rectangular area)
The information I have is:
- The centre point (longitude and latitude) of the circular area and the radius of the area in miles. (stored in database)
- User supplied longitude and latitude co-ordinates (supplied via web site)
I am new to working with longitude and latitudes and not really sure where to start.
Any help would be greatly appreciated.
Thanks and regards
John
What I am trying to do is see if a longitude and latitude supplied by a user falls within a pre-defined circular area (unfortunately it has to be circular, it would have been easy working with a rectangular area)
The information I have is:
- The centre point (longitude and latitude) of the circular area and the radius of the area in miles. (stored in database)
- User supplied longitude and latitude co-ordinates (supplied via web site)
I am new to working with longitude and latitudes and not really sure where to start.
Any help would be greatly appreciated.
Thanks and regards
John
