(function(a){google.load("maps","2",{other_params:"sensor=true"})})(this);(function(b){var a,e;geopage.ClientGoogleGeocoder=function(){};a=geopage.ClientGoogleGeocoder.prototype;a.geocodeString=function(h,g){var i,f=this;i=f._geocoder;if(!i){i=new google.maps.ClientGeocoder();f._geocoder=i}i.getLocations(h,function(j){c(j,g)});return null};e=[10000,10000,5000,2000,1000,1000,400,200,200,200,100];function d(g,h){var f;for(f in g){switch(f){case"CountryNameCode":h.country=g[f];break;case"AdministrativeAreaName":h.state=g[f];break;case"LocalityName":h.city=g[f];break;case"ThoroughfareName":h.streetAddress=g[f];break;case"PostalCodeNumber":h.postalCode=g[f];break;case"Country":case"AdministrativeArea":case"SubAdministrativeArea":case"Locality":case"DependentLocality":case"Thoroughfare":case"PostalCode":d(g[f],h)}}}function c(p,o){var l,h,j,k,n,g,m,f;if(p.Status.code==200){k=[];l=p.Placemark;for(h=0;h<l.length;++h){j=l[h];f=j.AddressDetails;g=f.Accuracy;if(g>=2){m=j.Point.coordinates;hash={address:j.address,lat:m[1],lng:m[0],radius:e[g]||10000,accurateToAddressFlag:g==8};d(f,hash);k.push(hash)}}n=o.onSuccess;if(n){n(k,{resultCode:200})}}else{n=o.onError;if(n){n({resultCode:p.Status.code})}}}})(this);