I think this is a great circle calculation, one that googlemaps can
do. However, in order to sort a large dataset in sql for display I
need to be able to find four points (n, e, s, w) that are 10 miles
away from my center point and then find the lat and long for each of
those points.
that way I can use the lat and long to sort the large dataset before
doing a radii search...
someone else is doing most of the programing, but I think this is a
great circle calculation...would I need to put the formula below in on
some other side or is there a googlemap way to do this.
Dollar to anyone who can help me.
A point {lat,lon} is a distance d out on the tc radial from point 1
if:
lat=asin(sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos(tc))
IF (cos(lat)=0)
lon=lon1 // endpoint a pole
ELSE
lon=mod(lon1-asin(sin(tc)*sin(d)/cos(lat))+pi,2*pi)-pi
ENDIF
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---