Advertisement
WIlliams72

Untitled

Jun 23rd, 2022
676
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. geocoder.getLocations(latlng, showAddress);
  2.  
  3. function showAddress(response){
  4.     if (response && response.Status.code == 200){
  5.         var place = reponse.Placemark[0]
  6.         var city  = place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName;
  7.         var state = place.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName;
  8.         var zip   = place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber;
  9.     }
  10. }
Advertisement
RAW Paste Data Copied
Advertisement