On Jan 2, 1:31 pm, Hubba <[email protected]> wrote:
> But I cannot figure
> how to calculate the vessels new position based on it's current
> position, speed, direction and timelevel...

Distance to be travelled is speed x time. So 4 hours at 20kn would
result in travelling 80nm.

Use the Haversine formula to determine the point 80nm away from your
current position on the bearing you have. See 
http://www.movable-type.co.uk/scripts/latlong.html
-- scroll down to "Destination point given distance and bearing from
start point". You'll need to make sure that you use the right radius
figure depending on the units you're measuring in
(6371km=3959mi=3440nm). The calculation is reasonably complex, but the
Javascript is given there.

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