You could use the distance function to calculate this. Calc the
distance between the points, and as you know the circumference of the
earth, the ratio between those distances is the same as the ratio
between your required angle and a full circle.

But the distance formula is probably working from angles then
converting to distance, so you can simplify the calculation back, to
just give you what you need

As the earth isnt actully a perfect sphere its all aproximate anyway.



On Wed, Oct 29, 2008 at 3:33 PM, csdude <[EMAIL PROTECTED]> wrote:
>
> Uhm,  no I am not looking for the bearing.
>
> If I have two coordinates and I draw a vector from the center of the
> earth to each of the  coordinates, I want the angle between the two
> vectors.
>
> Ron
>
> On Oct 29, 11:26 am, "warden [Andrew Leach - Maps API Guru]"
> <[EMAIL PROTECTED]> wrote:
>> On Oct 29, 3:18 pm, csdude <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> > does anyone know of a routine/algorithm to calculate the angle between
>> > two lat/long coordinates ? (is there something in the API that does
>> > that ?)
>>
>> Presumably you mean the bearing. 
>> Seehttp://www.movable-type.co.uk/scripts/latlong.html
>> for lots of useful stuff in one place.
>>
>> Andrew
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

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