Hi all,
I have kind of a strange problem. Has anyone else notice this? I
have an application (http://www.routeloops.com) that generates routes
and cue sheets, and at one point I attempt to write out the final
address of the route. I'm looking at
directionsDisplay.directions.routes[0].legs[0].end_address
The result keeps coming back as "undefined".
Just to check, at one point in the code I have these two lines:
alert("start " +
directionsDisplay.directions.routes[0].legs[0].start_address);
alert("end " +
directionsDisplay.directions.routes[0].legs[0].end_address);
The first one returns an address, and the second one returns
"undefined".
I also looked in Firebug. If I drill down on this object I see
distance, duration, end_location, start_address, start_location,
steps, and via_waypoint. But no end_address.
Did something happen to end_address? Isn't it supposed to be there?
Leigh
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.