Here's a map with different formulae I have found. I'm not sure when or if I have to convert values to rads or degrees.
The marker in the ocean is movable, drag and drop to display the azimuth to the static marker. I'm not getting the expected azimuths from any of the methods, most likely to poor implementation and a fundamental lack of knowledge in the area. http://testmap.comxa.com/testmap.htm On Feb 18, 4:55 pm, "[email protected]" <[email protected]> wrote: > On Feb 18, 8:52 am, "[email protected]" <[email protected]> > wrote: > > > > > On Feb 18, 8:07 am, bob_harris <[email protected]> wrote: > > > > Using the signed decimal degrees units which Google Maps uses, how can > > > I find the direction / angle of a straight line from point A to point > > > B on the map. > > > > I'd like to have an azimuth returned which I can then convert into > > > "english". i.e. > > > 45 degrees = NE > > > 180 degrees = S > > > etc. > > > > I've looked at various formulae on the internet but none of them seem > > > to work for me, the numbers they return don't make any sense. > > > I have managed to make it work. I can't point to a URL off the top of > > my head, but maybe if you provided one to your map where the numbers > > "don't make any sense", we can see what you are doing wrong. If I > > have time I will try and dig up an example I can post. > > Have you looked a Mike Williams' "Bearing" method in his epoly > extenstion?http://econym.org.uk/gmap/epoly.htm > > -- Larry > > > > > -- Larry -- 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.
