On Jun 4, 4:20 pm, zeddy <[email protected]> wrote: > > If this is a road trip that you took or are going to take and want to > > document the plan, you can capture the polylines from GDirections and > > display them on your map as regular polylines. > > This is a pretty good idea. I guess you mean to just create a simple > little utility to retrieve the GPolyline and then print it out. Then I > could capture the text from the web page and paste into my route.txt > file. Then I just continue to draw the route as I'm doing now - read > the (lat,long) and draw the polyline. It also makes sense because I > really only need to get the polyline once instead of everytime someone > views the map.
This page allows you to generate directions using the api and output the polyline as xml: http://www.geocodezip.com/example_geo2.asp?addr1=(32.54281,-117.02993)&addr2=(42.00547,-122.61535)&geocode=1&geocode=2 Click the "get polyline xml" button once you have generated the route you want. (warning, the example above creates a polyline with over 3000 points in it, so it takes a really long time...) The xml is a format that my "Generic Map Browser" will display., http://www.geocodezip.com/GenericMapBrowser.asp?filename=I5Polyline.xml -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
