What formula can I use to calculate a range of ALL coordinates (lon, lat) that are within a given distance (ex x=50 miles) from a given set of coordinates (ex. 40.948208, -074.295592)?
Answer example could be all longitude between 30-50 and all latitude between -50 and -100.
The following formula is used to calc the distance between 2 given points
R = earth’s radius (mean radius = 3956 miles)
Δlat = lat2− lat1
Δlong = long2− long1
a = sin²(Δlat/2) + cos(lat1).cos(lat2).sin²(Δlong/2)
c = 2.atan2(√a, √(1−a))
d = R.c
2007-06-26
14:22:54
·
3 answers
·
asked by
nkbsbl
2
in
Science & Mathematics
➔ Physics