I'm facing the same problem, however if you check it in Google
Playground it works there correctly.

On 7 дек 2009, 17:06, stevem <[email protected]> wrote:
> Is it possible to use a directions object to get a city and state from
> theAddressDetails? 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.Localit­y.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