On Jul 30, 9:12 am, vale007 <[email protected]> wrote: > Andrew, thanks for the response. > Although I can see how that works, the problem is for example when a > given highway corsses multiple state lines, the messages "entering XX > state" will appear in the directions but there´s no way to find the > distance traveled in each state.
Sure there is. Calculate the length of the polyline between the points associated with those messages. Mike Williams put together an example of doing just that a while ago. I'll see if I can find it or a copy of it, but you might be able to find it quicker. -- Larry > > On 30 jul, 11:50, Andrew Leach <[email protected]> wrote: > > > > > On Jul 30, 4:27 pm, vale007 <[email protected]> wrote: > > > > Thoughts? > > > Examine each step of the directions, keep a running total and output > > the total when you find that message. > > > Have a look athttp://econym.org.uk/gmap/steps.htm--if you want to > > include your distance messages within the directions, you'll need to > > go the whole hog and rewrite the directions panel like Mike shows. If > > you just need the data, you'll still need to read through the data > > like he does in order to calculate it. > > > Andrew- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
