SafetyScreen-ui/public/static/map/modules/route_v4yyam.js

1 line
56 KiB
JavaScript
Raw Normal View History

2024-11-06 09:03:49 +08:00
_jsload2&&_jsload2('route', 'var th={web:"http://api.map.baidu.com/direction?",android:"bdapp://map/direction?",ios:"baidumap://map/direction?"};function uh(a){this.city=a.city;this.aw=a.start;this.lv=a.end;this.wr=a.Ot;this.moreResultsUrl=a.url;this.taxiFare=a.w5||s;this.OU=a.W_||yd;this.SR=a.eX||yd}z.extend(uh.prototype,{nj:w("aw"),gh:w("lv"),hY:w("OU"),EX:w("SR"),Fx:function(){return this.wr.length},rf:function(a){if(this.wr[a])return this.wr[a]}});function vh(a){uh.call(this,a);this.policy=a.ie}z.ta(vh,uh,"DrivingRouteResult"); function wh(a){uh.call(this,a)}z.ta(wh,uh,"WalkingRouteResult");function xh(a){uh.call(this,a)}z.ta(xh,uh,"RidingRouteResult");function yh(a){uh.call(this,a);this.policy=a.ie;this.transitType=a.$O;this.intercityPolicy=a.Hm;this.transitTypePolicy=a.tn}z.ta(yh,uh,"TransitRouteResult");z.extend(yh.prototype,{qY:w("transitType")});var zh=yh.prototype;T(zh,{getTransitType:zh.qY});var Ah=uh.prototype;T(Ah,{getStart:Ah.nj,getEnd:Ah.gh,getStartStatus:Ah.hY,getEndStatus:Ah.EX,getNumPlans:Ah.Fx,getPlan:Ah.rf});function Bh(a){this.ek=a.Gy.slice(0);this.gg=a.oc||0;this.Rq=a.duration||0;this.AR=a.L2||[]}z.extend(Bh.prototype,{lj:function(a){if(this.ek[a])return this.ek[a]},bt:function(){return this.ek.length},pf:function(a){return a===t?this.gg:Ch(this.gg)},Xs:function(a){return a===t?this.Rq:Dh(this.Rq,"nav")},CX:w("AR")});var Eh=Bh.prototype;T(Eh,{getNumRoutes:Eh.bt,getRoute:Eh.lj,getDistance:Eh.pf,getDuration:Eh.Xs,getDragPois:Eh.CX});function Fh(a){Bh.call(this,a);this.Oi=a.VM;this.jl=a.description;this.Rq=a.duration||0;this.EJ=a.XO||[];this.ZU=a.total||[]}z.ta(Fh,Bh,"TransitRoutePlan"); z.extend(Fh.prototype,{YD:function(){return this.Oi.length},LL:function(a){if(this.Oi[a])return this.Oi[a]},jj:function(a){return a===t?ab.WN(this.jl):this.jl},Xs:function(a){return a===t?this.Rq:Dh(this.Rq,"bustime")},NX:function(){for(var a="",b=this.Oi.length-1,c=0;c<b;c++)this.Oi[c]&&this.Oi[c].title&&(a+=this.Oi[c].title+" \\u2192 ");return a+=this.Oi[b].title},k3:function(a){return a.substring(0,a.indexOf("("))},tY:function(){for(var a=0,b=this.ek.length,c=0;c<b;c++)a+=this.ek[c].pf(t);return Ch(a)}, NL:function(){return this.EJ.length},hE:function(a){return this.EJ[a]},gE:function(a){return this.ZU[a]}});var Gh=Fh.prototype;T(Gh,{getNumLines:Gh.YD,getLine:Gh.LL,getNumRoutes:Gh.bt,getRoute:Gh.lj,getDistance:Gh.pf,getDuration:Gh.Xs,getDescription:Gh.jj,getNumTotal:Gh.NL,getTotalType:Gh.hE,getTotal:Gh.gE});function Hh(a){this.Sr=a.yj&&a.yj.slice(0)||[];this.gg=a.oc||0;this.Rj=a.index||0;this.yr=a.ja.slice(0);this.oB=a.Ay||0;this.vU=a.Tt;0===this.gg&&2<this.yr.length&&(this.yr.length=2)}z.extend(Hh.prototype,{Gx:function(){return this.Sr.length},UL:function(a){if(this.Sr[a])return this.Sr[a]},pf:function(a){return a===t?this.gg:Ch(this.gg)},UD:w("Rj"),fp:w("$j"),Ue:w("yr"),dt:w("vU"),ZX:w("oB")});var Ih=Hh.prototype; T(Ih,{getNumSteps:Ih.Gx,getStep:Ih.UL,getDistance:Ih.pf,getIndex:Ih.UD,getPolyline:Ih.fp,getPath:Ih.Ue,getRouteType:Ih.dt});function Jh(a){this.title=a.title;this.uid=a.uid;this.type=a.type;this.Si=a.nu.slice(0);this.yr=a.ja.slice(0);this.gg=a.oc||0;this.FT=a.rN||0;this.Me=a.status||{}}z.extend(Jh.prototype,{UX:w("FT"),TD:function(){return this.Si[0]},SD:function(){return this.Si[1]},Ue:w("yr"),fp:w("$j"),pf:function(a){return a===t?this.gg:Ch(this.gg)},gp:w("title")});var Kh=Jh.prototype;T(Kh,{getNumViaStops:Kh.UX,getGetOnStop:Kh.TD,getGetOffStop:Kh.SD,getPath:Kh.Ue,getPolyline:Kh.fp,getDistance:Kh.pf,getTitle:Kh.gp});function Lh(a){this.Ph=a.point;this.Rj=a.index;this.jl=a.description;this.gg=a.oc||0;this.sU=a.h5||0;this.oB=a.Ay||0}z.extend(Lh.prototype,{ga:w("Ph"),UD:w("Rj"),jj:function(a){return a===t?ab.WN(this.jl):this.jl},pf:function(a){return a===t?this.gg:Ch(this.gg)},L3:w("sU"),ZX:w("oB")});var Mh=Lh.prototype;T(Mh,{getPosition:Mh.ga,getIndex:Mh.UD,getDescription:Mh.jj,getDistance:Mh.pf});z.extend(Qd.prototype,{va:function(){window.RouteAddrInst=this;var a={},b=this.uj,c=this.nf=1,e=[],f=[],g=["sel_n","sel_n1","sel_y","sel_x","sel_x1"],i=[-1,-1],k=[],f=[],b=b.content.result;this.qu=[b.originI