Wasn't it Igor Partola who wrote: > >I am working on a GPS tracking project and the vehicles that are being >tracked do not do a very good job of reporting their heading. Is there >a way to detect the direction of the street that the vehicle is on, >given their GPS coordinates? I would then use this information to >position the vehicle as closely as possible to their reported >orientation.
You could perform a GDirections call between a previously reported position and their current position. Obtain the polyline for the route and take the orientation of the last two vertices. The downside to that is that the sort of repetitive use that you'd need for tracking will eat into your GDirections quota. Note also that GPS units may produce small random variations in the reported position, even if the vehicle is stationary, so when choosing a previously reported position make sure that it's far enough away. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
