Thanks, that worked perfectly.  Now, I don't want to recreate the
entire routing interface that google has (dragging to set points,
street view, etc.)  I have created the route at maps.google.com, and
generated a link as:

http://maps.google.com/maps?f=d&source=s_d&saddr=Glen+Rose,+tx&daddr=US-180+to:W+TX-114%2FW+US-380+to:TX-59+to:US-75+S+to:US-69+to:TX-34+S+to:S+TX-34+to:32.194209,-96.778564+to:Meridian,+TX&hl=en&geocode=%3BFZgX9AEd4H0q-g%3BFQiN-gEdHoor-g%3BFfTQAQIdOGgu-g%3BFc4pAQIdpsc9-g%3BFcRd-gEdABFF-g%3BFbLW8gEdkghD-g%3BFUCC8AEdEKVB-g%3B%3B&mra=dme&mrcr=0&mrsp=8&sz=8&via=1,2,3,4,5,6,7,8&sll=32.657876,-97.163086&sspn=3.569957,4.943848&ie=UTF8&ll=32.824211,-96.723633&spn=3.563303,4.943848&z=8

I now want to parse that into my api app.  I'm guessing I probably
need to feed the geocode parameter into a GPolyline.fromEncoded, but
the querystring parameter apparently doesn't use the same encoding as
the api (yes, I remembered to unescape).  So is there any way to parse
this URL out so that I can use the previously created routes in my
google maps api app?

On Apr 4, 3:03 pm, Mike Williams <[email protected]> wrote:
> Listen for the "load" event on the directions request, then use
> .getPolyline() on it.
>
> var gdir = new GDirections(map);
>
> GEvent.addListener(gdir,"load",function() {
>   var poly = gdir.getPolyline();
>   ...
>
> });
>
> gdir.load(...);
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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