全部服务产品
开发者频道
定价
登录
步行路线规划
下载开发文档
接口说明

根据起终点坐标检索符合条件的步行路线规划方案

API服务地址

https://api.map.baidu.com/direction/v2/walking?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,将提升路线规划的准确性。
使用地点检索服务获取uid
使用地点输入提示服务获取uid )

string
destination_uid

终点POI的uid(请尽量填写uid,将提升路线规划的准确性。
使用地点检索服务获取uid
使用地点输入提示服务获取uid )

string
coord_type输入坐标类型string

默认bd09ll
允许的值为:bd09ll(百度经纬度坐标)、bd09mc(百度墨卡托坐标)、gcj02(国测局加密坐标)、wgs84(gps设备获取的坐标)。

ret_coordtype输出坐标类型string

返回值的坐标类型,默认为百度经纬度坐标:bd09ll
可选值:
bd09ll:百度经纬度坐标
gcj02:国测局坐标

output表示输出类型,可设置为xml或jsonstring默认为json
ak

用户的访问权限,AK申请

string
sn

用户的权限签名,当AK设置为SN校验时,该参数必填 SN计算方法

string
timestamp时间戳,与SN配合使用int64SN存在时必填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_id行驶转向类型0 : 无效
1 : 直行
2 : 右前方转弯
3 : 右转
4 : 右后方转弯
5 : 左后方转弯
6 : 左转
7 : 左前方转弯
15 : 到斜对面,右前方转弯
17 : 到斜对面,左前方转弯
21 : 到斜对面,左前方转弯
23 : 到斜对面,右前方转弯
26 : 过马路左转
27 : 过马路右转
28 : 进入左侧道路继续向前
29 : 进入右侧道路继续向前
30 : 进入左侧道路往回走
31 : 进入右侧道路往回走
stepOrigin location
lng路段起点经度
lat路段起点纬度
stepDestination location
lng路段终点经度
lat路段终点纬度
linkslink信息(array)
lengthlink长度单位:米
attrlink属性0x01表示禁行
originLocation
lng路线起点经度
lat路线起点纬度
destinationLocation
lng路线终点经度
lat路线终点纬度
origin
originPt
lng起点经度
lat起点纬度
destination
destinationPt
lng终点经度
lat终点纬度
示例代码
填写您的AK

