Shaun, Thanks for the input. I will give your alternative a try as that is where I imagine I'll have to go with it anyway. Obviously, in an ideal situation TRAVEL_MODE_BICYCLING would be a supported constant. At least the city I am working with is supported (Thanks also for posting that list). I will share some results after some trial and error with HTTPService.
EFries On May 16, 12:34 pm, Shaun <[email protected]> wrote: > Hi Efries, > > I imagine you've seen this already but if not, here's where I think it would > fit in the Flash maps > APIhttp://code.google.com/apis/maps/documentation/flash/services.html#Tr... > here's a list of all the supported cities for biking > directions:http://maps.google.com/support/bin/static.py?page=guide.cs&guide=2167... > > Alternative to waiting for this to be included in the flash geocoding > objects you can probably just use a HTTPService and with the url property > populated with a urlencoded version of the directions request, something > like:http://maps.googleapis.com/maps/api/directions/xml?origin=Chicago,IL&...Oklahoma+City,OK&sensor=false&mode=bicycling > > More on that API > here:http://code.google.com/apis/maps/documentation/directions/#XML > > also setting the resultFormat on the HTTPService object to e4x will setup > the results for easy parsing using the special e4x operators (dot dot, > parenthesis, etc.) Looking at the XML results in Chrome it's easy to expand > and collapse nodes to understand the structure you'll need to navigate with > e4x, generally speaking it looks like you'd do event.result..leg then for > each of those objects do someObj..step to get down to the fundamental > properties of each step that you'd want to display (duration distance, start > and end etc.). > > Shaun -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en.
