根据起终点坐标检索符合条件的骑行路线规划方案,支持普通自行车和电动自行车出行方式
https://api.map.baidu.com/direction/v2/riding?origin=40.01116,116.339303&destination=39.936404,116.452562&ak=您的AK
//GET请求
字段名称 | 含义 | 字段类型 | 必填 | 备注 |
---|---|---|---|---|
origin | 起点 | double,double | 是 | 起点经纬度,格式为:纬度,经度;小数点后不超过6位,40.056878,116.30815 |
destination | 终点 | double,double | 是 | 终点经纬度,格式为:纬度,经度;小数点后不超过6位,40.056878,116.30815 |
origin_uid | 起点POI的uid(请尽量填写uid,将提升路线规划的准确性。 | string | 否 | |
destination_uid | 终点POI的uid(请尽量填写uid,将提升路线规划的准确性。 | string | 否 | |
coord_type | 输入坐标类型 | string | 否 | 默认bd09ll |
ret_coordtype | 输出坐标类型 | string | 否 | 返回值的坐标类型,默认为百度经纬度坐标:bd09ll |
output | 表示输出类型,可设置为xml或json | string | 否 | 默认为json |
riding_type | 骑行类型 | string | 否 | 默认0:0-普通 1-电动车 |
road_prefer | 算路方案 | int | 否 | 默认0 |
ak | 用户的访问权限,AK申请 | string | 是 | |
sn | 用户的权限签名,当AK设置为SN校验时,该参数必填 SN计算方法 | string | 否 | |
timestamp | 时间戳,与SN配合使用 | int64 | SN存在时必填 | SN存在时必填 |
callback | 回调函数,用于解决浏览器请求跨域问题 | string | 否 | 仅在output=json时,该参数有效 |
字段名称 | 字段含义 | 备注 | ||||
---|---|---|---|---|---|---|
status | 状态码 | 0:成功 1:服务内部错误 2:参数无效 2001:无骑行路线 | ||||
message | 状态码对应的信息 | |||||
type | 返回数据类型 | |||||
info | 版权信息 | |||||
result | 返回的结果 | |||||
distance | 方案距离 | 单位:米 | ||||
duration | 线路耗时 | 单位:秒 | ||||
steps | ||||||
direction | 当前道路方向角 | |||||
distance | 路段距离 | 单位:米 | ||||
duration | 路段耗时 | 单位:秒 | ||||
instructions | 路段描述 | 如“骑行50米“ | ||||
name | 该路段道路名称 | 如“信息路“ 若道路未命名或百度地图未采集到该道路名称,则返回"无名路" | ||||
path | 路段位置坐标描述 | |||||
turn_type | 行驶转向方向 | 如“直行”、“左前方转弯” | ||||
stepOrigin location | ||||||
lng | 路段起点经度 | |||||
lat | 路段起点纬度 | |||||
stepDestination location | ||||||
lng | 路段终点经度 | |||||
lat | 路段终点纬度 | |||||
restrictions_status | 限行类型 | 0x01表示禁行;0x02表示逆行 | ||||
restrictions_info | 限行信息 | 如 "包含禁行路段|包含逆行路段" | ||||
links | link信息 | |||||
length | link长度 | 单位:米 | ||||
attr | link属性 | 0x01表示禁行;0x02表示逆行 | ||||
originLocation | ||||||
lng | 路线起点经度 | |||||
lat | 路线起点纬度 | |||||
destinationLocation | ||||||
lng | 路线终点经度 | |||||
lat | 路线终点纬度 | |||||
restrictions_status | 限行类型 | 0x01表示禁行;0x02表示逆行 | ||||
restrictions_info | 限行信息 | 如 "包含禁行路段|包含逆行路段" | ||||
origin | ||||||
originPt | ||||||
lng | 起点经度 | |||||
lat | 起点纬度 | |||||
destination | ||||||
destinationPt | ||||||
lng | 终点经度 | |||||
lat | 终点纬度 |
输入AK可生成包含IP/SN校验方式的代码
<?php// 此处填写你在控制台-应用管理-创建应用后获取的AK$ak = '您的AK';// 发起一个http get请求,并返回请求的结果// $url字段为请求的地址// $param字段为请求的参数function request_get($url = '', $param = array()) {if (empty($url) || empty($param)) {return false;}$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/direction/v2/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","info": {"copyright": {"text": "@2023 Baidu - Data","imageUrl": "http://api.map.baidu.com/images/copyright_logo.png"}},"type": 2,"result": {"routes": [{"restrictions_status": 0,"restrictions_info": "","distance": 17279,"duration": 5969,"steps": [{"leg_index": 0,"area": 0,"direction": 176,"distance": 200,"duration": 60,"instructions": "骑行200米","name": "","path": "116.339966,40.011176;116.340006,40.010546;116.340017,40.010166;116.340067,40.009366","pois": [],"type": 5,"turn_type": "左转","restrictions_info": "","stepOriginLocation": {"lng": 116.33996581129,"lat": 40.011176482433},"stepDestinationLocation": {"lng": 116.34006725922,"lat": 40.009366288399},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 70,"attr": 0},{"length": 41,"attr": 0},{"length": 89,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 88,"distance": 299,"duration": 90,"instructions": "骑行300米","name": "","path": "116.340067,40.009366;116.340518,40.009374;116.340739,40.009372;116.340909,40.009361;116.341881,40.009327;116.342381,40.009305;116.342491,40.009294;116.343333,40.009311;116.343513,40.009311;116.343613,40.009320","pois": [],"type": 5,"turn_type": "右转","restrictions_info": "","stepOriginLocation": {"lng": 116.34006725922,"lat": 40.009366288399},"stepDestinationLocation": {"lng": 116.34363312949,"lat": 40.008820305313},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 71,"attr": 0},{"length": 82,"attr": 0},{"length": 42,"attr": 0},{"length": 9,"attr": 0},{"length": 72,"attr": 0},{"length": 15,"attr": 0},{"length": 8,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 176,"distance": 353,"duration": 106,"instructions": "<b>荷清路</b>,骑行350米","name": "荷清路","path": "116.343613,40.009320;116.343633,40.008820;116.343653,40.008250;116.343674,40.007590;116.343694,40.007100;116.343694,40.007050;116.343745,40.006151","pois": [],"type": 5,"turn_type": "未知","restrictions_info": "","stepOriginLocation": {"lng": 116.34361279144,"lat": 40.009320252832},"stepDestinationLocation": {"lng": 116.34374476108,"lat": 40.006150523117},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 55,"attr": 0},{"length": 137,"attr": 0},{"length": 55,"attr": 0},{"length": 6,"attr": 0},{"length": 100,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 134,"distance": 2797,"duration": 847,"instructions": "<b>清华东路</b>,骑行2.8公里","name": "清华东路","path": "116.343745,40.006151;116.343835,40.006060;116.343945,40.006060;116.344145,40.006060;116.344505,40.006089;116.344565,40.006099;116.344635,40.006108;116.344796,40.006138;116.345006,40.006178;116.345106,40.006198;116.345126,40.006198;116.345226,40.006207;116.345876,40.006227;116.345906,40.006237;116.346186,40.006247;116.346536,40.006257;116.346656,40.006257;116.346916,40.006257;116.347246,40.006257;116.347716,40.006287;116.349005,40.006329;116.349535,40.006350;116.350084,40.006362;116.350504,40.006374;116.350544,40.006374;116.350893,40.006385;116.351612,40.006408;116.351782,40.006409;116.351832,40.006409;116.351941,40.006420;116.351961,40.006420;116.351991,40.006420;116.352041,40.006420;116.352151,40.006421;116.352281,40.006432;116.352381,40.006432;116.352470,40.006433;116.352570,40.006443;116.352660,40.006444;116.352780,40.006454;116.352840,40.006455;116.353099,40.006466;116.354286,40.006504;116.354965,40.006519;116.355364,40.006542;116.355563,40.006554;116.356231,40.006570;116.356321,40.006580;116.357108,40.006608;116.357497,40.006622;116.357547,40.006622;116.357607,40.006623;116.358374,40.006651;116.358673,40.006654;116.358782,40.006665;116.358912,40.006666;116.358962,40.006677;116.359091,40.006678;116.359241,40.006690;116.359450,40.006692;116.359619,40.006704;116.359699,40.006705;116.359739,40.006706;116.359898,40.006708;116.360555,40.006735;116.360924,40.006750;116.361621,40.006789;116.362556,40.006841;116.362935,40.006857;116.363721,40.006888;116.364009,40.006902;116.364636,40.006931;116.365899,40.006990;116.366039,40.006992;116.366516,40.007020;116.366745,40.007034;116.367192,40.007051;116.367580,40.007067;116.368038,40.007095;116.368187,40.007097;116.368286,40.007099;116.368465,40.007102;116.369956,40.007177;116.370294,40.007193;116.371020,40.007236;116.371229,40.007239;116.371318,40.007241;116.371427,40.007233;116.371467,40.007234;116.371616,40.007236;116.371706,40.007238;116.371895,40.007251;116.372531,40.007283;116.372779,40.007217;116.373276,40.007236;116.373544,40.007251;116.373654,40.007253;116.373892,40.007257;116.374151,40.007262;116.374618,40.007291;116.374697,40.007292;116.374796,40.007394;116.375005,40.007398;116.375800,40.007442;116.375909,40.007444;116.376267,40.007461","pois": [],"type": 5,"turn_type": "右转","restrictions_info": "","stepOriginLocation": {"lng": 116.34374476108,"lat": 40.006150523117},"stepDestinationLocation": {"lng": 116.37626718056,"lat": 40.007460795993},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 13,"attr": 0},{"length": 9,"attr": 0},{"length": 74,"attr": 0},{"length": 26,"attr": 0},{"length": 11,"attr": 0},{"length": 82,"attr": 0},{"length": 30,"attr": 0},{"length": 10,"attr": 0},{"length": 22,"attr": 0},{"length": 29,"attr": 0},{"length": 40,"attr": 0},{"length": 111,"attr": 0},{"length": 45,"attr": 0},{"length": 48,"attr": 0},{"length": 35,"attr": 0},{"length": 4,"attr": 0},{"length": 91,"attr": 0},{"length": 28,"attr": 0},{"length": 5,"attr": 0},{"length": 95,"attr": 0},{"length": 101,"attr": 0},{"length": 58,"attr": 0},{"length": 34,"attr": 0},{"length": 17,"attr": 0},{"length": 132,"attr": 0},{"length": 42,"attr": 0},{"length": 66,"attr": 0},{"length": 46,"attr": 0},{"length": 15,"attr": 0},{"length": 13,"attr": 0},{"length": 18,"attr": 0},{"length": 14,"attr": 0},{"length": 23,"attr": 0},{"length": 57,"attr": 0},{"length": 32,"attr": 0},{"length": 60,"attr": 0},{"length": 80,"attr": 0},{"length": 33,"attr": 0},{"length": 91,"attr": 0},{"length": 54,"attr": 0},{"length": 180,"attr": 0},{"length": 38,"attr": 0},{"length": 34,"attr": 0},{"length": 39,"attr": 0},{"length": 13,"attr": 0},{"length": 8,"attr": 0},{"length": 15,"attr": 0},{"length": 128,"attr": 0},{"length": 109,"attr": 0},{"length": 8,"attr": 0},{"length": 9,"attr": 0},{"length": 4,"attr": 0},{"length": 20,"attr": 0},{"length": 17,"attr": 0},{"length": 55,"attr": 0},{"length": 65,"attr": 0},{"length": 32,"attr": 0},{"length": 103,"attr": 0},{"length": 95,"attr": 0},{"length": 31,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 140,"distance": 1528,"duration": 463,"instructions": "<b>G6辅路</b>,骑行1.5公里","name": "G6辅路","path": "116.376267,40.007461;116.376645,40.006998;116.376665,40.006968;116.376923,40.006653;116.377033,40.006515;116.377212,40.006268;116.377411,40.006022;116.377610,40.005756;116.377828,40.005480;116.378365,40.004760;116.378634,40.004385;116.379578,40.003192;116.379608,40.003163;116.379678,40.003084;116.379757,40.002985;116.379896,40.002818;116.379956,40.002739;116.380075,40.002591;116.381308,40.000993;116.381487,40.000757;116.381547,40.000678;116.381577,40.000638;116.381656,40.000540;116.381676,40.000510;116.381706,40.000481;116.381756,40.000421;116.381766,40.000402;116.381825,40.000313;116.381915,40.000194;116.382004,40.000096;116.382074,40.000017;116.382223,39.999840;116.382303,39.999741;116.382392,39.999613;116.382531,39.999435;116.382601,39.999326;116.382710,39.999178;116.382730,39.999149;116.382770,39.999089;116.382790,39.999070;116.382839,39.998991;116.382889,39.998921;116.382989,39.998763;116.383009,39.998723;116.383048,39.998634;116.383217,39.998337;116.383247,39.998268;116.383297,39.998159;116.383376,39.997990;116.383426,39.997871;116.383496,39.997682;116.383575,39.997463;116.383645,39.997225;116.383685,39.997055;116.383724,39.996856;116.383734,39.996636;116.383724,39.996456;116.383655,39.996165;116.383585,39.995953;116.383516,39.995812;116.383337,39.995539;116.383247,39.995418","pois": [],"type": 5,"turn_type": "左转","restrictions_info": "","stepOriginLocation": {"lng": 116.37626718056,"lat": 40.007460795993},"stepDestinationLocation": {"lng": 116.38324726061,"lat": 39.995417677727},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 61,"attr": 0},{"length": 3,"attr": 0},{"length": 126,"attr": 0},{"length": 70,"attr": 0},{"length": 93,"attr": 0},{"length": 49,"attr": 0},{"length": 161,"attr": 0},{"length": 46,"attr": 0},{"length": 30,"attr": 0},{"length": 209,"attr": 0},{"length": 30,"attr": 0},{"length": 29,"attr": 0},{"length": 3,"attr": 0},{"length": 5,"attr": 0},{"length": 10,"attr": 0},{"length": 50,"attr": 0},{"length": 53,"attr": 0},{"length": 56,"attr": 0},{"length": 4,"attr": 0},{"length": 8,"attr": 0},{"length": 47,"attr": 0},{"length": 55,"attr": 0},{"length": 32,"attr": 0},{"length": 89,"attr": 0},{"length": 160,"attr": 0},{"length": 49,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 154,"distance": 77,"duration": 23,"instructions": "<b>G6辅路</b>,骑行80米","name": "G6辅路","path": "116.383247,39.995418;116.383257,39.995358;116.383257,39.995338;116.383297,39.995279;116.383357,39.995150;116.383436,39.995011;116.383466,39.994941;116.383506,39.994882;116.383565,39.994783","pois": [],"type": 5,"turn_type": "左转","restrictions_info": "","stepOriginLocation": {"lng": 116.38324726061,"lat": 39.995417677727},"stepDestinationLocation": {"lng": 116.38356534799,"lat": 39.994783135007},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 77,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 98,"distance": 1402,"duration": 424,"instructions": "<b>G6辅路</b>,骑行1.4公里","name": "G6辅路","path": "116.383565,39.994783;116.383635,39.994774;116.383734,39.994766;116.383844,39.994748;116.384023,39.994711;116.384092,39.994692;116.384192,39.994654;116.384251,39.994615;116.384311,39.994566;116.384381,39.994507;116.384450,39.994388;116.384500,39.994289;116.384510,39.994239;116.384530,39.994169;116.384579,39.994020;116.384599,39.993961;116.384629,39.993851;116.384679,39.993692;116.384709,39.993572;116.384758,39.993413;116.384778,39.993334;116.384828,39.993154;116.384887,39.992965;116.384907,39.992906;116.384957,39.992707;116.385027,39.992478;116.385056,39.992378;116.385096,39.992259;116.385106,39.992209;116.385146,39.992060;116.385166,39.991970;116.385186,39.991900;116.385195,39.991870;116.385205,39.991851;116.385225,39.991781;116.385255,39.991681;116.385265,39.991642;116.385265,39.991622;116.385275,39.991592;116.385305,39.991512;116.385315,39.991472;116.385335,39.991403;116.385384,39.991253;116.385414,39.991134;116.385464,39.990985;116.385543,39.990756;116.385553,39.990716;116.385603,39.990597;116.385623,39.990527;116.385871,39.989681;116.385911,39.989542;116.385951,39.989413;116.386229,39.988477;116.386258,39.988347;116.386308,39.988208;116.386328,39.988118;116.386378,39.987939;116.386388,39.987909;116.386457,39.987670;116.386775,39.986525;116.386824,39.986326;116.386854,39.986237;116.386894,39.986097;116.386924,39.985988;116.386963,39.985858;116.386993,39.985759;116.387063,39.985490;116.387102,39.985350;116.387162,39.985141;116.387182,39.985061;116.387182,39.985041;116.387212,39.984952;116.387232,39.984862;116.387261,39.984763;116.387271,39.984673;116.387281,39.984633;116.387341,39.984414;116.387361,39.984314;116.387380,39.984234;116.387400,39.984145;116.387430,39.984045;116.387489,39.983716;116.387509,39.983606;116.387529,39.983506;116.387569,39.983047;116.387579,39.982927","pois": [],"type": 5,"turn_type": "过马路左转","restrictions_info": "","stepOriginLocation": {"lng": 116.38356534799,"lat": 39.994783135007},"stepDestinationLocation": {"lng": 116.38805603262,"lat": 39.982934402746},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 41,"attr": 0},{"length": 16,"attr": 0},{"length": 55,"attr": 0},{"length": 8,"attr": 0},{"length": 86,"attr": 0},{"length": 9,"attr": 0},{"length": 48,"attr": 0},{"length": 61,"attr": 0},{"length": 20,"attr": 0},{"length": 41,"attr": 0},{"length": 26,"attr": 0},{"length": 3,"attr": 0},{"length": 102,"attr": 0},{"length": 14,"attr": 0},{"length": 8,"attr": 0},{"length": 112,"attr": 0},{"length": 122,"attr": 0},{"length": 15,"attr": 0},{"length": 26,"attr": 0},{"length": 51,"attr": 0},{"length": 131,"attr": 0},{"length": 167,"attr": 0},{"length": 44,"attr": 0},{"length": 71,"attr": 0},{"length": 50,"attr": 0},{"length": 11,"attr": 0},{"length": 51,"attr": 0},{"length": 13,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 90,"distance": 1185,"duration": 359,"instructions": "<b>北土城西路</b>,骑行1.2公里","name": "北土城西路","path": "116.387579,39.982927;116.387718,39.982929;116.387748,39.982930;116.387887,39.982932;116.388056,39.982934;116.388374,39.982939;116.388464,39.982941;116.388613,39.982943;116.388723,39.982944;116.389310,39.982963;116.390474,39.982989;116.390813,39.983004;116.390872,39.983005;116.391091,39.983007;116.391261,39.983010;116.392386,39.983034;116.392854,39.983050;116.393152,39.983053;116.393820,39.983071;116.394059,39.983074;116.394218,39.983075;116.394457,39.983078;116.394517,39.983079;116.394806,39.983092;116.395265,39.983096;116.396381,39.983117;116.397139,39.983134;116.397348,39.983136;116.399233,39.983170;116.399812,39.983174;116.400440,39.983187;116.400740,39.983199;116.401429,39.983202","pois": [],"type": 5,"turn_type": "直行","restrictions_info": "","stepOriginLocation": {"lng": 116.38757852819,"lat": 39.982927136822},"stepDestinationLocation": {"lng": 116.40172825509,"lat": 39.983213819681},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 41,"attr": 0},{"length": 27,"attr": 0},{"length": 30,"attr": 0},{"length": 50,"attr": 0},{"length": 100,"attr": 0},{"length": 29,"attr": 0},{"length": 5,"attr": 0},{"length": 18,"attr": 0},{"length": 14,"attr": 0},{"length": 97,"attr": 0},{"length": 40,"attr": 0},{"length": 25,"attr": 0},{"length": 57,"attr": 0},{"length": 20,"attr": 0},{"length": 14,"attr": 0},{"length": 21,"attr": 0},{"length": 6,"attr": 0},{"length": 24,"attr": 0},{"length": 40,"attr": 0},{"length": 160,"attr": 0},{"length": 18,"attr": 0},{"length": 162,"attr": 0},{"length": 49,"attr": 0},{"length": 54,"attr": 0},{"length": 25,"attr": 0},{"length": 59,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 88,"distance": 2518,"duration": 763,"instructions": "<b>北土城东路</b>,骑行2.5公里","name": "北土城东路","path": "116.401429,39.983202;116.401728,39.983214;116.402018,39.983215;116.402697,39.983228;116.403546,39.983230;116.403636,39.983241;116.403816,39.983241;116.403886,39.983241;116.404156,39.983242;116.405335,39.983254;116.406855,39.983264;116.407075,39.983264;116.407835,39.983263;116.408165,39.983273;116.408285,39.983273;116.408656,39.983272;116.409676,39.983279;116.410798,39.983285;116.410848,39.983285;116.411559,39.983292;116.411769,39.983291;116.412170,39.983288;116.412270,39.983288;116.412451,39.983287;116.412962,39.983294;116.413222,39.983292;116.413313,39.983292;116.413443,39.983291;116.413623,39.983290;116.413754,39.983289;116.413904,39.983288;116.414024,39.983297;116.414265,39.983295;116.414325,39.983295;116.416180,39.983290;116.416702,39.983295;116.418317,39.983289;116.419341,39.983287;116.420044,39.983279;116.420255,39.983277;116.420446,39.983284;116.420747,39.983281;116.420978,39.983278;116.421852,39.983277;116.422254,39.983271;116.422696,39.983265;116.422816,39.983264;116.423268,39.983267;116.423580,39.983263;116.423650,39.983262;116.423972,39.983257;116.424133,39.983255;116.424233,39.983253;116.424444,39.983240;116.424766,39.983246;116.425510,39.983234;116.425841,39.983239;116.426756,39.983235;116.427078,39.983230;116.427209,39.983228;116.427732,39.983229;116.427973,39.983225;116.429854,39.983194;116.430367,39.983185;116.430840,39.983177;116.431021,39.983174","pois": [],"type": 5,"turn_type": "右转","restrictions_info": "","stepOriginLocation": {"lng": 116.40142871924,"lat": 39.98320244705},"stepDestinationLocation": {"lng": 116.43102092251,"lat": 39.983173560202},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 26,"attr": 0},{"length": 25,"attr": 0},{"length": 58,"attr": 0},{"length": 72,"attr": 0},{"length": 8,"attr": 0},{"length": 16,"attr": 0},{"length": 6,"attr": 0},{"length": 23,"attr": 0},{"length": 101,"attr": 0},{"length": 129,"attr": 0},{"length": 19,"attr": 0},{"length": 65,"attr": 0},{"length": 28,"attr": 0},{"length": 10,"attr": 0},{"length": 32,"attr": 0},{"length": 87,"attr": 0},{"length": 96,"attr": 0},{"length": 4,"attr": 0},{"length": 61,"attr": 0},{"length": 17,"attr": 0},{"length": 43,"attr": 0},{"length": 16,"attr": 0},{"length": 66,"attr": 0},{"length": 7,"attr": 0},{"length": 11,"attr": 0},{"length": 16,"attr": 0},{"length": 11,"attr": 0},{"length": 13,"attr": 0},{"length": 10,"attr": 0},{"length": 21,"attr": 0},{"length": 5,"attr": 0},{"length": 158,"attr": 0},{"length": 44,"attr": 0},{"length": 137,"attr": 0},{"length": 87,"attr": 0},{"length": 60,"attr": 0},{"length": 18,"attr": 0},{"length": 16,"attr": 0},{"length": 26,"attr": 0},{"length": 20,"attr": 0},{"length": 74,"attr": 0},{"length": 34,"attr": 0},{"length": 37,"attr": 0},{"length": 10,"attr": 0},{"length": 38,"attr": 0},{"length": 33,"attr": 0},{"length": 27,"attr": 0},{"length": 13,"attr": 0},{"length": 9,"attr": 0},{"length": 17,"attr": 0},{"length": 27,"attr": 0},{"length": 63,"attr": 0},{"length": 29,"attr": 0},{"length": 77,"attr": 0},{"length": 27,"attr": 0},{"length": 12,"attr": 0},{"length": 44,"attr": 0},{"length": 21,"attr": 0},{"length": 159,"attr": 0},{"length": 44,"attr": 0},{"length": 40,"attr": 0},{"length": 15,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 176,"distance": 878,"duration": 266,"instructions": "<b>樱花园东街</b>,骑行880米","name": "樱花园东街","path": "116.431021,39.983174;116.431031,39.982973;116.431031,39.982763;116.431041,39.982633;116.431051,39.982443;116.431051,39.982373;116.431061,39.982203;116.431090,39.981602;116.431090,39.981472;116.431110,39.981072;116.431140,39.980241;116.431150,39.980031;116.431159,39.979500;116.431189,39.978770;116.431199,39.978269;116.431218,39.977799;116.431228,39.977518;116.431238,39.977258;116.431248,39.976808;116.431257,39.976398;116.431257,39.976098;116.431267,39.976057;116.431267,39.975637;116.431267,39.975527;116.431256,39.975407;116.431256,39.975267","pois": [],"type": 5,"turn_type": "直行","restrictions_info": "","stepOriginLocation": {"lng": 116.43102092251,"lat": 39.983173560202},"stepDestinationLocation": {"lng": 116.43126602527,"lat": 39.974806963003},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 22,"attr": 0},{"length": 23,"attr": 0},{"length": 44,"attr": 0},{"length": 19,"attr": 0},{"length": 67,"attr": 0},{"length": 14,"attr": 0},{"length": 160,"attr": 0},{"length": 59,"attr": 0},{"length": 80,"attr": 0},{"length": 56,"attr": 0},{"length": 53,"attr": 0},{"length": 59,"attr": 0},{"length": 96,"attr": 0},{"length": 33,"attr": 0},{"length": 51,"attr": 0},{"length": 42,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 180,"distance": 2158,"duration": 653,"instructions": "<b>和平里东街</b>,骑行2.2公里","name": "和平里东街","path": "116.431256,39.975267;116.431266,39.974807;116.431286,39.974426;116.431296,39.974246;116.431315,39.973856;116.431315,39.973766;116.431345,39.973075;116.431374,39.972384;116.431384,39.972194;116.431384,39.972144;116.431414,39.971403;116.431424,39.971233;116.431443,39.970642;116.431453,39.970482;116.431463,39.970182;116.431463,39.970142;116.431482,39.969581;116.431482,39.969501;116.431512,39.968501;116.431511,39.968390;116.431511,39.968350;116.431511,39.968270;116.431511,39.968160;116.431540,39.966869;116.431550,39.966739;116.431550,39.966659;116.431569,39.965618;116.431539,39.965529;116.431529,39.965429;116.431528,39.964879;116.431528,39.964699;116.431538,39.964509;116.431538,39.964239;116.431547,39.964038;116.431557,39.963438;116.431567,39.963278;116.431577,39.963007;116.431586,39.962817;116.431596,39.962637;116.431606,39.962337;116.431616,39.962176;116.431626,39.961916;116.431626,39.961866;116.431626,39.961616;116.431625,39.961226;116.431635,39.961066;116.431635,39.960906;116.431654,39.960245;116.431654,39.960155;116.431654,39.960085;116.431664,39.959535;116.431684,39.959184;116.431693,39.958394;116.431693,39.958364;116.431712,39.957503;116.431712,39.957153;116.431712,39.956863;116.431712,39.956673;116.431711,39.956593;116.431701,39.956463;116.431711,39.956433;116.431711,39.956313;116.431731,39.955842","pois": [],"type": 5,"turn_type": "左转","restrictions_info": "","stepOriginLocation": {"lng": 116.43125637102,"lat": 39.975267278713},"stepDestinationLocation": {"lng": 116.43173095654,"lat": 39.955842304891},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 51,"attr": 0},{"length": 41,"attr": 0},{"length": 64,"attr": 0},{"length": 9,"attr": 0},{"length": 77,"attr": 0},{"length": 76,"attr": 0},{"length": 22,"attr": 0},{"length": 5,"attr": 0},{"length": 83,"attr": 0},{"length": 18,"attr": 0},{"length": 66,"attr": 0},{"length": 17,"attr": 0},{"length": 33,"attr": 0},{"length": 5,"attr": 0},{"length": 63,"attr": 0},{"length": 9,"attr": 0},{"length": 124,"attr": 0},{"length": 5,"attr": 0},{"length": 9,"attr": 0},{"length": 12,"attr": 0},{"length": 143,"attr": 0},{"length": 14,"attr": 0},{"length": 9,"attr": 0},{"length": 116,"attr": 0},{"length": 10,"attr": 0},{"length": 11,"attr": 0},{"length": 82,"attr": 0},{"length": 21,"attr": 0},{"length": 30,"attr": 0},{"length": 22,"attr": 0},{"length": 67,"attr": 0},{"length": 18,"attr": 0},{"length": 51,"attr": 0},{"length": 20,"attr": 0},{"length": 52,"attr": 0},{"length": 29,"attr": 0},{"length": 32,"attr": 0},{"length": 62,"attr": 0},{"length": 18,"attr": 0},{"length": 73,"attr": 0},{"length": 10,"attr": 0},{"length": 7,"attr": 0},{"length": 62,"attr": 0},{"length": 126,"attr": 0},{"length": 4,"attr": 0},{"length": 96,"attr": 0},{"length": 39,"attr": 0},{"length": 32,"attr": 0},{"length": 20,"attr": 0},{"length": 10,"attr": 0},{"length": 15,"attr": 0},{"length": 3,"attr": 0},{"length": 65,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 154,"distance": 38,"duration": 11,"instructions": "骑行40米","name": "","path": "116.431731,39.955842;116.431781,39.955731;116.431821,39.955641;116.431882,39.955520","pois": [],"type": 5,"turn_type": "过马路左转","restrictions_info": "","stepOriginLocation": {"lng": 116.43173095654,"lat": 39.955842304891},"stepDestinationLocation": {"lng": 116.43188159912,"lat": 39.955519549879},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 38,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 90,"distance": 600,"duration": 181,"instructions": "<b>安定门东大街</b>,骑行600米","name": "安定门东大街","path": "116.431882,39.955520;116.431972,39.955518;116.432244,39.955523;116.433240,39.955535;116.433512,39.955541;116.433723,39.955547;116.433954,39.955553;116.434246,39.955557;116.434629,39.955560;116.434971,39.955564;116.435031,39.955553;116.435373,39.955527;116.435504,39.955515;116.436037,39.955485;116.436319,39.955500;116.436520,39.955496;116.436631,39.955494;116.436792,39.955501;116.436923,39.955499;116.437013,39.955497;116.437225,39.955483;116.437305,39.955482;116.437406,39.955470;116.437798,39.955373;116.438673,39.955137;116.438855,39.955074","pois": [],"type": 5,"turn_type": "右前方转弯","restrictions_info": "","stepOriginLocation": {"lng": 116.43188159912,"lat": 39.955519549879},"stepDestinationLocation": {"lng": 116.43885450619,"lat": 39.95507362808},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 8,"attr": 0},{"length": 23,"attr": 0},{"length": 85,"attr": 0},{"length": 41,"attr": 0},{"length": 19,"attr": 0},{"length": 25,"attr": 0},{"length": 62,"attr": 0},{"length": 5,"attr": 0},{"length": 29,"attr": 0},{"length": 12,"attr": 0},{"length": 45,"attr": 0},{"length": 64,"attr": 0},{"length": 87,"attr": 0},{"length": 78,"attr": 0},{"length": 17,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 134,"distance": 228,"duration": 69,"instructions": "<b>安定门东大街</b>,骑行230米","name": "安定门东大街","path": "116.438855,39.955074;116.438895,39.955043;116.439096,39.954879;116.439588,39.954340;116.439619,39.954290;116.439659,39.954239;116.439709,39.954148;116.439729,39.954038;116.439749,39.953947;116.439799,39.953746;116.439829,39.953656;116.439859,39.953555;116.439910,39.953334;116.439950,39.953243","pois": [],"type": 5,"turn_type": "直行","restrictions_info": "","stepOriginLocation": {"lng": 116.43885450619,"lat": 39.95507362808},"stepDestinationLocation": {"lng": 116.4399498041,"lat": 39.953243422268},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 108,"attr": 0},{"length": 120,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 176,"distance": 298,"duration": 90,"instructions": "<b>东直门北大街</b>,骑行300米","name": "东直门北大街","path": "116.439950,39.953243;116.439970,39.953033;116.439960,39.952973;116.439959,39.952313;116.439949,39.952153;116.439949,39.952073;116.439949,39.951883;116.439938,39.951403;116.439938,39.951343;116.439928,39.951083;116.439928,39.951003;116.439928,39.950923;116.439938,39.950783;116.440008,39.950552","pois": [],"type": 5,"turn_type": "右前方转弯","restrictions_info": "","stepOriginLocation": {"lng": 116.4399498041,"lat": 39.953243422268},"stepDestinationLocation": {"lng": 116.44000819762,"lat": 39.950551665547},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 30,"attr": 0},{"length": 74,"attr": 0},{"length": 18,"attr": 0},{"length": 8,"attr": 0},{"length": 81,"attr": 0},{"length": 28,"attr": 0},{"length": 59,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 206,"distance": 398,"duration": 120,"instructions": "<b>东直门北大街</b>,骑行400米","name": "东直门北大街","path": "116.440008,39.950552;116.439988,39.950512;116.439887,39.950294;116.439887,39.950264;116.439887,39.950234;116.439877,39.950094;116.439857,39.949904;116.439867,39.949864;116.439857,39.949844;116.439867,39.949814;116.439897,39.949743;116.439917,39.949673;116.439927,39.949443;116.439937,39.949223;116.439997,39.949152;116.440007,39.948971;116.440027,39.948581;116.440067,39.947540;116.440077,39.947370;116.440097,39.947009","pois": [],"type": 5,"turn_type": "直行","restrictions_info": "","stepOriginLocation": {"lng": 116.44000819762,"lat": 39.950551665547},"stepDestinationLocation": {"lng": 116.4400965684,"lat": 39.947009299561},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 31,"attr": 0},{"length": 7,"attr": 0},{"length": 43,"attr": 0},{"length": 3,"attr": 0},{"length": 75,"attr": 0},{"length": 64,"attr": 0},{"length": 116,"attr": 0},{"length": 59,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 176,"distance": 780,"duration": 236,"instructions": "<b>东直门南大街</b>,骑行780米","name": "东直门南大街","path": "116.440097,39.947009;116.440097,39.946919;116.440107,39.946769;116.440106,39.946719;116.440106,39.946549;116.440116,39.946459;116.440116,39.946389;116.440126,39.946299;116.440126,39.946229;116.440136,39.946148;116.440136,39.946078;116.440136,39.946008;116.440136,39.945858;116.440146,39.945788;116.440146,39.945708;116.440156,39.945628;116.440156,39.945558;116.440156,39.945468;116.440166,39.944828;116.440166,39.944068;116.440166,39.943938;116.440166,39.943918;116.440176,39.943827;116.440196,39.943407;116.440216,39.943047;116.440215,39.943017;116.440215,39.942947;116.440215,39.942927;116.440215,39.942907;116.440215,39.942837;116.440215,39.942817;116.440215,39.942726;116.440215,39.942626;116.440215,39.942586;116.440235,39.941926;116.440265,39.941645;116.440225,39.941626;116.440205,39.941617;116.440185,39.941597;116.440165,39.941567;116.440155,39.941537;116.440165,39.941277;116.440155,39.940997;116.440175,39.940787;116.440175,39.940677;116.440185,39.940577;116.440185,39.940497;116.440185,39.940457;116.440185,39.940417;116.440184,39.940217;116.440184,39.940197;116.440164,39.940027","pois": [],"type": 5,"turn_type": "未知","restrictions_info": "","stepOriginLocation": {"lng": 116.4400965684,"lat": 39.947009299561},"stepDestinationLocation": {"lng": 116.44016433429,"lat": 39.940027130413},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 51,"attr": 0},{"length": 120,"attr": 0},{"length": 70,"attr": 0},{"length": 85,"attr": 0},{"length": 14,"attr": 0},{"length": 2,"attr": 0},{"length": 10,"attr": 0},{"length": 47,"attr": 0},{"length": 44,"attr": 0},{"length": 10,"attr": 0},{"length": 12,"attr": 0},{"length": 21,"attr": 0},{"length": 5,"attr": 0},{"length": 73,"attr": 0},{"length": 31,"attr": 0},{"length": 77,"attr": 0},{"length": 35,"attr": 0},{"length": 54,"attr": 0},{"length": 19,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 236,"distance": 227,"duration": 68,"instructions": "<b>东四十条桥</b>,骑行230米","name": "东四十条桥","path": "116.440164,39.940027;116.440134,39.940018;116.440094,39.939998;116.440023,39.939930;116.439933,39.939861;116.439893,39.939822;116.439872,39.939732;116.439862,39.939662;116.439862,39.939592;116.439872,39.939542;116.439903,39.939472;116.439923,39.939431;116.439973,39.939361;116.440094,39.939268;116.440214,39.939216;116.440255,39.939205;116.440335,39.939184;116.440375,39.939183;116.440426,39.939182;116.440567,39.939190;116.440687,39.939208;116.440828,39.939215;116.440868,39.939225;116.440909,39.939224;116.440979,39.939233;116.441029,39.939242;116.441080,39.939241;116.441160,39.939289;116.441201,39.939339;116.441261,39.939388;116.441341,39.939466;116.441362,39.939506;116.441372,39.939546","pois": [],"type": 5,"turn_type": "直行","restrictions_info": "","stepOriginLocation": {"lng": 116.44016433429,"lat": 39.940027130413},"stepDestinationLocation": {"lng": 116.44203557167,"lat": 39.939544070736},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 3,"attr": 0},{"length": 30,"attr": 0},{"length": 9,"attr": 0},{"length": 21,"attr": 0},{"length": 22,"attr": 0},{"length": 25,"attr": 0},{"length": 4,"attr": 0},{"length": 7,"attr": 0},{"length": 3,"attr": 0},{"length": 42,"attr": 0},{"length": 4,"attr": 0},{"length": 10,"attr": 0},{"length": 12,"attr": 0},{"length": 25,"attr": 0},{"length": 10,"attr": 0}]},{"leg_index": 0,"area": 0,"direction": 88,"distance": 901,"duration": 273,"instructions": "<b>工人体育场北路辅路</b>,骑行900米","name": "工人体育场北路辅路","path": "116.441372,39.939546;116.441915,39.939546;116.441965,39.939545;116.442036,39.939544;116.442176,39.939552;116.442277,39.939550;116.442498,39.939546;116.442629,39.939534;116.443001,39.939537;116.443142,39.939535;116.443876,39.939532;116.444309,39.939535;116.444953,39.939525;116.445214,39.939520;116.445435,39.939517;116.445636,39.939513;116.445777,39.939521;116.446300,39.939503;116.446592,39.939508;116.446692,39.939497;116.446773,39.939505;116.446833,39.939494;116.446853,39.939494;116.446903,39.939493;116.447014,39.939502;116.447064,39.939491;116.447758,39.939480;116.447909,39.939488;116.447979,39.939477;116.448371,39.939471;116.448783,39.939465;116.448773,39.939385;116.449155,39.939380;116.449265,39.939378;116.449436,39.939375;116.450260,39.939364;116.450371,39.939362;116.451164,39.939352;116.451375,39.939349;116.451857,39.939353","pois": [],"type": 5,"turn_type": "右转","restrictions_info": "","stepOriginLocation": {"lng": 116.44137158191,"lat": 39.939545698178},"stepDestinationLocation": {"lng": 116.45185740667,"lat": 39.93935288773},"stepOriginInstruction": "","stepDestinationInstruction": "","restrictions_status": 0,"links": [{"length": 56,"attr": 0},{"length": 40,"attr": 0},{"length": 54,"attr": 0},{"length": 63,"attr": 0},{"length": 91,"attr": 0},{"length": 23,"attr": 0},{"length": 19,"attr": 0},{"length": 74,"attr": 0},{"length": 210,"attr": 0},{"length": 9,"attr": 0},{"length": 42,"attr": 0},{"length": 15,"attr": 0},{"length": 70,"attr": 0},{"length":