Is it possible to use a directions object to get a city and state from
the
AddressDetails? I am customizing the directions and everything works
properly. I just can't figure out how to get the city and state names
from the object. This is what my code looks like:

dirObj.getGeocode(0).AddressDetails - this returns an object Object

Now if I try:
dirObj.getGeocode
(0).AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName

the error console returns this: dirObj.getGeocode
(0).AddressDetails.Country is undefined

Thanks for any help

--

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