Hi
I am using Google Map API.
I want to findout zipcode from the lat and lang.
When i try to find zipcode using getLocations I am getting information
till AdministrativeArea tag.
if I write alert
(place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber);
, I am not getting zipcode in alert.
Below is my code. Can you please help me what is missing/wrong in my
code ?
latlng = new GLatLng( '37.423021','-122.083739');
geocoder.getLocations(latlng, parseAddress);
function parseAddress(response) {
if (response && response.Status.code == 200) {
try
{
place = response.Placemark[0];
alert
(place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber);
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---