输入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(); // 初始化curl
curl_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); // 运行curl
if (!$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/walking';
// 构造请求参数
$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": "@2025 Baidu - Data",
"imageUrl": "http://api.map.baidu.com/images/copyright_logo.png"
}
},
"type": 2,
"result": {
"routes": [
{
"distance": 16748,
"duration": 15491,
"steps": [
{
"leg_index": 0,
"area": 0,
"direction": 176,
"distance": 197,
"duration": 168,
"instructions": "向正南方向出发,走200米,<b>右转</b>",
"name": "",
"path": "116.339966,40.011156;116.340006,40.010546;116.340017,40.010166;116.340067,40.009366",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.33996582559,
"lat": 40.011156487369
},
"stepDestinationLocation": {
"lng": 116.34006725922,
"lat": 40.009366288399
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 266,
"distance": 63,
"duration": 54,
"instructions": "走60米,<b>左转</b>",
"name": "",
"path": "116.340067,40.009366;116.339706,40.009359;116.339336,40.009351",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.34006725922,
"lat": 40.009366288399
},
"stepDestinationLocation": {
"lng": 116.33933564521,
"lat": 40.00935102624
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 172,
"distance": 118,
"duration": 101,
"instructions": "走120米,<b>左转</b>",
"name": "",
"path": "116.339336,40.009351;116.339346,40.009271;116.339376,40.008931;116.339426,40.008411;116.339437,40.008281",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.33933564521,
"lat": 40.00935102624
},
"stepDestinationLocation": {
"lng": 116.33943654736,
"lat": 40.008280580853
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 90,
"distance": 36,
"duration": 30,
"instructions": "走40米,<b>右转</b>",
"name": "",
"path": "116.339437,40.008281;116.339857,40.008278",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.33943654736,
"lat": 40.008280580853
},
"stepDestinationLocation": {
"lng": 116.33985749053,
"lat": 40.008277836781
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 176,
"distance": 251,
"duration": 215,
"instructions": "走250米,<b>左转</b>",
"name": "",
"path": "116.339857,40.008278;116.339868,40.008078;116.339868,40.007928;116.339908,40.007008;116.339918,40.006918;116.339908,40.006768;116.339898,40.006728;116.339859,40.006468;116.339758,40.006349;116.339628,40.006240;116.339498,40.006171;116.339448,40.006161",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.33985749053,
"lat": 40.008277836781
},
"stepDestinationLocation": {
"lng": 116.33944775675,
"lat": 40.006160923351
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 176,
"distance": 354,
"duration": 303,
"instructions": "走350米,<b>右转过马路继续向前</b>",
"name": "",
"path": "116.339448,40.006161;116.339458,40.005951;116.339468,40.005721;116.339468,40.005681;116.339478,40.005611;116.339509,40.004781;116.339499,40.004621;116.339529,40.004421;116.339529,40.004331;116.339569,40.003391;116.339569,40.003311;116.339579,40.003231;116.339489,40.003221;116.339399,40.003202;116.339369,40.003082",
"pois": [],
"type": 5,
"turn_type_id": 11,
"stepOriginLocation": {
"lng": 116.33944775675,
"lat": 40.006160923351
},
"stepDestinationLocation": {
"lng": 116.33936893746,
"lat": 40.003081935414
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 178,
"distance": 67,
"duration": 57,
"instructions": "走70米,<b>左前方转</b>",
"name": "",
"path": "116.339369,40.003082;116.339369,40.002482",
"pois": [],
"type": 5,
"turn_type_id": 7,
"stepOriginLocation": {
"lng": 116.33936893746,
"lat": 40.003081935414
},
"stepDestinationLocation": {
"lng": 116.33936915164,
"lat": 40.002482009537
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 156,
"distance": 168,
"duration": 164,
"instructions": "走170米,<b>左前方直行</b>进入<b>中关村东路辅路</b>",
"name": "",
"path": "116.339369,40.002482;116.339439,40.002332;116.339469,40.002181;116.339490,40.002061;116.339520,40.001821;116.339540,40.001731;116.339570,40.001521;116.339570,40.001431;116.339580,40.001311;116.339560,40.001141;116.339500,40.000961",
"pois": [],
"type": 5,
"turn_type_id": 9,
"stepOriginLocation": {
"lng": 116.33936915164,
"lat": 40.002482009537
},
"stepDestinationLocation": {
"lng": 116.33949991596,
"lat": 40.000961295945
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 176,
"distance": 59,
"duration": 50,
"instructions": "走60米,<b>直行</b>",
"name": "中关村东路辅路",
"path": "116.339500,40.000961;116.339570,40.000861;116.339570,40.000761;116.339590,40.000451",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.33949991596,
"lat": 40.000961295945
},
"stepDestinationLocation": {
"lng": 116.33959025089,
"lat": 40.00045074457
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 176,
"distance": 211,
"duration": 200,
"instructions": "走210米,<b>直行</b>进入<b>成府路辅路</b>",
"name": "中关村东路辅路",
"path": "116.339590,40.000451;116.339630,39.999751;116.339631,39.999491;116.339631,39.999271;116.339661,39.998700;116.339591,39.998571",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.33959025089,
"lat": 40.00045074457
},
"stepDestinationLocation": {
"lng": 116.33959061643,
"lat": 39.998570871747
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 90,
"distance": 19,
"duration": 16,
"instructions": "走20米,<b>过马路左前方转</b>",
"name": "成府路辅路",
"path": "116.339591,39.998571;116.339711,39.998570;116.339721,39.998490",
"pois": [],
"type": 5,
"turn_type_id": 17,
"stepOriginLocation": {
"lng": 116.33959061643,
"lat": 39.998570871747
},
"stepDestinationLocation": {
"lng": 116.33972091966,
"lat": 39.998490026993
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 180,
"distance": 140,
"duration": 150,
"instructions": "走140米,<b>直行</b>进入<b>中关村东路辅路</b>",
"name": "",
"path": "116.339721,39.998490;116.339721,39.998360;116.339721,39.998270;116.339731,39.998170;116.339751,39.997780;116.339751,39.997670;116.339761,39.997530;116.339771,39.997430;116.339761,39.997350;116.339751,39.997260;116.339751,39.997230",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.33972091966,
"lat": 39.998490026993
},
"stepDestinationLocation": {
"lng": 116.33975112485,
"lat": 39.99722988193
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 176,
"distance": 1694,
"duration": 1652,
"instructions": "走1.7公里,<b>左转</b>进入<b>知春路辅路</b>",
"name": "中关村东路辅路",
"path": "116.339751,39.997230;116.339761,39.996980;116.339781,39.996400;116.339791,39.996140;116.339801,39.996020;116.339811,39.995650;116.339831,39.995369;116.339831,39.995239;116.339831,39.995219;116.339821,39.995029;116.339851,39.994419;116.339881,39.993739;116.339901,39.993459;116.339931,39.993139;116.339981,39.992558;116.340031,39.991968;116.340041,39.991818;116.340051,39.991698;116.340051,39.991658;116.340061,39.991508;116.340071,39.991248;116.340081,39.991118;116.340101,39.990717;116.340101,39.990617;116.340091,39.990127;116.340081,39.989948;116.340121,39.989197;116.340121,39.989037;116.340121,39.989007;116.340131,39.988907;116.340131,39.988677;116.340131,39.988577;116.340131,39.988437;116.340180,39.987717;116.340250,39.986816;116.340270,39.986316;116.340290,39.985866;116.340300,39.985746;116.340320,39.985405;116.340330,39.985215;116.340349,39.984745;116.340359,39.984495;116.340379,39.983865;116.340389,39.983475;116.340399,39.983165;116.340399,39.983115;116.340409,39.983054;116.340488,39.982444;116.340518,39.982264;116.340538,39.982144;116.340548,39.982063;116.340548,39.982013;116.340548,39.982063",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.33975112485,
"lat": 39.99722988193
},
"stepDestinationLocation": {
"lng": 116.34054821435,
"lat": 39.982063452057
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 90,
"distance": 345,
"duration": 315,
"instructions": "走350米,<b>右转</b>进入<b>大钟寺东路</b>",
"name": "知春路辅路",
"path": "116.340548,39.982063;116.340789,39.982052;116.341350,39.982039;116.341830,39.981997;116.341941,39.981996;116.342051,39.981996;116.342171,39.981995;116.342301,39.981985;116.342451,39.981984;116.342632,39.982004;116.343092,39.982002;116.343252,39.982001;116.343372,39.982001;116.344103,39.981989;116.344133,39.981989;116.344303,39.981988;116.344594,39.981988",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.34054821435,
"lat": 39.982063452057
},
"stepDestinationLocation": {
"lng": 116.34459351775,
"lat": 39.981987879453
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 174,
"distance": 993,
"duration": 881,
"instructions": "走990米,<b>直行</b>进入<b>四道口路</b>",
"name": "大钟寺东路",
"path": "116.344594,39.981988;116.344603,39.981798;116.344693,39.981097;116.344753,39.980657;116.344793,39.980387;116.344793,39.980357;116.344803,39.980317;116.344872,39.979667;116.344922,39.979337;116.344932,39.979237;116.344952,39.979077;116.344952,39.978997;116.345001,39.978546;116.345011,39.978516;116.345021,39.978376;116.345031,39.978306;116.345061,39.978136;116.345091,39.977916;116.345111,39.977846;116.345280,39.977156;116.345330,39.976965;116.345420,39.976635;116.345430,39.976605;116.345460,39.976435;116.345470,39.976395;116.345490,39.976315;116.345500,39.976255;116.345530,39.976095;116.345579,39.975715;116.345599,39.975575;116.345599,39.975525;116.345619,39.975345;116.345629,39.975235;116.345649,39.975135;116.345689,39.974854;116.345708,39.974674;116.345768,39.974244;116.345778,39.974124;116.345798,39.973894;116.345827,39.973654;116.345847,39.973514;116.345857,39.973464;116.345897,39.973314;116.345927,39.973194;116.345957,39.973074",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.34459351775,
"lat": 39.981987879453
},
"stepDestinationLocation": {
"lng": 116.34595699314,
"lat": 39.97307365809
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 172,
"distance": 1212,
"duration": 1118,
"instructions": "走1.2公里,<b>左转</b>进入<b>学院南路</b>",
"name": "四道口路",
"path": "116.345957,39.973074;116.346037,39.972583;116.346056,39.972433;116.346076,39.972323;116.346225,39.971313;116.346305,39.971173;116.346475,39.970863;116.346575,39.970683;116.346595,39.970653;116.346615,39.970613;116.346715,39.970443;116.346805,39.970373;116.347104,39.970133;116.347384,39.969923;116.347664,39.969703;116.348223,39.969253;116.348483,39.969044;116.348702,39.968874;116.348822,39.968784;116.348902,39.968664;116.349182,39.968455;116.349281,39.968375;116.349601,39.968146;116.349691,39.968076;116.349840,39.967937;116.349960,39.967897;116.350389,39.967598;116.350509,39.967499;116.350749,39.967320;116.350938,39.967160;116.351018,39.967031;116.351138,39.966901;116.351257,39.966762;116.351387,39.966592;116.351606,39.966173;116.351706,39.965973;116.351766,39.965854;116.351885,39.965594;116.352164,39.965035;116.352274,39.964816;116.352672,39.963988;116.352692,39.963948;116.352722,39.963878",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.34595699314,
"lat": 39.97307365809
},
"stepDestinationLocation": {
"lng": 116.35272202159,
"lat": 39.96387806339
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 86,
"distance": 2163,
"duration": 2034,
"instructions": "走2.2公里,<b>过马路右转</b>",
"name": "学院南路",
"path": "116.352722,39.963878;116.352982,39.963900;116.353460,39.963883;116.353530,39.963913;116.354568,39.963910;116.354777,39.963912;116.356273,39.963894;116.356323,39.963895;116.356453,39.963906;116.356602,39.963897;116.356632,39.963897;116.357340,39.963894;116.357669,39.963897;116.357728,39.963828;116.357858,39.963819;116.357888,39.963820;116.358137,39.963822;116.358326,39.963894;116.358545,39.963886;116.359332,39.963935;116.359372,39.963946;116.360119,39.963964;116.360199,39.963895;116.360657,39.963891;116.360926,39.963884;116.361205,39.963888;116.361792,39.963815;116.362031,39.963778;116.362499,39.963785;116.363265,39.963795;116.363474,39.963798;116.363623,39.963880;116.364559,39.963894;116.365613,39.963920;116.366011,39.963936;116.366896,39.963940;116.367652,39.963953;116.367861,39.963956;116.367950,39.963957;116.369044,39.963966;116.371599,39.964000;116.372285,39.964012;116.372384,39.964014;116.373249,39.964030;116.374590,39.964034;116.374719,39.964037;116.375286,39.964037;116.376041,39.964051;116.376896,39.964067;116.377373,39.964085;116.377492,39.964098;116.377621,39.964100;116.377750,39.964102",
"pois": [],
"type": 5,
"turn_type_id": 27,
"stepOriginLocation": {
"lng": 116.35272202159,
"lat": 39.96387806339
},
"stepDestinationLocation": {
"lng": 116.3777501988,
"lat": 39.964102363606
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 180,
"distance": 7,
"duration": 26,
"instructions": "走10米,<b>直行</b>",
"name": "",
"path": "116.377750,39.964102;116.377760,39.964043",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.3777501988,
"lat": 39.964102363606
},
"stepDestinationLocation": {
"lng": 116.37776007707,
"lat": 39.964042525705
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 172,
"distance": 98,
"duration": 114,
"instructions": "走100米,<b>直行</b>进入<b>新街口外大街辅路</b>",
"name": "",
"path": "116.377760,39.964043;116.377770,39.963953;116.377809,39.963163",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.37776007707,
"lat": 39.964042525705
},
"stepDestinationLocation": {
"lng": 116.37780889961,
"lat": 39.963163140764
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 174,
"distance": 980,
"duration": 920,
"instructions": "走980米,<b>过马路左转</b>进入<b>德胜门西大街</b>",
"name": "新街口外大街辅路",
"path": "116.377809,39.963163;116.377848,39.962624;116.377868,39.962424;116.377878,39.962364;116.377888,39.962294;116.377887,39.962214;116.377927,39.961935;116.377956,39.961595;116.378035,39.960837;116.378144,39.960068;116.378163,39.959889;116.378163,39.959779;116.378183,39.959599;116.378203,39.959329;116.378271,39.958350;116.378291,39.958150;116.378360,39.957241;116.378380,39.957042;116.378389,39.956962;116.378429,39.956723;116.378468,39.956413;116.378528,39.956034;116.378538,39.955944;116.378557,39.955785;116.378547,39.955754;116.378448,39.955443;116.378467,39.955293;116.378477,39.955103;116.378487,39.955043;116.378487,39.954963;116.378507,39.954833;116.378527,39.954744;116.378546,39.954634;116.378576,39.954555;116.378586,39.954515;116.378616,39.954425",
"pois": [],
"type": 5,
"turn_type_id": 26,
"stepOriginLocation": {
"lng": 116.37780889961,
"lat": 39.963163140764
},
"stepDestinationLocation": {
"lng": 116.37861579542,
"lat": 39.95442532785
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 86,
"distance": 562,
"duration": 501,
"instructions": "走560米,<b>直行</b>进入<b>德胜门桥</b>",
"name": "德胜门西大街",
"path": "116.378616,39.954425;116.378815,39.954469;116.378934,39.954491;116.378964,39.954492;116.379689,39.954555;116.380017,39.954581;116.380256,39.954595;116.380295,39.954596;116.380524,39.954620;116.380733,39.954634;116.380832,39.954636;116.381379,39.954665;116.381458,39.954667;116.381806,39.954683;116.381975,39.954696;116.382035,39.954697;116.382383,39.954703;116.382522,39.954705;116.383019,39.954734;116.383158,39.954747;116.383327,39.954759;116.383466,39.954722;116.383596,39.954694;116.383804,39.954678;116.383973,39.954680;116.384013,39.954681;116.384162,39.954694;116.384301,39.954686;116.384699,39.954703;116.385037,39.954708;116.385127,39.954710",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.37861579542,
"lat": 39.95442532785
},
"stepDestinationLocation": {
"lng": 116.38512666605,
"lat": 39.954709773285
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 100,
"distance": 75,
"duration": 64,
"instructions": "走80米,<b>直行</b>进入<b>德胜门内大街</b>",
"name": "德胜门桥",
"path": "116.385127,39.954710;116.385564,39.954627;116.385584,39.954597;116.385644,39.954548;116.385723,39.954509;116.385783,39.954490;116.385823,39.954481;116.385912,39.954463",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.38512666605,
"lat": 39.954709773285
},
"stepDestinationLocation": {
"lng": 116.38591204805,
"lat": 39.954462539274
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 104,
"distance": 50,
"duration": 42,
"instructions": "走50米,<b>直行</b>进入<b>鼓楼西大街</b>",
"name": "德胜门内大街",
"path": "116.385912,39.954463;116.386151,39.954376;116.386449,39.954331",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.38591204805,
"lat": 39.954462539274
},
"stepDestinationLocation": {
"lng": 116.3864489787,
"lat": 39.954331113961
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 98,
"distance": 1664,
"duration": 1466,
"instructions": "走1.7公里,<b>右前方转</b>进入<b>地安门外大街</b>",
"name": "鼓楼西大街",
"path": "116.386449,39.954331;116.386797,39.954287;116.386857,39.954278;116.386996,39.954260;116.387125,39.954242;116.387274,39.954204;116.387443,39.954147;116.387583,39.954079;116.387672,39.954030;116.387772,39.953972;116.387861,39.953913;116.388189,39.953688;116.388448,39.953512;116.388736,39.953336;116.389233,39.953063;116.389671,39.952859;116.389900,39.952762;116.389950,39.952733;116.390358,39.952539;116.390795,39.952345;116.391064,39.952228;116.391193,39.952170;116.391522,39.952024;116.392179,39.951722;116.392507,39.951566;116.392677,39.951488;116.392746,39.951459;116.393264,39.951175;116.393304,39.951156;116.393891,39.950842;116.393951,39.950813;116.394011,39.950774;116.394329,39.950587;116.394359,39.950567;116.394728,39.950341;116.394947,39.950204;116.395325,39.949927;116.395764,39.949612;116.395953,39.949473;116.396112,39.949355;116.396381,39.949157;116.396800,39.948831;116.396929,39.948742;116.397169,39.948564;116.397358,39.948416;116.397508,39.948307;116.397527,39.948297;116.397657,39.948248;116.397936,39.948030;116.398016,39.947981;116.398455,39.947674;116.398654,39.947526;116.398784,39.947447;116.398844,39.947417;116.398983,39.947358;116.399223,39.947260;116.399262,39.947240;116.399332,39.947220;116.399672,39.947152;116.399881,39.947124;116.399971,39.947114;116.400200,39.947086;116.400470,39.947057;116.400580,39.947048;116.401129,39.947021;116.401278,39.947001;116.401438,39.946972;116.401598,39.946913;116.401678,39.946883;116.401777,39.946834;116.401907,39.946754;116.402027,39.946675;116.402257,39.946526;116.402287,39.946496;116.402317,39.946476;116.402337,39.946446",
"pois": [],
"type": 5,
"turn_type_id": 2,
"stepOriginLocation": {
"lng": 116.3864489787,
"lat": 39.954331113961
},
"stepDestinationLocation": {
"lng": 116.40233650873,
"lat": 39.9464458398
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 158,
"distance": 374,
"duration": 320,
"instructions": "走370米,<b>过马路左转</b>进入<b>帽儿胡同</b>",
"name": "地安门外大街",
"path": "116.402337,39.946446;116.402366,39.946406;116.402376,39.946356;116.402386,39.946326;116.402406,39.945586;116.402416,39.945546;116.402446,39.944766;116.402446,39.944706;116.402465,39.944326;116.402475,39.944176;116.402495,39.943816;116.402505,39.943676;116.402515,39.943466;116.402535,39.943136;116.402535,39.943096",
"pois": [],
"type": 5,
"turn_type_id": 26,
"stepOriginLocation": {
"lng": 116.40233650873,
"lat": 39.9464458398
},
"stepDestinationLocation": {
"lng": 116.40253484554,
"lat": 39.943096101941
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 90,
"distance": 230,
"duration": 197,
"instructions": "走230米,<b>右转</b>",
"name": "帽儿胡同",
"path": "116.402535,39.943096;116.402565,39.943086;116.402924,39.943047;116.402964,39.943048;116.403424,39.942999;116.403863,39.942920;116.404773,39.942782;116.405173,39.942712",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.40253484554,
"lat": 39.943096101941
},
"stepDestinationLocation": {
"lng": 116.40517254788,
"lat": 39.942712385663
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 174,
"distance": 11,
"duration": 9,
"instructions": "走10米,<b>左前方转</b>进入<b>东不压桥胡同</b>",
"name": "",
"path": "116.405173,39.942712;116.405183,39.942612",
"pois": [],
"type": 5,
"turn_type_id": 7,
"stepOriginLocation": {
"lng": 116.40517254788,
"lat": 39.942712385663
},
"stepDestinationLocation": {
"lng": 116.4051825121,
"lat": 39.942612386002
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 140,
"distance": 267,
"duration": 228,
"instructions": "走270米,<b>左转</b>",
"name": "东不压桥胡同",
"path": "116.405183,39.942612;116.405232,39.942552;116.405262,39.942482;116.405342,39.942433;116.405442,39.942303;116.405502,39.942213;116.405582,39.941963;116.405592,39.941883;116.405572,39.941453;116.405602,39.941223;116.405802,39.940953;116.406252,39.940483;116.406302,39.940443",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.4051825121,
"lat": 39.942612386002
},
"stepDestinationLocation": {
"lng": 116.40630171439,
"lat": 39.940442856638
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 90,
"distance": 16,
"duration": 13,
"instructions": "走20米,<b>右转</b>进入<b>东不压桥胡同</b>",
"name": "",
"path": "116.406302,39.940443;116.406362,39.940453;116.406482,39.940463",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.40630171439,
"lat": 39.940442856638
},
"stepDestinationLocation": {
"lng": 116.40648172033,
"lat": 39.940462853466
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 148,
"distance": 76,
"duration": 85,
"instructions": "走80米,<b>左转</b>进入<b>地安门东大街</b>",
"name": "东不压桥胡同",
"path": "116.406482,39.940463;116.406502,39.940413;116.406752,39.939983;116.406802,39.939893;116.406822,39.939833",
"pois": [],
"type": 5,
"turn_type_id": 6,
"stepOriginLocation": {
"lng": 116.40648172033,
"lat": 39.940462853466
},
"stepDestinationLocation": {
"lng": 116.40682163106,
"lat": 39.939832717834
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 90,
"distance": 302,
"duration": 278,
"instructions": "走300米,<b>右转过马路继续向前</b>",
"name": "地安门东大街",
"path": "116.406822,39.939833;116.406882,39.939833;116.407822,39.939842;116.408032,39.939841;116.408652,39.939840;116.408913,39.939850;116.409333,39.939849;116.409523,39.939848;116.409613,39.939848;116.409763,39.939847;116.410064,39.939846;116.410224,39.939846;116.410274,39.939756",
"pois": [],
"type": 5,
"turn_type_id": 11,
"stepOriginLocation": {
"lng": 116.40682163106,
"lat": 39.939832717834
},
"stepDestinationLocation": {
"lng": 116.41027408586,
"lat": 39.939755532623
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 88,
"distance": 426,
"duration": 445,
"instructions": "走430米,<b>直行</b>进入<b>张自忠路</b>",
"name": "地安门东大街",
"path": "116.410274,39.939756;116.410354,39.939755;116.410454,39.939755;116.410655,39.939754;116.410765,39.939754;116.410805,39.939753;116.410995,39.939763;116.411055,39.939772;116.411296,39.939771;116.411526,39.939770;116.411917,39.939768;116.412127,39.939757;116.412217,39.939757;116.412458,39.939735;116.412728,39.939734;116.412939,39.939722;116.412989,39.939722;116.413269,39.939710;116.413360,39.939710;116.413570,39.939698;116.413680,39.939698;116.413871,39.939686;116.413971,39.939676;116.414191,39.939674;116.414282,39.939673;116.414582,39.939661;116.414743,39.939650;116.414773,39.939650;116.414963,39.939658;116.414994,39.939658;116.415034,39.939658;116.415164,39.939656;116.415264,39.939646",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.41027408586,
"lat": 39.939755532623
},
"stepDestinationLocation": {
"lng": 116.41526431622,
"lat": 39.93964568041
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 92,
"distance": 713,
"duration": 681,
"instructions": "走710米,<b>直行</b>进入<b>东四十条</b>",
"name": "张自忠路",
"path": "116.415264,39.939646;116.415535,39.939633;116.415856,39.939641;116.416448,39.939635;116.416809,39.939642;116.416990,39.939650;116.417200,39.939648;116.417331,39.939647;116.417421,39.939646;116.417531,39.939655;116.417702,39.939653;116.417903,39.939651;116.418083,39.939649;116.418344,39.939647;116.418615,39.939654;116.418886,39.939651;116.418926,39.939650;116.419057,39.939659;116.419127,39.939658;116.419258,39.939657;116.419459,39.939654;116.419539,39.939653;116.419730,39.939651;116.419830,39.939660;116.419930,39.939659;116.420031,39.939658;116.420412,39.939653;116.420613,39.939660;116.420824,39.939658;116.420965,39.939656;116.421236,39.939663;116.421346,39.939671;116.421477,39.939670;116.421547,39.939679;116.421598,39.939678;116.421658,39.939677;116.421849,39.939685;116.422050,39.939702;116.422251,39.939709;116.422301,39.939719;116.422351,39.939718;116.422602,39.939745;116.422733,39.939753;116.422813,39.939762;116.422994,39.939779;116.423105,39.939788;116.423175,39.939787;116.423275,39.939795;116.423507,39.939812;116.423607,39.939811",
"pois": [],
"type": 5,
"turn_type_id": 1,
"stepOriginLocation": {
"lng": 116.41526431622,
"lat": 39.93964568041
},
"stepDestinationLocation": {
"lng": 116.42360700291,
"lat": 39.939810562478
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 92,
"distance": 1385,
"duration": 1307,
"instructions": "走1.4公里,<b>右转</b>进入<b>东四十条桥</b>",
"name": "东四十条",
"path": "116.423607,39.939811;116.423858,39.939807;116.424130,39.939803;116.424310,39.939800;116.424381,39.939799;116.424461,39.939808;116.424622,39.939806;116.424803,39.939813;116.424893,39.939812;116.425094,39.939809;116.425235,39.939807;116.425577,39.939801;116.425808,39.939798;116.426050,39.939794;116.426230,39.939801;116.426975,39.939789;116.427005,39.939789;116.427075,39.939788;116.427467,39.939782;116.427507,39.939781;116.428091,39.939771;116.428252,39.939769;116.428302,39.939768;116.428372,39.939767;116.428503,39.939765;116.428624,39.939763;116.428724,39.939761;116.429036,39.939756;116.429760,39.939743;116.429861,39.939752;116.429931,39.939750;116.430102,39.939747;116.430294,39.939734;116.430424,39.939732;116.430525,39.939740;116.430746,39.939736;116.431058,39.939721;116.431159,39.939719;116.431269,39.939717;116.431370,39.939725;116.431450,39.939724;116.431682,39.939720;116.431964,39.939715;116.432245,39.939710;116.432406,39.939707;116.432617,39.939703;116.432668,39.939712;116.432768,39.939701;116.433080,39.939695;116.433191,39.939693;116.433292,39.939691;116.433473,39.939688;116.433674,39.939684;116.433976,39.939679;116.434177,39.939675;116.434509,39.939669;116.434892,39.939662;116.435093,39.939669;116.435193,39.939667;116.435344,39.939664;116.435445,39.939662;116.436079,39.939651;116.436149,39.939650;116.436481,39.939644;116.436592,39.939642;116.436763,39.939639;116.437015,39.939634;116.437357,39.939628;116.437447,39.939626;116.437498,39.939625;116.437649,39.939622;116.437669,39.939622;116.437709,39.939621;116.437800,39.939620;116.437880,39.939618;116.438021,39.939626;116.438142,39.939623;116.438283,39.939621;116.438786,39.939612;116.439057,39.939597;116.439198,39.939594;116.439319,39.939582;116.439540,39.939558;116.439671,39.939556;116.439762,39.939554;116.439872,39.939542",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.42360700291,
"lat": 39.939810562478
},
"stepDestinationLocation": {
"lng": 116.43987244833,
"lat": 39.939542311537
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 152,
"distance": 165,
"duration": 161,
"instructions": "走170米,过<b>环岛</b>,<b>左转</b>进入<b>工人体育场北路辅路</b>",
"name": "东四十条桥",
"path": "116.439872,39.939542;116.439903,39.939472;116.439923,39.939431;116.439973,39.939361;116.440094,39.939268;116.440124,39.939258;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.440999,39.939242;116.441029,39.939252;116.441090,39.939271;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_id": 6,
"stepOriginLocation": {
"lng": 116.43987244833,
"lat": 39.939542311537
},
"stepDestinationLocation": {
"lng": 116.44137158191,
"lat": 39.939545698178
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 86,
"distance": 759,
"duration": 670,
"instructions": "走760米,<b>右转</b>进入<b>工人体育场西路</b>",
"name": "工人体育场北路辅路",
"path": "116.441372,39.939546;116.441512,39.939483;116.442025,39.939474;116.442277,39.939460;116.442508,39.939456;116.442700,39.939453;116.443132,39.939435;116.443635,39.939437;116.443876,39.939442;116.444027,39.939440;116.444319,39.939445;116.444963,39.939454;116.445214,39.939440;116.445435,39.939437;116.445636,39.939423;116.445777,39.939431;116.446300,39.939413;116.446521,39.939419;116.446853,39.939404;116.446893,39.939403;116.447014,39.939402;116.447124,39.939400;116.447577,39.939393;116.448371,39.939401;116.448773,39.939385;116.449155,39.939380;116.449265,39.939378;116.449436,39.939375;116.450260,39.939364",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.44137158191,
"lat": 39.939545698178
},
"stepDestinationLocation": {
"lng": 116.4502601705,
"lat": 39.939363985364
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 184,
"distance": 305,
"duration": 291,
"instructions": "走310米,<b>过马路左转</b>",
"name": "工人体育场西路",
"path": "116.450260,39.939364;116.450260,39.939184;116.450260,39.939094;116.450260,39.938984;116.450260,39.938774;116.450200,39.938605;116.450200,39.937955;116.450210,39.936735;116.450280,39.936694;116.450340,39.936683",
"pois": [],
"type": 5,
"turn_type_id": 26,
"stepOriginLocation": {
"lng": 116.4502601705,
"lat": 39.939363985364
},
"stepDestinationLocation": {
"lng": 116.45034022937,
"lat": 39.936682777552
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 94,
"distance": 172,
"duration": 147,
"instructions": "走170米,<b>右转</b>",
"name": "",
"path": "116.450340,39.936683;116.450642,39.936659;116.450973,39.936624;116.451094,39.936623;116.451526,39.936607;116.451897,39.936592;116.452349,39.936597",
"pois": [],
"type": 5,
"turn_type_id": 3,
"stepOriginLocation": {
"lng": 116.45034022937,
"lat": 39.936682777552
},
"stepDestinationLocation": {
"lng": 116.45234919428,
"lat": 39.936596620681
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
},
{
"leg_index": 0,
"area": 0,
"direction": 168,
"distance": 21,
"duration": 18,
"instructions": "走20米,到达<b>终点</b>",
"name": "",
"path": "116.452349,39.936597;116.452389,39.936406",
"pois": [],
"type": 5,
"turn_type_id": 0,
"stepOriginLocation": {
"lng": 116.45234919428,
"lat": 39.936596620681
},
"stepDestinationLocation": {
"lng": 116.45238935614,
"lat": 39.936406122801
},
"stepOriginInstruction": "",
"stepDestinationInstruction": ""
}
],
"originLocation": {
"lng": 116.3399758399,
"lat": 40.011166422479
},
"destinationLocation": {
"lng": 116.45238935614,
"lat": 39.936406122801
}
}
],
"origin": {
"area_id": 0,
"cname": "",
"uid": "",
"wd": "",
"originPt": {
"lng": 116.33929505188,
"lat": 40.011157363344
}
},
"destination": {
"area_id": 0,
"cname": "",
"uid": "",
"wd": "",
"destinationPt": {
"lng": 116.45255341058,
"lat": 39.936401378723
}
}
}
}
在线运行
参数备注必选
origin
40.01116,116.339303
destination
39.936404,116.452562

上一篇

骑行路线规划

下一篇

公交路线规划

本篇文章对您是否有帮助?