You wrote
>I would like to get the Duration from the starting point for
>intermediate travel points (lat, lng) if the route is a lengthy one.
>
>For example : a route in PA, USA will be 4 Hours, 50 Min.
>
>Start : 40.43521000000000500000        -79.75136000000000000000
>End  : 40.11711000000000400000 -74.83149000000000000000.
>
>Say, I would like to get the duration for
>Point #1, 40.08828000000000500000, -75.35325000000000000000
>Point #2, 40.11143000000000600000, -75.28495000000001000000
>
>I have used Gsteps, however it gives only the duration for the entire
>length of the segment, as this one is long stretch on the same road
>without any turns.
>
>I would like to get duration in between, without refreshing the maps.
>Is there a way?
>
>Or is there a way to identify a point( Lat, Lng) , say every 15 Min,
>along the route?
>
>Thanks in advance.

The only way I can think of is to add waypoints at the intermediate 
points. Then you get a separate GRoute() for each waypoint. You can have 
up to 25 waypoints in one GDirections call.

[Hint, you can make one GDirections call for the whole route, then use 
EPoly.GetPointAtDistance() to slice the resulting polyline into sections 
of equal length, then make a second GDirections call using those 
waypoints.]

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

Reply via email to