You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingAnQiYeWeb/public/modules/route_rjta0o.js

1 line
59 KiB

1 year ago
/**/_jsload2 && _jsload2('route', 'var li={web:"http://api.map.baidu.com/direction?",android:"bdapp://map/direction?",ios:"baidumap://map/direction?"};function mi(a){this.city=a.city;this.sw=a.start;this.Bv=a.end;this.Vr=a.eu;this.moreResultsUrl=a.url;this.taxiFare=a.bP||p;this.fV=a.VO||ge;this.kS=a.DL||ge}x.extend(mi.prototype,{vj:v("sw"),lh:v("Bv"),uY:v("fV"),RX:v("kS"),Wx:function(){return this.Vr.length},rf:function(a){if(this.Vr[a])return this.Vr[a]}});function ni(a){mi.call(this,a);this.policy=a.$c}x.ua(ni,mi,"DrivingRouteResult"); function oi(a){mi.call(this,a)}x.ua(oi,mi,"WalkingRouteResult");function pi(a){mi.call(this,a);this.policy=a.$c}x.ua(pi,mi,"TransitRouteResult");var qi=mi.prototype;U(qi,{getStart:qi.vj,getEnd:qi.lh,getStartStatus:qi.uY,getEndStatus:qi.RX,getNumPlans:qi.Wx,getPlan:qi.rf});function ri(a){this.lk=a.PF.slice(0);this.dg=a.od||0;this.pr=a.duration||0;this.UR=a.gX||[]}x.extend(ri.prototype,{nh:function(a){if(this.lk[a])return this.lk[a]},zt:function(){return this.lk.length},Ue:function(a){return a===q?this.dg:si(this.dg)},ut:function(a){return a===q?this.pr:ti(this.pr,"nav")},PX:v("UR")});var ui=ri.prototype;U(ui,{getNumRoutes:ui.zt,getRoute:ui.nh,getDistance:ui.Ue,getDuration:ui.ut,getDragPois:ui.PX});function vi(a){ri.call(this,a);this.Xi=a.rZ;this.sl=a.description;this.pr=a.duration||0}x.ua(vi,ri,"TransitRoutePlan"); x.extend(vi.prototype,{Vx:function(){return this.Xi.length},rE:function(a){if(this.Xi[a])return this.Xi[a]},kh:function(a){return a===q?Q.mO(this.sl):this.sl},ut:function(a){return a===q?this.pr:ti(this.pr,"bustime")},aY:function(){for(var a="",b=this.Xi.length-1,c=0;c<b;c++)this.Xi[c]&&this.Xi[c].title&&(a+=this.TL(this.Xi[c].title)+" \\u2192 ");return a+=this.TL(this.Xi[b].title)},TL:function(a){return a.substring(0,a.indexOf("("))},GY:function(){for(var a=0,b=this.lk.length,c=0;c<b;c++)a+=this.lk[c].Ue(q); return si(a)}});var wi=vi.prototype;U(wi,{getNumLines:wi.Vx,getLine:wi.rE,getNumRoutes:wi.zt,getRoute:wi.nh,getDistance:wi.Ue,getDuration:wi.ut,getDescription:wi.kh});function xi(a){this.qs=a.Gj&&a.Gj.slice(0)||[];this.dg=a.od||0;this.$j=a.index||0;this.Xr=a.ha.slice(0);this.IB=a.yF||0;this.MU=a.Yy;0===this.dg&&2<this.Xr.length&&(this.Xr.length=2)}x.extend(xi.prototype,{Xx:function(){return this.qs.length},kM:function(a){if(this.qs[a])return this.qs[a]},Ue:function(a){return a===q?this.dg:si(this.dg)},pE:v("$j"),yp:v("Zi"),ve:v("Xr"),zp:v("MU"),lY:v("IB")});var yi=xi.prototype; U(yi,{getNumSteps:yi.Xx,getStep:yi.kM,getDistance:yi.Ue,getIndex:yi.pE,getPolyline:yi.yp,getPath:yi.ve,getRouteType:yi.zp});function zi(a){this.title=a.title;this.uid=a.uid;this.type=a.type;this.aj=a.h0.slice(0);this.Xr=a.ha.slice(0);this.dg=a.od||0;this.WT=a.JZ||0;this.Dd=a.status||{}}x.extend(zi.prototype,{gY:v("WT"),oE:function(){return this.aj[0]},nE:function(){return this.aj[1]},ve:v("Xr"),yp:v("Zi"),Ue:function(a){return a===q?this.dg:si(this.dg)},Ap:v("title")});var Ai=zi.prototype;U(Ai,{getNumViaStops:Ai.gY,getGetOnStop:Ai.oE,getGetOffStop:Ai.nE,getPath:Ai.ve,getPolyline:Ai.yp,getDistance:Ai.Ue,getTitle:Ai.Ap});function Bi(a){this.Yh=a.point;this.$j=a.index;this.sl=a.description;this.dg=a.od||0;this.JU=a.k5||0;this.IB=a.yF||0}x.extend(Bi.prototype,{ia:v("Yh"),pE:v("$j"),kh:function(a){return a===q?Q.mO(this.sl):this.sl},Ue:function(a){return a===q?this.dg:si(this.dg)},X3:v("JU"),lY:v("IB")});var Ci=Bi.prototype;U(Ci,{getPosition:Ci.ia,getIndex:Ci.pE,getDescription:Ci.kh,getDistance:Ci.Ue});x.extend(Ae.prototype,{va:function(a){window.RouteAddrInst=this;var b={},a=this.cc=this.VZ(this.cc,a);if(a.result){var c=this.fe=a.content.tpList.length+1,d=a.content,e=[],f=[],g=["sel_n","sel_n1","sel_y","sel_x","sel_x1"],i=[-1,-1],j=[],f=[];this.Hu=[a.current_city.code,a.current_city.code];tempCode=a.current_city.code;for(var l=0;l<c+1;l++){var m=p;e.push([]);j.push("");f.push("");0==l?a.result.start_city&&(this.Hu[0]=a.result.start_city.code||a.result.start_city[0].code,tempCode=this.Hu[0]):a.result.end_city&& (this.Hu[l]=a.result.end_city.code||a.result.end_city[l-1].code,tempCode=this.Hu[l]);m=this.q