On Mar 21, 10:23 am, "[email protected]" <[email protected]> wrote: > On Mar 21, 10:00 am, Shanti <[email protected]> wrote: > > > ok, the code worked perfectly except for one thing, it does not show > > if its east or west (e.g a marker on the left shows 220.10 and a > > marker on the right shows 220.10, instead or -220.10) any idea how to > > fix this? > > I don't have that problem on my pages that use the code. > Where is a link to a map that shows what you are talking about?
Actually: -220 === +140 Depending on how you code things for an angle in degrees you can get: -180 to +180 or 0 to 360 0 to 180 is east 0 to -180 or 180 to 360 is west I guess I don't understand why a marker on the right (to the east) would return a bearing of 220... -- Larry > > -- Larry > > > > > Thanks! :) > > > On Mar 20, 2:10 am, Mike Williams <[email protected]> wrote: > > > > Wasn't it neil.young who wrote: > > > > >Does one know, whether the JS API function is a great-circle distance > > > >calculation? The bearing calculatios seems to be it. > > > > GLatLng.distanceFrom() considers the Earth to be a perfect sphere. So > > > you get great circle distances that would be the case if the Earth > > > wasn't oblate. > > > > --http://econym.org.uk/gmap > > > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
