Hello Kasper,

On Wednesday, October 12, 2011 10:35:55 PM UTC+2, Kasper wrote:
>
> What do you think is the best way to do that?
> It is hard to do in databases (atleast, I think so) because the amount of 
> stations on a route is never the same...
>

Check this project https://github.com/vasile/vehicle-simulator/ 
It's animating markers(vehicles) along polylines(train tracks) by know-ing 
the departures and arrival in the stations and the tracks between them. You 
can see it in action here http://www.vasile.ch/hacks/swisstrains-v2/
 

> Also, I need to find a way to get the length of a polyline, is that just 
> the function: polyline.Distance(); ?
>

You need to include the geometry lib in your API call
http://code.google.com/apis/maps/documentation/javascript/geometry.html

Then use google.maps.geometry.computeLength()

-- 
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/-/y1LmUrS-gNoJ.
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