On Oct 29, 10:31 am, subbu <[EMAIL PROTECTED]> wrote:
> Hai,
>       I am displaying a moving vehicle in google map.The marker is
> correctly displaying  the position in the map.But i have one
> problem .I want to display the direction of the vehicle.so that the
> user can easily identify the direction of the vehicle.

Jolly good. Is there a question there?

The way to do it is to keep a record of the last position of the
vehicle (say x1,y1) and draw a line using the current position (x,y).
Rather than draw a line from (x1,y1) to (x,y), which would show the
last section of the route travelled, you could draw a line from (x,y)
to (2x-x1,2y-y1), which would draw a line in the same direction but
ahead of the vehicle.

BUT be aware that the TOU do not allow any vehicle tracking, and if
you are displaying the position of a real vehicle [whether in real-
time or not] without an Enterprise/Premier licence, you are violating
the Terms.

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