On Jun 1, 9:42 am, "M.M." <[email protected]> wrote:
>
> At a certain point you can read "Take the ferry..." (253 km).
>
> I'd like to write "The journey is 500 km long: 300 km by car and 200
> km by ferry".
>
> On the Google Maps site of course this is not possible. How can this
> be done in a simple way? Should I look for the string "ferry" (or
> anything else?) in each result?

What is in the directions depends on who provided them. For instance I
get the name: "Take the Newhaven - Dieppe ferry to Newhaven", and
there is also "Take the Dover Folkestone - Calais Frethun train to
Folkestone". You would probably need to use regular expressions to
catch the strings, along with some trial-and-error.

See http://econym.org.uk/gmap/steps.htm for how to enumerate
directions using the API.

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