On Feb 18, 8:55 am, "[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

Turned out I had a "bearing" function that I borrowed from Mike's
epoly extension already in my GenericMapBrowser.  Here is a sample
that uses it to calculate the bearing to an arbitrary point from the
points defined in the xml file
.
http://www.geocodezip.com/GenericMapBrowserBearing.asp

  -- Larry

>
>   -- Larry
>
>
>
>
>
> >   -- Larry- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to