geocoder.js
1.66 KB
google.maps.__gjsload__('geocoder', 'function nE(a,b){Fr(a,Gr);Fr(a,Hr);b(a)};function oE(a){this.l=a||[]}var pE,qE,rE;function sE(a){if(!pE){var b=[];pE={ba:-1,Y:b};b[4]={type:"s",label:1};b[5]={type:"m",label:1,W:Nk()};b[6]={type:"m",label:1,W:Qk()};b[7]={type:"s",label:1};if(!qE){var c=[];qE={ba:-1,Y:c};c[1]={type:"s",label:1};c[2]={type:"s",label:1}}b[8]={type:"m",label:3,W:qE};b[9]={type:"s",label:1};b[10]={type:"b",label:1};rE||(c=[],rE={ba:-1,Y:c},c[1]={type:"s",label:1},c[2]={type:"s",label:1});b[100]={type:"m",label:1,W:rE}}return bd(a.l,pE)}\noE[D].getQuery=function(){var a=this.l[3];return a!=j?a:""};oE[D].setQuery=function(a){this.l[3]=a};var tE;function uE(a,b,c){tE||(tE=new Ir(11,1));if(Jr(tE,!a.address?2:1)){var d=vE(a),e=new kh,a=io(Co,function(a){mh(e,"gsc");S(Ge,function(a){a.ab.uf("geocoder",e,{})});nE(a,function(a){c(a.results,a[Bp])})}),d=sE(d);b(d,a,function(){c(j,Fc)})}else c(j,Mc)}\nfunction vE(a){var b=!!Ao[1];if(!ge({address:pe,bounds:je(fe),location:je(Q),region:pe,latLng:je(Q),country:pe,partialmatch:qe,language:pe})(a))return j;var c=new oE,d=a.address;d&&c.setQuery(d);if(d=a[$j]||a.latLng){var e;c.l[4]=c.l[4]||[];e=new ed(c.l[4]);Kk(e,d.lat());Ik(e,d.lng())}var f=a.bounds;if(f){c.l[5]=c.l[5]||[];e=new fd(c.l[5]);var d=f[ac](),f=f[ob](),g=Gk(e);e=Ek(e);Kk(g,d.lat());Ik(g,d.lng());Kk(e,f.lat());Ik(e,f.lng())}(a=a[xp]||a.country||Eg())&&(c.l[6]=a);(a=Dg(Fg(mf)))&&(c.l[8]=\na);b&&(c.l[9]=b);return c}function wE(a){return function(b,c){a[vc](this,arguments);dr(function(a){a.ol(b,c)})}};function xE(){}xE[D].geocode=function(a,b){uE(a,P(j,lo,n,cg,so+"/maps/api/js/GeocodeService.Search",bg),wE(b))};var yE=new xE;ff[we]=function(a){eval(a)};jf(we,yE);\n')