根据起终点坐标规划骑行出行路线和耗时,支持普通自行车和电动自行车出行方式
https://api.map.baidu.com/directionlite/v1/riding?origin=40.01116,116.339303&destination=39.936404,116.452562&ak=您的ak
//get请求
字段名称 | 字段含义 | 字段类型 | 必填 | 备注 |
---|---|---|---|---|
ak | 开发者密钥, | string | 是 | |
origin | 起点 | double,double | 是 | 起点经纬度,格式为:纬度,经度;小数点后不超过6位,40.056878,116.30815 |
destination | 终点 | double,double | 是 | 终点经纬度,格式为:纬度,经度;小数点后不超过6位,40.056878,116.30815 |
origin_uid | 起点uid,poi 的 uid(在已知起点poi 的 uid 情况下,请尽量填写uid,将提升路线规划的准确性) | string | 否 | |
destination_uid | 终点uid,poi 的 uid(在已知终点poi 的 uid 情况下,请尽量填写uid,将提升路线规划的准确性) | string | 否 | |
riding_type | 骑行类型 | string | 否 | 默认0 |
coord_type | 输入坐标类型 | string | 否 | 默认bd09ll |
ret_coordtype | 输出坐标类型 | string | 否 | 返回值的坐标类型,默认为百度经纬度坐标:bd09ll |
sn | 用户的权限签名,当ak设置为sn校验时,该参数必填sn计算方法 | string | 否 | |
timestamp | 时间戳,与sn配合使用 | string | sn存在时必填 | |
steps_info | 是否下发step详情 | int | 否 |
字段名称 | 字段含义 | 备注 | |||
---|---|---|---|---|---|
status | 状态码 | 0:成功 1:服务内部错误 2:参数无效 7:无返回结果 | |||
message | 状态码对应的信息 | ||||
result | 返回的结果 | ||||
origin | |||||
lng | 起点经度 | ||||
lat | 起点纬度 | ||||
destination | |||||
lng | 终点经度 | ||||
lat | 终点纬度 | ||||
routes | 返回的方案集 | ||||
distance | 方案距离,单位:米 | ||||
duration | 线路耗时,单位:秒 | ||||
steps | 路线分段 | ||||
direction | 进入道路的角度 | 枚举值,返回值在0-11之间的一个值,共12个枚举值,以30度递进,即每个值代表角度范围为30度;其中返回"0"代表345度到15度,以此类推,返回"11"代表315度到345度";分别代表的含义是:0-[345°-15°];1-[15°-45°];2-[45°-75°];3-[75°-105°];4-[105°-135°];5-[135°-165°];6-[165°-195°];7-[195°-225°];8-[225°-255°];9-[255°-285°];10-[285°-315°];11-[315°-345°] | |||
turn_type | 行驶转向方向 | 如“直行”、“左前方转弯” | |||
distance | 路段距离 | 单位:米 | |||
duration | 路段耗时 | 单位:秒 | |||
name | 道路名称 | 如:“信息路” 若道路未明或百度地图未采集到该道路名称,则返回“无名路“ | |||
instruction | 路段描述 | ||||
start_location | |||||
lng | 分段起点经度 | ||||
lat | 分段起点纬度 | ||||
end_location | |||||
lng | 分段终点经度 | ||||
lat | 分段终点纬度 | ||||
path | 分段坐标 |
输入ak可生成包含ip/sn校验方式的代码
<?php// 此处填写你在控制台-应用管理-创建应用后获取的ak$ak ='您的ak';// 发起一个http get请求,并返回请求的结果// $url字段为请求的地址// $param字段为请求的参数functionrequest_get($url ='', $param =array()){if(empty($url)||empty($param)){returnfalse;}$geturl = $url ."?".http_build_query($param);$curl =curl_init();// 初始化curlcurl_setopt($curl,curlopt_ssl_verifypeer,false);// 跳过证书检查curl_setopt($curl,curlopt_ssl_verifyhost,2);// 从证书中检查ssl加密算法是否存在curl_setopt($curl,curlopt_url, $geturl);// 抓取指定网页curl_setopt($curl,curlopt_timeout,1000);// 设置超时时间1秒curl_setopt($curl,curlopt_returntransfer,1);// curl不直接输出到屏幕curl_setopt($curl,curlopt_header,0);// 设置header$data =curl_exec($curl);// 运行curlif(!$data){print("an error occured in function request_get(): ".curl_error($curl)."\n");}curl_close($curl);return $data;}// 请求地址$url ='https://api.map.baidu.com/directionlite/v1/riding';// 构造请求参数$param['origin']='40.01116,116.339303';$param['destination']='39.936404,116.452562';$param['ak']= $ak;$res =request_get($url, $param);// 将原始返回的结果打印出来print("请求的原始返回结果为:\n");print($res ."\n");?>
{"status":0,"message":"ok","result":{"origin":{"lng":116.33929505188,"lat":40.011157363344},"destination":{"lng":116.45255341058,"lat":39.936401378723},"routes":[{"distance":17279,"duration":5969,"steps":[{"distance":200,"duration":60,"direction":6,"turn_type":"左转","name":"","instruction":"骑行200米","restrictions_info":"","path":"116.33996581129,40.011176482433;116.34000634056,40.010546386374;116.34001662242,40.010166414225;116.34006725922,40.009366288399","start_location":{"lng":"116.33996581129","lat":"40.011176482433"},"end_location":{"lng":"116.34006725922","lat":"40.009366288399"}},{"distance":299,"duration":90,"direction":3,"turn_type":"右转","name":"","instruction":"骑行300米","restrictions_info":"","path":"116.34006725922,40.009366288399;116.34006725922,40.009366288399;116.34051817356,40.009373607054;116.34073860075,40.009372364109;116.34090892694,40.009361436097;116.34188059607,40.009326642423;116.34238134243,40.009304512481;116.34249149949,40.009294076399;116.34333250812,40.009311098645;116.34351269733,40.009310547848;116.34361279144,40.009320252832","start_location":{"lng":"116.34006725922","lat":"40.009366288399"},"end_location":{"lng":"116.34361279144","lat":"40.009320252832"}},{"distance":353,"duration":106,"direction":6,"turn_type":"","name":"荷清路","instruction":"荷清路,骑行350米","restrictions_info":"","path":"116.34361279144,40.009320252832;116.34361279144,40.009320252832;116.34363312949,40.008820305313;116.34365349976,40.008250369354;116.34367390861,40.007590447161;116.3436942052,40.007100486641;116.34369423292,40.007050496216;116.34374476108,40.006150523117","start_location":{"lng":"116.34361279144","lat":"40.009320252832"},"end_location":{"lng":"116.34374476108","lat":"40.006150523117"}},{"distance":2797,"duration":847,"direction":4,"turn_type":"右转","name":"清华东路","instruction":"清华东路,骑行2.8公里","restrictions_info":"","path":"116.34374476108,40.006150523117;116.34374476108,40.006150523117;116.34383489109,40.006060294678;116.34394499009,40.006060006424;116.34414515999,40.006059511698;116.34450541759,40.006088711557;116.34456545384,40.006098589288;116.3446354955,40.006108451262;116.34479558101,40.006138152013;116.34500568013,40.006177796119;116.34510572174,40.006197641242;116.34512573173,40.006197612124;116.34522577455,40.006207470472;116.3458759961,40.006226790498;116.34590599827,40.006236767237;116.34618604744,40.006246606549;116.34653607392,40.006256511597;116.3466560755,40.006256506639;116.34691606267,40.006256543164;116.34724601437,40.00625668266;116.34771586818,40.00628705573;116.34900511641,40.006329170601;116.34953464799,40.006350497446;116.35008407093,40.006362157204;116.35050356308,40.006373616053;116.35054351224,40.006373763799;116.35089304022,40.006385118637;116.35161194609,40.006408264766;116.35178166612,40.006409078578;116.35183158204,40.006409323011;116.351941389,40.006419867057;116.35196135445,40.006419967502;116.35199130238,40.006420118858;116.35204121497,40.006420372958;116.35215101989,40.00642094006;116.35228077916,40.006431622764;116.35238059441,40.006432159847;116.35247042544,40.006432651037;116.35257022947,40.006443203655;116.35266005514,40.006443710437;116.3527798135,40.006454395788;116.35283969363,40.006454744277;116.35309915597,40.006466290256;116.35428643729,40.006504143035;116.35496469427,40.006519193818;116.35536359695,40.006542350024;116.35556303054,40.006553979728;116.35623106033,40.006569691425;116.35632078116,40.006580485913;116.35710826747,40.006607760864;116.35749696162,40.006621540896;116.35754679182,40.00662203465;116.35760658716,40.00662262981;116.35837386249,40.006650518529;116.35867276174,40.006653719616;116.35878234679,40.006664908968;116.35891185858,40.006666328744;116.35896166427,40.006676876416;116.35909116991,40.006678314085;116.35924058866,40.006689987045;116.35944977259,40.006692360304;116.35961909829,40.00670430387;116.35969878093,40.006705226804;116.35973862164,40.00670569005;116.35989798042,40.006707554852;116.36055525684,40.0067354408;116.36092368372,40.00674999841;116.36162061188,40.006788879784;116.36255630859,40.006841325179;116.36293451635,40.006856520186;116.3637206919,40.006887608207;116.36400925404,40.006901772563;116.36463607344,40.006930988099;116.36589943305,40.00699023139;116.36603868567,40.006992405223;116.3665160869,40.007019928584;116.36674482782,40.007033573045;116.36719234501,40.007050776941;116.36758016704,40.007067094186;116.36803756455,40.007094628445;116.36818671291,40.007097105637;116.3682861434,40.007098762194;116.36846511481,40.007101754104;116.36995635392,40.00717714828;116.37029433203,40.007193011697;116.37101994565,40.0072357172;116.37122867903,40.007239401666;116.37131813496,40.007240984306;116.37142747453,40.007232923392;116.37146723211,40.007233628587;116.37161632179,40.007236276634;116.37170577468,40.007237868114;116.37189461197,40.007251232353;116.37253068264,40.007282626543;116.37277918287,40.007217115116;116.37327608867,40.007236098161;116.37354440932,40.007250965457;116.3736537263,40.007252952383;116.37389223402,40.007257293454;116.37415061444,40.007262004852;116.37461766889,40.007290537675;116.37469716863,40.007291992969;116.3747964875,40.007393793831;116.37500517277,40.007397618476;116.37580013832,40.007442209692;116.37590944757,40.007444219173;116.37626718056,40.007460795993","start_location":{"lng":"116.34374476108","lat":"40.006150523117"},"end_location":{"lng":"116.37626718056","lat":"40.007460795993"}},{"distance":1528,"duration":463,"direction":5,"turn_type":"左转","name":"g6辅路","instruction":"g6辅路,骑行1.5公里","restrictions_info":"","path":"116.37626718056,40.007460795993;116.37626718056,40.007460795993;116.37664505103,40.006997830634;116.37666494152,40.006968201758;116.37692347788,40.006653012185;116.37703285982,40.006515047359;116.37721185743,40.006268379938;116.37741072713,40.006022075629;116.37760960433,40.005755771884;116.37782835835,40.005479831163;116.37836530864,40.004759781441;116.37863378419,40.0043847459;116.37957834418,40.003192111054;116.379608169,40.00316265599;116.37967776383,40.003083928127;116.37975730374,40.002985381951;116.37989649657,40.002817922638;116.37995615299,40.002739011181;116.38007546221,40.002591184936;116.38130833439,40.000993465256;116.3814872998,40.000756667852;116.3815469549,40.000677733396;116.38157678245,40.000638265788;116.38165632104,40.000539683734;116.38167620684,40.000510038328;116.38170603212,40.00048056884;116.38175574325,40.000421453239;116.38176568726,40.00040163064;116.38182534457,40.000312692133;116.38191482722,40.000194281243;116.38200430577,40.000095866524;116.38207390083,40.000017098029;116.38222303524,39.999839732585;116.38230257456,39.999741135113;116.38239205963,39.999612711638;116.38253125473,39.999435157419;116.38260085575,39.999326379055;116.38271022495,39.999178294117;116.38273011071,39.999148642017;116.3827698822,39.999089337401;116.38278976641,39.999069684363;116.38283948154,39.998990552724;116.38288919515,39.998921419697;116.3829886252,39.998763151953;116.38300851227,39.998723498337;116.3830482876,39.998634191081;116.38321732079,39.998337124679;116.38324715195,39.998267641872;116.38329686952,39.998158502763;116.38337641634,39.997989877805;116.38342613398,39.997870736274;116.38349573974,39.997681936879;116.3835752878,39.997463306218;116.38364489372,39.997224502796;116.3836846691,39.997055185868;116.38372444436,39.99685586825;116.38373439323,39.996636040392;116.3837244556,39.996455871897;116.38365486728,39.996164683283;116.383585276,39.995953491774;116.38351568423,39.995812298229;116.3833367348,39.995539220824;116.38324726061,39.995417677727","start_location":{"lng":"116.37626718056","lat":"40.007460795993"},"end_location":{"lng":"116.38324726061","lat":"39.995417677727"}},{"distance":77,"duration":23,"direction":5,"turn_type":"左转","name":"g6辅路","instruction":"g6辅路,骑行80米","restrictions_info":"","path":"116.38324726061,39.995417677727;116.38324726061,39.995417677727;116.38325719947,39.99535784836;116.38325719868,39.995337848079;116.38329696069,39.99527853259;116.38335660177,39.995149557543;116.38343612441,39.995010922469;116.38346594429,39.994941433295;116.38350570604,39.994882114537;116.38356534799,39.994783135007","start_location":{"lng":"116.38324726061","lat":"39.995417677727"},"end_location":{"lng":"116.38356534799","lat":"39.994783135007"}},{"distance":1402,"duration":424,"direction":3,"turn_type":"过马路左转","name":"g6辅路","instruction":"g6辅路,骑行1.4公里","restrictions_info":"","path":"116.38356534799,39.994783135007;116.38356534799,39.994783135007;116.38363493785,39.99477432645;116.38373435324,39.994766025633;116.38384371095,39.994747890409;116.38402266259,39.994710932236;116.38409225565,39.994692111838;116.38419167449,39.994653793506;116.38425132513,39.994614800254;116.38431097536,39.994565805328;116.38438056759,39.994506976072;116.38445015498,39.994388143011;116.38449985886,39.994288974746;116.3845097967,39.994239139939;116.38452967511,39.994169471143;116.38457937301,39.994020299045;116.38459925194,39.993960629819;116.38462906775,39.993851124746;116.3846787626,39.993691949385;116.38470857589,39.993572442375;116.38475826899,39.993413264625;116.38477814366,39.993333592316;116.38482783222,39.993154411416;116.38488746103,39.992965393725;116.38490733755,39.992905720888;116.38495701955,39.992706534758;116.38502658099,39.992477674557;116.38505639215,39.992378162042;116.38509614244,39.992258812092;116.3851060759,39.992208973064;116.38514581918,39.992059619752;116.38516568727,39.991969941586;116.38518555937,39.991900264622;116.38519549645,39.991870426426;116.3852054357,39.991850588934;116.3852253075,39.991780911487;116.38525511598,39.991681395236;116.38526505052,39.99164155583;116.3852650459,39.991621554228;116.38527498267,39.991591715546;116.38530479517,39.991512199975;116.38531472945,39.991472360238;116.38533460022,39.991402681394;116.38538428263,39.991253485337;116.38541408404,39.991133964345;116.38546376502,39.990984765865;116.38554325578,39.990756046187;116.38555318889,39.990716204888;116.3856028763,39.990597005222;116.38562274487,39.990527322801;116.38587109504,39.989681273357;116.38591082733,39.989541901246;116.38595056234,39.989412529261;116.38622868005,39.988476892913;116.38625846511,39.988347353455;116.38630813621,39.988208130101;116.3863279908,39.988118435607;116.38637764448,39.987939204393;116.38638757757,39.987909358803;116.38645709572,39.987670433535;116.3867748441,39.986525296128;116.38682447849,39.986326046103;116.38685427322,39.986236500288;116.38689398926,39.986097101551;116.38692377338,39.985987550912;116.38696349342,39.985858151997;116.38699328186,39.985758601675;116.38706276789,39.98548964195;116.38710248072,39.985350237406;116.38716204889,39.985141128519;116.38718189923,39.985061423131;116.38718188836,39.985041419381;116.38721167984,39.984951866379;116.38723152418,39.984862158352;116.38726130967,39.984762602427;116.38727120643,39.984672739397;116.38728113101,39.9846328859;116.38734068887,39.984413767288;116.38736052585,39.984314055231;116.38738037407,39.984234346815;116.38740021626,39.984144636092;116.3874299996,39.984045076487;116.38748948783,39.983715928662;116.38750931639,39.983606211959;116.38752915061,39.983506496976;116.38756865623,39.983047010195;116.38757852819,39.982927136822","start_location":{"lng":"116.38356534799","lat":"39.994783135007"},"end_location":{"lng":"116.38757852819","lat":"39.982927136822"}},{"distance":1185,"duration":359,"direction":3,"turn_type":"直行","name":"北土城西路","instruction":"北土城西路,骑行1.2公里","restrictions_info":"","path":"116.38757852819,39.982927136822;116.38757852819,39.982927136822;116.38771779594,39.982929268786;116.38774763949,39.982929724282;116.3878869116,39.98293184356;116.38805603262,39.982934402746;116.38837439285,39.982939177034;116.38846393519,39.982940509537;116.38861317592,39.982942720223;116.38872262191,39.982944333261;116.38930969791,39.982962867404;116.39047410711,39.982989166506;116.3908125426,39.983003742482;116.39087226808,39.983004541813;116.39109126847,39.983007452412;116.39126050361,39.983009679505;116.39238559791,39.983033984466;116.39285365189,39.983049671538;116.39315243443,39.98305321663;116.39381980426,39.983070896026;116.39405888806,39.983073563989;116.39421828565,39.983075318225;116.3944573947,39.983077912663;116.39451717436,39.983078554309;116.39480612925,39.983091618215;116.39526450815,39.983096338974;116.39638081196,39.983117123394;116.3971385083,39.983133852776;116.39734789949,39.983135625836;116.39923302153,39.983169873831;116.39981173774,39.983173613197;116.40044046751,39.983187333679;116.40073990948,39.983198979634;116.40142871924,39.98320244705","start_location":{"lng":"116.38757852819","lat":"39.982927136822"},"end_location":{"lng":"116.40142871924","lat":"39.98320244705"}},{"distance":2518,"duration":763,"direction":3,"turn_type":"右转","name":"北土城东路","instruction":"北土城东路,骑行2.5公里","restrictions_info":"","path":"116.40142871924,39.98320244705;116.40142871924,39.98320244705;116.40172825509,39.983213819681;116.40201782765,39.983215065019;116.40269693741,39.983227679384;116.40354602668,39.983230333556;116.40363595022,39.983240576787;116.40381579271,39.983241035908;116.40388573431,39.983241206158;116.40415552402,39.983241819255;116.405334891,39.983253686216;116.40685474737,39.983264129291;116.4070747886,39.983264009909;116.40783505334,39.983263241357;116.40816523352,39.98327273802;116.40828530562,39.983272528459;116.40865555756,39.983271795986;116.40967648943,39.98327910596;116.41079790007,39.983285022124;116.41084797216,39.983284812337;116.41155908826,39.983291584873;116.41176944721,39.983290540291;116.41217016942,39.983288438495;116.41227035784,39.983287890156;116.41245070488,39.983286880158;116.41296174925,39.983293860865;116.41322230954,39.983292230137;116.41331250834,39.983291651509;116.4134427999,39.983290802911;116.41362321215,39.983289603016;116.41375351604,39.983288718487;116.41390387309,39.983287679243;116.41402416987,39.983296835659;116.41426476406,39.983295106115;116.41432491533,39.98329466582;116.4161801095,39.983289566264;116.41670175281,39.983294802693;116.41831730591,39.983288656732;116.41934118692,39.983287378018;116.42004400111,39.983279184753;116.4202548693,39.983276657056;116.42044567038,39.983284344962;116.42074694334,39.983280638737;116.42097793397,39.983277754529;116.42185179992,39.983276518804;116.42225363275,39.98327118235;116.42269568991,39.983265192671;116.42281625828,39.98326353778;116.42326842327,39.983267254249;116.42357993515,39.983262852123;116.42365027928,39.983261850109;116.42397186513,39.983257232573;116.42413266575,39.983254901377;116.42423316871,39.983253436887;116.42444422509,39.983240340767;116.42476586682,39.98324558064;116.42550972222,39.983234354468;116.42584147953,39.983239257658;116.42675641077,39.983234918684;116.42707817471,39.983229782277;116.42720889587,39.983227682313;116.42773181224,39.983229210172;116.42797316877,39.983225260021;116.42985400047,39.983193717892;116.43036702677,39.98318490505;116.43083983957,39.983176713849;116.43102092251,39.983173560202","start_location":{"lng":"116.40142871924","lat":"39.98320244705"},"end_location":{"lng":"116.43102092251","lat":"39.983173560202"}},{"distance":878,"duration":266,"direction":6,"turn_type":"直行","name":"樱花园东街","instruction":"樱花园东街,骑行880米","restrictions_info":"","path":"116.43102092251,39.983173560202;116.43102092251,39.983173560202;116.43103085803,39.982973341829;116.43103072535,39.982763296182;116.43104070259,39.982633092133;116.43105064033,39.982442874464;116.43105059482,39.982372858812;116.43106054381,39.982202644984;116.43109032299,39.981601980021;116.43109023416,39.981471949466;116.43111007751,39.981071502772;116.43113966462,39.980240771333;116.43114957085,39.980030542547;116.43115923548,39.979500230658;116.43118885622,39.978769510383;116.43119852291,39.978269199105;116.43121826661,39.977798717543;116.43122809922,39.97751846323;116.43123794606,39.977258213782;116.43124763226,39.97680790909;116.43125734687,39.976397614138;116.43125709097,39.976097526176;116.43126711713,39.97605733829;116.43126675454,39.975637213658;116.43126665885,39.975527180766;116.43125649365,39.975407320863;116.43125637102,39.975267278713","start_location":{"lng":"116.43102092251","lat":"39.983173560202"},"end_location":{"lng":"116.43125637102","lat":"39.975267278713"}},{"distance":2158,"duration":653,"direction":6,"turn_type":"左转","name":"和平里东街","instruction":"和平里东街,骑行2.2公里","restrictions_info":"","path":"116.43125637102,39.975267278713;116.43125637102,39.975267278713;116.43126602527,39.974806963003;116.43128580699,39.974426494148;116.43129570568,39.974246262368;116.43131547374,39.973855788653;116.43131539185,39.973765760509;116.43134494023,39.973075014091;116.43137447986,39.972384264421;116.4313843622,39.972194026777;116.4313843152,39.972144010628;116.43141379679,39.971403240695;116.4314236954,39.971233008535;116.43144325143,39.970642461261;116.43145315802,39.970482231762;116.43146292903,39.970181955656;116.43146289034,39.970141942362;116.43148246818,39.969581402376;116.4314823903,39.969501375618;116.43151159416,39.968500509484;116.43151148612,39.968390472369;116.43151144681,39.968350458866;116.43151136817,39.96827043185;116.43151125998,39.968160394683;116.4315401691,39.966869427082;116.43155010122,39.966739206092;116.43155002208,39.966659178908;116.43156911432,39.965618471672;116.43153884317,39.965528971637;116.43152868357,39.96542911446;116.43152813989,39.964878927721;116.43152796216,39.964698866674;116.43153783536,39.964508625481;116.43153756922,39.96423853407;116.431547433,39.964038289613;116.43155690438,39.96343791036;116.43156680834,39.963277679654;116.431576605,39.963007412069;116.43158648027,39.962817171454;116.4315963656,39.962636934268;116.43160613468,39.962336657133;116.43161604024,39.962176426844;116.43162584941,39.961916163422;116.43162580111,39.961866146836;116.43162556005,39.961616064053;116.43162518552,39.961225935434;116.43163509319,39.961065705819;116.43163494045,39.960905653366;116.4316544358,39.960245084173;116.43165435092,39.960155055025;116.43165428499,39.960085032386;116.43166383056,39.959534678352;116.43168362701,39.959184212401;116.43169296234,39.958393786104;116.43169293503,39.958363776727;116.43171228191,39.957503156261;116.43171197128,39.957153049605;116.43171171606,39.956862961977;116.43171154995,39.956672904941;116.43171148027,39.956592881017;116.43170130656,39.95646301949;116.43171134139,39.956432833332;116.43171123764,39.956312797714;116.43173095654,39.955842304891","start_location":{"lng":"116.43125637102","lat":"39.975267278713"},"end_location":{"lng":"116.43173095654","lat":"39.955842304891"}},{"distance":38,"duration":11,"direction":5,"turn_type":"过马路左转","name":"","instruction":"骑行40米","restrictions_info":"","path":"116.43173095654,39.955842304891;116.43173095654,39.955842304891;116.43178116741,39.955731386058;116.43182133478,39.955640650072;116.43188159912,39.955519549879","start_location":{"lng":"116.43173095654","lat":"39.955842304891"},"end_location":{"lng":"116.43188159912","lat":"39.955519549879"}},{"distance":600,"duration":181,"direction":3,"turn_type":"右前方转弯","name":"安定门东大街","instruction":"安定门东大街,骑行600米","restrictions_info":"","path":"116.43188159912,39.955519549879;116.43188159912,39.955519549879;116.43197214804,39.955517950204;116.43224380691,39.95552314336;116.43323992623,39.955535392603;116.43351160677,39.955540522534;116.43372291831,39.955546727832;116.43395435633,39.955552564503;116.43424617053,39.955557304885;116.43462854995,39.955560398024;116.43497068371,39.955564207051;116.43503105064,39.955553110147;116.43537316251,39.955526900352;116.43550396863,39.955514523522;116.43603727518,39.955484831912;116.43631904889,39.955499717601;116.43652030392,39.955496059896;116.43663099419,39.955494048153;116.43679200661,39.955501125041;116.43692282224,39.955498747927;116.43701338684,39.955497102436;116.43722469548,39.955483260935;116.43730519709,39.955481799005;116.43740581553,39.955469969062;116.43779818284,39.955372822343;116.43867343468,39.955136914333;116.43885450619,39.95507362808","start_location":{"lng":"116.43188159912","lat":"39.955519549879"},"end_location":{"lng":"116.43885450619","lat":"39.95507362808"}},{"distance":228,"duration":69,"direction":4,"turn_type":"直行","name":"安定门东大街","instruction":"安定门东大街,骑行230米","restrictions_info":"","path":"116.43885450619,39.95507362808;116.43885450619,39.95507362808;116.43889473025,39.955042893547;116.4390958416,39.954879221093;116.43958844707,39.954340208693;116.4396185922,39.954289653253;116.43965879925,39.954238917556;116.43970903582,39.954147990701;116.43972907083,39.954037599648;116.43974912222,39.953947214283;116.43979927156,39.953746258343;116.43982938548,39.953655693331;116.4398594917,39.953555125845;116.43990962748,39.953334166277;116.4399498041,39.953243422268","start_location":{"lng":"116.43885450619","lat":"39.95507362808"},"end_location":{"lng":"116.4399498041","lat":"39.953243422268"}},{"distance":298,"duration":90,"direction":6,"turn_type":"右前方转弯","name":"东直门北大街","instruction":"东直门北大街,骑行300米","restrictions_info":"","path":"116.4399498041,39.953243422268;116.4399498041,39.953243422268;116.43996976439,39.953033006502;116.43995965631,39.952973170528;116.4399591542,39.952312998455;116.43994897296,39.952153137428;116.43994891353,39.952073117061;116.43994877326,39.951883068995;116.4399383628,39.951403129446;116.43993831979,39.951343114706;116.43992807315,39.951083231313;116.43992801675,39.951003211988;116.43992796058,39.950923192742;116.43993792459,39.950782979292;116.44000819762,39.950551665547","start_location":{"lng":"116.4399498041","lat":"39.953243422268"},"end_location":{"lng":"116.44000819762","lat":"39.950551665547"}},{"distance":398,"duration":120,"direction":7,"turn_type":"直行","name":"东直门北大街","instruction":"东直门北大街,骑行400米","restrictions_info":"","path":"116.44000819762,39.950551665547;116.44000819762,39.950551665547;116.43998804678,39.95051201585;116.43988727954,39.950293764062;116.43988725925,39.950263757108;116.43988723899,39.950233750165;116.43987708312,39.950093897973;116.43985683305,39.949904214779;116.43986686837,39.949864025631;116.43985679339,39.94984420119;116.43986683539,39.94981401433;116.43989697467,39.949743458416;116.43991705235,39.949673082702;116.43992696487,39.949442851599;116.43993688583,39.949222623405;116.43999721173,39.949151528768;116.44000716018,39.948971310128;116.44002704265,39.948580867976;116.44006667761,39.947539939401;116.4400766436,39.94736972692;116.4400965684,39.947009299561","start_location":{"lng":"116.44000819762","lat":"39.950551665547"},"end_location":{"lng":"116.4400965684","lat":"39.947009299561"}},{"distance":780,"duration":236,"direction":6,"turn_type":"","name":"东直门南大街","instruction":"东直门南大街,骑行780米","restrictions_info":"","path":"116.4400965684,39.947009299561;116.4400965684,39.947009299561;116.44009651965,39.946919282869;116.44010650082,39.946769075651;116.44010647422,39.946719066542;116.4401063846,39.946549035855;116.44011639929,39.946458840135;116.44011636304,39.946388827721;116.44012637836,39.946298632238;116.4401263426,39.946228619995;116.44013636361,39.94614842648;116.44013632832,39.946078414397;116.44013629324,39.94600840239;116.44013621883,39.945858376914;116.44014624605,39.945788185547;116.44014620703,39.945708172189;116.4401562299,39.945627979351;116.44015619624,39.945557967831;116.4401561533,39.945467953132;116.44016592022,39.94482767271;116.44016559497,39.944067561404;116.44016554205,39.943937543297;116.44016553398,39.943917540536;116.44017555948,39.943827348649;116.44019551934,39.94340693376;116.44021550923,39.943046529233;116.44021549841,39.943016525532;116.44021547333,39.942946516954;116.44021546621,39.942926514518;116.44021545911,39.942906512089;116.4402154344,39.94283650364;116.44021542739,39.94281650124;116.44021539606,39.942726490526;116.44021536171,39.94262647878;116.44021534811,39.942586474129;116.44023525806,39.941926042374;116.4402653587,39.941645475498;116.44022510673,39.941626191113;116.44020498071,39.941616549035;116.44018485176,39.941596906038;116.44016471992,39.941567262133;116.44015464969,39.941537438738;116.44016463823,39.941277234215;116.44015450175,39.940997388184;116.44017457131,39.940787010773;116.44017454411,39.940677001485;116.44018458149,39.940576813699;116.4401845625,39.940496807214;116.44018455312,39.940456804012;116.44018454383,39.940416800839;116.44018449857,39.940216785386;116.44018449415,39.940196783879;116.44016433429,39.940027130413","start_location":{"lng":"116.4400965684","lat":"39.947009299561"},"end_location":{"lng":"116.44016433429","lat":"39.940027130413"}},{"distance":227,"duration":68,"direction":8,"turn_type":"直行","name":"东四十条桥","instruction":"东四十条桥,骑行230米","restrictions_info":"","path":"116.44016433429,39.940027130413;116.44016433429,39.940027130413;116.44013414741,39.940017668425;116.44009389676,39.939998385552;116.44002345066,39.939929638748;116.4399328811,39.939861252767;116.4398926261,39.939821969972;116.43987248473,39.939732323953;116.43986240935,39.939662499372;116.43986239598,39.939592494809;116.43987244833,39.939542311537;116.43990262062,39.939471767023;116.4399227368,39.939431404557;116.43997303279,39.939360500622;116.44009375692,39.939268337849;116.44021448735,39.939216180099;116.44025473179,39.939205461831;116.44033522037,39.939184026199;116.44037546619,39.939183309415;116.44042577333,39.93918241387;116.4405666341,39.939189909529;116.44068737277,39.939207766758;116.44082823099,39.939215269873;116.44086847716,39.93922455766;116.4409087215,39.939223845211;116.44097915052,39.939232599852;116.44102945723,39.939241711144;116.44107976203,39.939240822409;116.44116025799,39.939289404575;116.44120051025,39.939338697735;116.44126088413,39.939387636714;116.44134138483,39.939466224243;116.4413615137,39.939505872648;116.44137158191,39.939545698178","start_location":{"lng":"116.44016433429","lat":"39.940027130413"},"end_location":{"lng":"116.44137158191","lat":"39.939545698178"}},{"distance":901,"duration":273,"direction":3,"turn_type":"右转","name":"工人体育场北路辅路","instruction":"工人体育场北路辅路,骑行900米","restrictions_info":"","path":"116.44137158191,39.939545698178;116.44137158191,39.939545698178;116.4419148495,39.939546176506;116.44196515056,39.93954529863;116.44203557167,39.939544070736;116.4421764144,39.939551619618;116.44227701384,39.939549871703;116.44249832917,39.93954603636;116.44262910222,39.939533776048;116.44300130005,39.939537373514;116.44314212709,39.939534961927;116.44387640497,39.939532494025;116.44430889525,39.939535238609;116.44495255395,39.939524569792;116.44521402413,39.93952028269;116.44543526052,39.939516677293;116.44563637833,39.939513417707;116.44577715912,39.939521147073;116.44630002366,39.939502787579;116.44659160544,39.939508181149;116.44669214511,39.939496601172;116.4467725791,39.93950534185;116.44683290053,39.939494398272;116.44685300818,39.939494084355;116.446903277,39.939493300424;116.44701386883,39.939501580782;116.44706413438,39.939490800173;116.44775778067,39.939480166954;116.44790856396,39.939487888957;116.44797892527,39.939476829059;116.44837093223,39.939470976308;116.44878301085,39.939464914532;116.44877294538,39.939385056111;116.44915484323,39.939379521465;116.44926538721,39.939377935047;116.44943622308,39.939375497396;116.4502601705,39.939363985364;116.45037068915,39.939362472795;116.45116433569,39.939351838012;116.45137528141,39.939349079879;116.45185740667,39.93935288773","start_location":{"lng":"116.44137158191","lat":"39.939545698178"},"end_location":{"lng":"116.45185740667","lat":"39.93935288773"}},{"distance":42,"duration":12,"direction":6,"turn_type":"左转","name":"","instruction":"骑行40米","restrictions_info":"","path":"116.45185740667,39.93935288773;116.45185740667,39.93935288773;116.45185739918,39.939312885196;116.45185736825,39.939142874741;116.45186739787,39.93906274265;116.45187742441,39.938962609599","start_location":{"lng":"116.45185740667","lat":"39.93935288773"},"end_location":{"lng":"116.45187742441","lat":"39.938962609599"}},{"distance":51,"duration":15,"direction":3,"turn_type":"右转","name":"","instruction":"骑行50米","restrictions_info":"","path":"116.45187742441,39.938962609599;116.45187742441,39.938962609599;116.45247999585,39.938935098949","start_location":{"lng":"116.45187742441","lat":"39.938962609599"},"end_location":{"lng":"116.45247999585","lat":"39.938935098949"}},{"distance":91,"duration":27,"direction":5,"turn_type":"左转","name":"","instruction":"骑行90米","restrictions_info":"","path":"116.45247999585,39.938935098949;116.45247999585,39.938935098949;116.45267079309,39.938932773758;116.4527109548,39.938902285837;116.45273103305,39.938872041479;116.4527108969,39.938532266326;116.45270084942,39.938492385812;116.45266067259,39.93842286896;116.45265061154,39.938282984286","start_location":{"lng":"116.45247999585","lat":"39.938935098949"},"end_location":{"lng":"116.45265061154","lat":"39.938282984286"}},{"distance":60,"duration":18,"direction":5,"turn_type":"右转","name":"","instruction":"骑行60米","restrictions_info":"","path":"116.45265061154,39.938282984286;116.45265061154,39.938282984286;116.45272089411,39.938212130015;116.45281124367,39.938021032818;116.45289156096,39.937910065199;116.45297187728,39.937799102415","start_location":{"lng":"116.45265061154","lat":"39.938282984286"},"end_location":{"lng":"116.45297187728","lat":"39.937799102415"}},{"distance":138,"duration":41,"direction":8,"turn_type":"左前方转弯","name":"","instruction":"骑行140米","restrictions_info":"","path":"116.45297187728,39.937799102415;116.45297187728,39.937799102415;116.4528614153,39.93771041853;116.45269069136,39.937522468322;116.45251995967,39.937304538592;116.45238938631,39.936986132616;116.45234919923,39.936696622285","start_location":{"lng":"116.45297187728","lat":"39.937799102415"},"end_location":{"lng":"116.45234919923","lat":"39.936696622285"}},{"distance":32,"duration":9,"direction":6,"turn_type":"无效","name":"","instruction":"骑行30米","restrictions_info":"","path":"116.45234919923,39.936696622285;116.45234919923,39.936696622285;116.45234919428,39.936596620681;116.45238935614,39.936406122801","start_location":{"lng":"116.45234919923","lat":"39.936696622285"},"end_location":{"lng":"116.45238935614","lat":"39.936406122801"}}]}]}}
参数 | 值 | 备注 | 必选 |
---|---|---|---|
origin | 40.01116,116.339303 | 是 | |
destination | 39.936404,116.452562 | 是 |
上一篇
下一篇
本篇文章对您是否有帮助?