Duration for pre-defined route

14 views
Skip to first unread message

ncohen

unread,
Aug 1, 2011, 8:54:58 AM8/1/11
to google-map...@googlegroups.com
Hi,
I would like to get the duration for a pre-defined route... it seems that duration 'goes' only with directions but what if I have a precise pre-defined route? Is there such a thing as a webservice request?

Thanks

geoco...@gmail.com

unread,
Aug 5, 2011, 4:54:46 PM8/5/11
to Google Maps JavaScript API v3
On Aug 1, 5:54 am, ncohen <cohen....@gmail.com> wrote:
> Hi,
> I would like to get the duration for a pre-defined route... it seems that
> duration 'goes' only with directions but what if I have a precise
> pre-defined route?

To get the distance and duration, the directions service needs to
return that "precice predefined route". You can use waypoints (up to
8 with the free API) to modify the route that the directions service
returns, if you doesn't get the one you want.

> Is there such a thing as a webservice request?

You mean like this?
http://code.google.com/apis/maps/documentation/directions/

-- Larry

>
> Thanks
Reply all
Reply to author
Forward
0 new messages