On Sunday, October 30, 2011 5:01:59 PM UTC+1, Kasper wrote:
>
> There are just a few things bothering me though:
> -How did you select the polylines you needed for determining the positions?
>

That's done in advance, server-side, check the AJAX feed with vehicle data 
that is explained here https://github.com/vasile/vehicle-simulator
 

> -How do you take returning rides into account? For example, when a train 
> is going away from a station, it will also come back some time, but the 
> coordinates of the polyline will have to be inverted, how did you work with 
> that?
>

Just reverse the array containing the coordinates, i.e.
http://www.hacksparrow.com/reversing-an-array-in-javascript.html

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/j9Der4Y-EnEJ.
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-js-api-v3?hl=en.

Reply via email to