Displaying 1 result from an estimated 1 matches for "administrativearea".
2010 May 21
0
r83 committed - Making the geocoder pass JSLint
...ction(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 !=
null) {
-
if(place.A...