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.

2 lines
56 KiB

3 months ago
/**/_jsload2&&_jsload2('route', 'var Jh={web:"http://api.map.baidu.com/direction?",android:"bdapp://map/direction?",ios:"baidumap://map/direction?"};function Kh(a){this.city=a.city;this.ov=a.start;this.zu=a.end;this.Nq=a.Zs;this.moreResultsUrl=a.url;this.taxiFare=a.S4||s;this.oT=a.a_||Td;this.tQ=a.PV||Td}z.extend(Kh.prototype,{gj:x("ov"),Zg:x("zu"),XW:x("oT"),qW:x("tQ"),Kw:function(){return this.Nq.length},lf:function(a){if(this.Nq[a])return this.Nq[a]}});function Lh(a){Kh.call(this,a);this.policy=a.ge}z.wa(Lh,Kh,"DrivingRouteResult"); function Mh(a){Kh.call(this,a)}z.wa(Mh,Kh,"WalkingRouteResult");function Nh(a){Kh.call(this,a)}z.wa(Nh,Kh,"RidingRouteResult");function Oh(a){Kh.call(this,a);this.policy=a.ge;this.transitType=a.LN;this.intercityPolicy=a.jm;this.transitTypePolicy=a.Km}z.wa(Oh,Kh,"TransitRouteResult");z.extend(Oh.prototype,{eX:x("transitType")});var Ph=Oh.prototype;U(Ph,{getTransitType:Ph.eX});var Qh=Kh.prototype;U(Qh,{getStart:Qh.gj,getEnd:Qh.Zg,getStartStatus:Qh.XW,getEndStatus:Qh.qW,getNumPlans:Qh.Kw,getPlan:Qh.lf});function Rh(a){this.Sj=a.Lx.slice(0);this.Zf=a.nc||0;this.kq=a.duration||0;this.fQ=a.R1||[]}z.extend(Rh.prototype,{ej:function(a){if(this.Sj[a])return this.Sj[a]},ns:function(){return this.Sj.length},jf:function(a){return a===t?this.Zf:Sh(this.Zf)},is:function(a){return a===t?this.kq:Th(this.kq,"nav")},oW:x("fQ")});var Uh=Rh.prototype;U(Uh,{getNumRoutes:Uh.ns,getRoute:Uh.ej,getDistance:Uh.jf,getDuration:Uh.is,getDragPois:Uh.oW});function Vh(a){Rh.call(this,a);this.Hi=a.GL;this.Vk=a.description;this.kq=a.duration||0;this.tI=a.IN||[];this.zT=a.total||[]}z.wa(Vh,Rh,"TransitRoutePlan"); z.extend(Vh.prototype,{YC:function(){return this.Hi.length},uK:function(a){if(this.Hi[a])return this.Hi[a]},$i:function(a){return a===t?db.LM(this.Vk):this.Vk},is:function(a){return a===t?this.kq:Th(this.kq,"bustime")},BW:function(){for(var a="",b=this.Hi.length-1,c=0;c<b;c++)this.Hi[c]&&this.Hi[c].title&&(a+=this.Hi[c].title+" \\u2192 ");return a+=this.Hi[b].title},q2:function(a){return a.substring(0,a.indexOf("("))},iX:function(){for(var a=0,b=this.Sj.length,c=0;c<b;c++)a+=this.Sj[c].jf(t);return Sh(a)}, wK:function(){return this.tI.length},hD:function(a){return this.tI[a]},gD:function(a){return this.zT[a]}});var Wh=Vh.prototype;U(Wh,{getNumLines:Wh.YC,getLine:Wh.uK,getNumRoutes:Wh.ns,getRoute:Wh.ej,getDistance:Wh.jf,getDuration:Wh.is,getDescription:Wh.$i,getNumTotal:Wh.wK,getTotalType:Wh.hD,getTotal:Wh.gD});function Xh(a){this.kr=a.pj&&a.pj.slice(0)||[];this.Zf=a.nc||0;this.Gj=a.index||0;this.Pq=a.na.slice(0);this.sA=a.Fx||0;this.WS=a.ft;0===this.Zf&&2<this.Pq.length&&(this.Pq.length=2)}z.extend(Xh.prototype,{Lw:function(){return this.kr.length},DK:function(a){if(this.kr[a])return this.kr[a]},jf:function(a){return a===t?this.Zf:Sh(this.Zf)},TC:x("Gj"),Ho:x("Oj"),Re:x("Pq"),qs:x("WS"),OW:x("sA")});var Yh=Xh.prototype; U(Yh,{getNumSteps:Yh.Lw,getStep:Yh.DK,getDistance:Yh.jf,getIndex:Yh.TC,getPolyline:Yh.Ho,getPath:Yh.Re,getRouteType:Yh.qs});function Zh(a){this.title=a.title;this.uid=a.uid;this.type=a.type;this.Li=a.Ft.slice(0);this.Pq=a.na.slice(0);this.Zf=a.nc||0;this.gS=a.bM||0;this.Ke=a.status||{}}z.extend(Zh.prototype,{IW:x("gS"),SC:function(){return this.Li[0]},RC:function(){return this.Li[1]},Re:x("Pq"),Ho:x("Oj"),jf:function(a){return a===t?this.Zf:Sh(this.Zf)},Io:x("title")});var $h=Zh.prototype;U($h,{getNumViaStops:$h.IW,getGetOnStop:$h.SC,getGetOffStop:$h.RC,getPath:$h.Re,getPolyline:$h.Ho,getDistance:$h.jf,getTitle:$h.Io});function ai(a){this.Gh=a.point;this.Gj=a.index;this.Vk=a.description;this.Zf=a.nc||0;this.TS=a.A4||0;this.sA=a.Fx||0}z.extend(ai.prototype,{ja:x("Gh"),TC:x("Gj"),$i:function(a){return a===t?db.LM(this.Vk):this.Vk},jf:function(a){return a===t?this.Zf:Sh(this.Zf)},R2:x("TS"),OW:x("sA")});var bi=ai.prototype;U(bi,{getPosition:bi.ja,getIndex:bi.TC,getDescription:bi.$i,getDistance:bi.jf});z.extend(ke.prototype,{za:function(){window.RouteAddrInst=this;var a={},b=this.mj,c=this.gf=1,e=[],f=[],g=["sel_n","sel_n1","sel_y","sel_x","sel_x1"],i=[-1,-1],k=[],f=[],b=b.content.result;this.Ht=[b.ori