search for: addressdetails

Displaying 1 result from an estimated 1 matches for "addressdetails".

2010 May 21
0
r83 committed - Making the geocoder pass JSLint
...ype.geocode_error = function(response) { alert("Sorry, we were unable to geocode that address"); -} +}; /** * Default handler for geocode request completion @@ -107,14 +107,14 @@ return_location.country = ""; var place = response.Placemark[0]; - if(place.AddressDetails.Country.AdministrativeArea != null) { + if(place.AddressDetails.Country.AdministrativeArea !== null) { return_location.region = place.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName; - if(place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea !=...