On May 3, 7:40 am, Thoern <turbokil...@gmail.com> wrote: > Found a post that stated one could extrace distance between 2 points > by using > > distance = Math.sqrt((69.1*(cy-lat))*(69.1*(cy-lat))+(53.0*(cx-lng))* > (53.0*(cx-lng))); > > however what is > (point 1) (point 2) > lan1,lon1 lan2,lon2 > > is that as below? > > distance = Math.sqrt((69.1*(lat1))*(69.1*(lat2))+(53.0*(lon1))* > (53.0*(lon2)));
Might I suggest the (fairly new) geometry library: http://code.google.com/apis/maps/documentation/javascript/geometry.html#Distance -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.