It sounds a bit unstable to rely on a route description to determine if it is a ferry route or not. Maybe the description suddenly changes and then this method is not working any more. To get the right distance between 2 addresses is critical for business for us.
My application has a database. I'm thinking about have a list of ferry routes in it. Each route knows start and end adress. If a route partly include those coordinates that distance is excluded. Hm, it would be alot easier if Google would supply a ferry property in the API :) /Roland On Aug 26, 1:22 am, "warden [Andrew Leach - Maps API Guru]" <[EMAIL PROTECTED]> wrote: > On Aug 25, 9:20 pm, marcelo <[EMAIL PROTECTED]> wrote: > > > Just parse your route manually and read each > > GStep.getDescriptionHtml() and if it says something like "Take the AAA > > - BBB ferry to CCC" you know the route gets on a ferry. > > Which is fine if it's always going to take that form. I've just found > some directions which say "Take the Tobermory-South Baymouth ferry" > for example; others just say "Take the Woolwich Ferry". > > I suppose that fixing the locale would be a good idea if it's > necessary to parse the text returned. I'd forgotten to mention that: > there's no point in trying to find an English phrase if the directions > are in French. > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
