Hi, thanks for your response.
This doesn't seem to work.
If I put something like this in my code:
if(typeof(place.AddressDetails.Country.Locality.LocalityName) ==
"undefined") {
}
It just stops working whenever that is not the way to get the
LocalityName for a certain city.
I tried this, which doesn't work:
if(typeof(place.AddressDetails.Country.AdministrativeArea.Locality.LocalityName)
== "undefined") {
if(typeof(place.AddressDetails.Country.Locality.LocalityName) ==
"undefined") {
city =
place.AddressDetails.Country.AdministrativeArea.Locality.LocalityName;
} else {
city = place.AddressDetails.Country.Locality.LocalityName;
}
} else {
city =
place.AddressDetails.Country.AdministrativeArea.Locality.LocalityName;
}
Can anyone help me out?
Thanks!
On 11 mrt, 15:22, Rossko <[email protected]> wrote:
> > Does anyone have any idea on how to solve this problem?
>
> errm, wouldn't you just test to see if
> place.AddressDetails.Country.AdministrativeArea.Locality.LocalityName
> exists ; if it does, use it else - see if
> place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Local
> ity.LocalityName
> exists ; if it does, use it else - see if .....
--
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.