高德地图 API
  1. 路径规划
高德地图 API
  • 概述
  • 入门指南
  • 开发指南
    • 获取Key
    • 错误码说明
    • 流量限制说明
    • 天气对照表
    • 更新日志
    • 相关下载
    • 路径规划
      • 概述
      • 步行路径规划
        GET
      • 公交路径规划
        GET
      • 骑行路径规划
        GET
      • 驾车路径规划
        GET
      • 未来路径规划
        GET
      • 距离测量
        GET
    • 路径规划2.0
      • 概述
      • 驾车路线规划
      • 步行路线规划
      • 骑行路线规划
      • 电动车路线规划
      • 公交路线规划
    • 行政区域查询
      • 概述
      • 行政区域查询
    • 地理/逆地理编码
      • 地理编码
      • 逆地理编码
    • 搜索POI
      • 概述
      • 关键字搜索
      • 周边搜索
      • 多边形搜索
      • ID查询
      • AOI边界查询
    • 搜索POI 2.0
      • 概述
      • 关键字搜索
      • 周边搜索
      • 多边形区域搜索
      • ID搜索
    • 交通事件
      • 概述
      • 交通事件查询
    • IP定位
      • 概述
      • IP定位
    • 静态地图
      • 概述
      • 请求参数及用法
    • 坐标转换
      • 概述
      • 坐标转换
    • 天气查询
      • 概述
      • 天气查询
    • 输入提示
      • 概述
      • 输入提示
    • 交通态势
      • 概述
      • 矩形区域交通态势
      • 圆形区域交通态势
      • 指定线路交通态势
    • 轨迹纠偏
      • 概述
      • 轨迹纠偏
    • 三方数据空间检索接口
      • 概述
      • 关键字搜索
      • 多边形搜索
      • 周边搜索
      • 属性筛选
  1. 路径规划

公交路径规划

GET
https://restapi.amap.com/v3/direction/transit/integrated
接口简介:
公交路径规划 API 可以规划综合各类公共(火车、公交、地铁)交通方式的通勤方案,并且返回通勤方案的数据。
parameters 代表的参数包括必填参数和可选参数。所有参数均使用和号字符(&)进行分隔。下面的列表枚举了这些参数及其使用规则。
步行方案信息列表
名称含义规则说明
origin起点坐标
destination终点坐标
distance每段线路步行距离单位:米
duration步行预计时间单位:秒
steps步行路段列表
instruction此段路的行走介绍
road路的名字
distance此段路的距离
duration此段路预计消耗时间单位:秒
polyline此段路的坐标
action步行主要动作
assistant_action步行辅助动作
公交方案信息列表
名称含义规则说明
buslines步行路段列表
departure_stop此段起乘站信息格式如:中关村
name站点名字
id站点id
location站点经纬度
arrival_stop此段下车站格式如:中关村
name站点名字
id站点id
location站点经纬度
name公交路线名称格式如:445路(南十里居--地铁望京西站)
id公交路线id
type公交类型格式如:地铁线路
distance公交行驶距离单位:米
duration公交预计行驶时间单位:秒
polyline此路段坐标集格式为坐标串,如:116.481247,39.990704;116.481270,39.990726
start_time首班车时间格式如:0600,代表06:00
end_time末班车时间格式如:2300,代表23:00
via_num此段途经公交站数
via_stops此段途经公交站点列表
name途径公交站点信息
id公交站点编号
location公交站点经纬度
出入口信息列表
name入口名称
location入口经纬度
火车换乘信息列表
名称说明
id线路id编号
time该线路车段耗时
name线路名称
trip线路车次号
distance该item换乘段的行车总距离
type线路车次类型
departure_stop火车始发站信息
id上车站点ID
name上车站点名称
location上车站点经纬度
adcode上车站点所在城市的adcode
time上车点发车时间
start是否始发站,1表示为始发站,0表示非始发站
arrival_stop火车到站信息
id下车站点ID
name下车站点名称
location下车站点经纬度
adcode下车站点所在城市的adcode
time到站时间,如大于24:00,则表示跨天
end是否为终点站,1表示为终点站,0表示非终点站
via_stop途径站点信息,extensions=all时返回
name途径站点的名称
id途径站点的ID
location途径站点的坐标点
time途径站点的进站时间,如大于24:00,则表示跨天
wait途径站点的停靠时间,单位:分钟
alters聚合的备选方案,extensions=all时返回
id备选方案ID
name备选线路名称
spaces仓位及价格信息
code仓位编码
cost仓位费用
火车路线类型表
线路类型代码公共交通工具备注线路类型代码公共交通工具备注
2010普客火车2015T字头的特快火车
2011G字头的高铁火车2016K字头的快车火车
2012D字头的动车火车2017L字头,Y字头的临时火车
2013C字头的城际火车2018S字头的郊区线火车
2014Z字头的直达特快火车
仓位级别表
仓位级别仓位备注仓位级别仓位备注
0不分仓位级别20火车高级软卧下铺
9特等座21火车商务座
10火车硬座22长途汽车座席
11火车软座23长途汽车卧席上铺
12火车软座1等座24长途汽车卧席中铺
13火车软座2等座25长途汽车卧席下铺
14火车硬卧上铺30飞机经济舱
15火车硬卧中铺31飞机商务舱
16火车硬卧下铺40客轮经济舱
17火车软卧上铺41客轮3等舱
18火车软卧下铺42客轮2等舱
19火车高级软卧上铺43客轮豪华舱
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://restapi.amap.com/v3/direction/transit/integrated?origin&destination&city&Key='
响应示例响应示例
{
  "status": "1",
  "info": "OK",
  "infocode": "10000",
  "count": "5",
  "route": {
    "origin": "116.481028,39.989643",
    "destination": "116.434446,39.90816",
    "distance": "14248",
    "taxi_cost": "39",
    "transits": [
      {
        "cost": "5.0",
        "duration": "2695",
        "nightflag": "0",
        "walking_distance": "1326",
        "distance": "14184",
        "missed": "0",
        "segments": [
          {
            "taxi": [],
            "walking": {
              "origin": "116.480888,39.989372",
              "destination": "116.481880,39.984676",
              "distance": "795",
              "duration": "681",
              "steps": [
                {
                  "instruction": "步行16米左转",
                  "road": [],
                  "distance": "16",
                  "duration": [],
                  "polyline": "116.480888,39.989372;116.480904,39.989353;116.480888,39.989227",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行59米右转",
                  "road": [],
                  "distance": "59",
                  "duration": [],
                  "polyline": "116.480888,39.989223;116.480934,39.989201;116.480957,39.989185;116.481155,39.989059;116.481430,39.988880",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行202米右转",
                  "road": [],
                  "distance": "202",
                  "duration": [],
                  "polyline": "116.481430,39.988876;116.481377,39.988808;116.481308,39.988720;116.481270,39.988636;116.481201,39.988499;116.481194,39.988468;116.481163,39.988415;116.480080,39.987389",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行96米左转",
                  "road": [],
                  "distance": "96",
                  "duration": [],
                  "polyline": "116.480080,39.987381;116.479889,39.987400;116.479843,39.987408;116.479820,39.987423;116.479790,39.987442;116.479645,39.987556;116.479591,39.987583;116.479568,39.987587;116.479561,39.987587;116.479370,39.987408;116.479218,39.987278",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行29米右转",
                  "road": [],
                  "distance": "29",
                  "duration": [],
                  "polyline": "116.479218,39.987274;116.479301,39.987240;116.479362,39.987202;116.479385,39.987175;116.479477,39.987110",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行19米左转",
                  "road": [],
                  "distance": "19",
                  "duration": [],
                  "polyline": "116.479477,39.987106;116.479393,39.986946",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行100米向左后方行走",
                  "road": [],
                  "distance": "100",
                  "duration": [],
                  "polyline": "116.479393,39.986938;116.479607,39.986801;116.479897,39.986607;116.480019,39.986519;116.480064,39.986485;116.480293,39.986328",
                  "action": "向左后方行走",
                  "assistant_action": []
                },
                {
                  "instruction": "步行274米到达望京南",
                  "road": [],
                  "distance": "274",
                  "duration": [],
                  "polyline": "116.480293,39.986324;116.480286,39.986397;116.481506,39.985611;116.481743,39.985119;116.481514,39.984917;116.481880,39.984676",
                  "action": [],
                  "assistant_action": "到达望京南"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "望京南",
                    "id": "900000028907006",
                    "location": "116.481880,39.984670"
                  },
                  "arrival_stop": {
                    "name": "大望路",
                    "id": "900000028907014",
                    "location": "116.477927,39.909559"
                  },
                  "name": "地铁14号线(善各庄--张郭庄)",
                  "id": "900000028907",
                  "type": "地铁线路",
                  "distance": "9611",
                  "duration": "1176",
                  "polyline": "116.481880,39.984670;116.482823,39.984053;116.488543,39.980572;116.489175,39.979868;116.489492,39.978889;116.490207,39.972899;116.490215,39.972143;116.490213,39.971026;116.490211,39.969934;116.490021,39.968518;116.489779,39.967513;116.489129,39.966526;116.488571,39.965737;116.487219,39.964446;116.485854,39.963353;116.485110,39.962661;116.484777,39.962188;116.484670,39.961740;116.484675,39.961242;116.484927,39.960128;116.485452,39.958983;116.485919,39.958375;116.486406,39.957754;116.486874,39.957044;116.487123,39.956611;116.487249,39.956382;116.487357,39.956037;116.487501,39.955531;116.487501,39.954840;116.487265,39.953919;116.486826,39.953138;116.485989,39.952274;116.485602,39.951896;116.485141,39.951600;116.484433,39.951263;116.483768,39.951016;116.481579,39.950136;116.478897,39.949050;116.477298,39.948285;116.476707,39.947887;116.476064,39.947443;116.475421,39.946862;116.475088,39.946270;116.474992,39.945982;116.474967,39.945337;116.474952,39.944891;116.474947,39.944132;116.474947,39.943425;116.474954,39.943112;116.474978,39.942763;116.475010,39.942448;116.475058,39.942138;116.475159,39.941796;116.475315,39.941401;116.475460,39.941112;116.475878,39.940444;116.476671,39.939671;116.477079,39.939276;116.477433,39.938832;116.477723,39.938281;116.477873,39.937647;116.478157,39.936218;116.478256,39.935493;116.478294,39.934844;116.478289,39.934500;116.478291,39.933492;116.478291,39.932483;116.478201,39.928301;116.478114,39.924144;116.478115,39.923556;116.478113,39.922779;116.478098,39.921217;116.478064,39.915605;116.478017,39.914392;116.477974,39.913577;116.477947,39.912873;116.477931,39.912009;116.477927,39.909559",
                  "bustimetag": "0",
                  "start_time": [],
                  "end_time": [],
                  "via_num": "5",
                  "via_stops": [
                    {
                      "name": "将台",
                      "id": "900000028907008",
                      "location": "116.490213,39.971026"
                    },
                    {
                      "name": "东风北桥",
                      "id": "900000028907009",
                      "location": "116.485919,39.958375"
                    },
                    {
                      "name": "枣营",
                      "id": "900000028907010",
                      "location": "116.474947,39.944132"
                    },
                    {
                      "name": "朝阳公园",
                      "id": "900000028907011",
                      "location": "116.478291,39.933492"
                    },
                    {
                      "name": "金台路",
                      "id": "900000028907012",
                      "location": "116.478115,39.923556"
                    }
                  ]
                }
              ]
            },
            "entrance": {
              "name": "A西北口",
              "location": "116.480286,39.986401"
            },
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.477928,39.909557",
              "destination": "116.475784,39.908287",
              "distance": "322",
              "duration": "276",
              "steps": [
                {
                  "instruction": "步行322米到达大望路",
                  "road": [],
                  "distance": "322",
                  "duration": [],
                  "polyline": "116.477928,39.909557;116.477928,39.909557;116.477928,39.909336;116.477928,39.909184;116.477692,39.909184;116.477684,39.908543;116.477684,39.908459;116.477577,39.908463;116.476585,39.908459;116.476585,39.908287;116.475784,39.908287;116.475784,39.908287",
                  "action": [],
                  "assistant_action": "到达大望路"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "大望路",
                    "id": "110100023111004",
                    "location": "116.475783,39.908287"
                  },
                  "arrival_stop": {
                    "name": "建国门",
                    "id": "110100023111007",
                    "location": "116.434648,39.908555"
                  },
                  "name": "地铁1号线八通线(环球度假区--古城)",
                  "id": "110100023111",
                  "type": "地铁线路",
                  "distance": "3247",
                  "duration": "383",
                  "polyline": "116.475783,39.908287;116.474560,39.908287;116.463240,39.908400;116.460845,39.908425;116.459707,39.908421;116.458485,39.908425;116.451534,39.908471;116.450330,39.908472;116.449019,39.908469;116.443005,39.908557;116.435982,39.908554;116.434648,39.908555",
                  "bustimetag": "0",
                  "start_time": "0509",
                  "end_time": "2255",
                  "via_num": "2",
                  "via_stops": [
                    {
                      "name": "国贸",
                      "id": "110100023111005",
                      "location": "116.459707,39.908421"
                    },
                    {
                      "name": "永安里",
                      "id": "110100023111006",
                      "location": "116.450330,39.908472"
                    }
                  ]
                }
              ]
            },
            "entrance": [],
            "exit": {
              "name": "C西南口",
              "location": "116.434357,39.908081"
            },
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.434647,39.908550",
              "destination": "116.434448,39.908073",
              "distance": "209",
              "duration": "179",
              "steps": [
                {
                  "instruction": "步行209米",
                  "road": [],
                  "distance": "209",
                  "duration": [],
                  "polyline": "116.434647,39.908550;116.435028,39.908550;116.435036,39.908363;116.435402,39.907993;116.434357,39.907993;116.434357,39.908073;116.434448,39.908073",
                  "action": [],
                  "assistant_action": []
                }
              ]
            },
            "bus": {
              "buslines": []
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          }
        ]
      },
      {
        "cost": "5.0",
        "duration": "3318",
        "nightflag": "0",
        "walking_distance": "1684",
        "distance": "12105",
        "missed": "0",
        "segments": [
          {
            "taxi": [],
            "walking": {
              "origin": "116.480888,39.989372",
              "destination": "116.482010,39.983799",
              "distance": "851",
              "duration": "729",
              "steps": [
                {
                  "instruction": "步行16米左转",
                  "road": [],
                  "distance": "16",
                  "duration": [],
                  "polyline": "116.480888,39.989372;116.480904,39.989353;116.480888,39.989227",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行292米右转",
                  "road": [],
                  "distance": "292",
                  "duration": [],
                  "polyline": "116.480888,39.989223;116.480934,39.989201;116.480957,39.989185;116.481155,39.989059;116.481430,39.988880;116.481468,39.988857;116.482574,39.988125;116.483223,39.987663;116.483322,39.987564;116.483421,39.987434",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿望京东路辅路步行193米往前走",
                  "road": "望京东路辅路",
                  "distance": "193",
                  "duration": [],
                  "polyline": "116.483421,39.987431;116.483368,39.987389;116.482628,39.986755;116.482590,39.986717;116.482147,39.986290;116.482018,39.986069",
                  "action": "往前走",
                  "assistant_action": []
                },
                {
                  "instruction": "沿望京东路步行93米左转",
                  "road": "望京东路",
                  "distance": "93",
                  "duration": [],
                  "polyline": "116.482010,39.986065;116.481293,39.985435",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿广顺南大街步行161米右转",
                  "road": "广顺南大街",
                  "distance": "161",
                  "duration": [],
                  "polyline": "116.481285,39.985428;116.481407,39.985340;116.481758,39.985130;116.482056,39.984932;116.482376,39.984715;116.482430,39.984676;116.482727,39.984470",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿京密路步行96米到达西八间房",
                  "road": "京密路",
                  "distance": "96",
                  "duration": [],
                  "polyline": "116.482727,39.984467;116.482590,39.984337;116.482010,39.983799",
                  "action": [],
                  "assistant_action": "到达西八间房"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "西八间房",
                    "id": "110100014471069",
                    "location": "116.481914,39.983728"
                  },
                  "arrival_stop": {
                    "name": "东直门枢纽站",
                    "id": "110100014471059",
                    "location": "116.438555,39.942574"
                  },
                  "name": "850路(马坡花园--东直门枢纽站)",
                  "id": "110100014471",
                  "type": "普通公交线路",
                  "distance": "6894",
                  "duration": "1392",
                  "polyline": "116.481914,39.983728;116.481228,39.983082;116.479648,39.981667;116.478090,39.980265;116.478021,39.980200;116.477982,39.980165;116.477205,39.979431;116.477049,39.979288;116.477001,39.979245;116.476888,39.979145;116.476662,39.978945;116.476562,39.978854;116.476558,39.978850;116.476047,39.978384;116.475033,39.977477;116.473875,39.976426;116.473284,39.975884;116.472764,39.975428;116.472394,39.975101;116.471857,39.974623;116.471316,39.974146;116.469620,39.972601;116.469240,39.972258;116.468279,39.971399;116.467866,39.971024;116.466992,39.970225;116.466520,39.969801;116.465468,39.968900;116.465361,39.968755;116.464959,39.968379;116.464937,39.968358;116.464830,39.968261;116.462813,39.966432;116.462749,39.966378;116.460796,39.964597;116.460115,39.963980;116.460013,39.963895;116.459406,39.963342;116.458081,39.962135;116.457915,39.961985;116.457336,39.961454;116.456655,39.960880;116.456043,39.960472;116.455528,39.960215;116.455077,39.959994;116.454584,39.959742;116.454434,39.959640;116.454225,39.959480;116.452428,39.957838;116.451795,39.957275;116.450925,39.956502;116.450668,39.956282;116.449987,39.955692;116.449681,39.955413;116.449284,39.955043;116.449150,39.954920;116.448962,39.954743;116.448308,39.954169;116.447573,39.953606;116.447015,39.953198;116.446655,39.952930;116.446341,39.952691;116.446259,39.952626;116.446068,39.952500;116.445360,39.952005;116.444718,39.951528;116.444740,39.951376;116.444878,39.951211;116.444957,39.951137;116.445269,39.950955;116.446059,39.950434;116.445760,39.950043;116.445269,39.949601;116.444648,39.949028;116.444340,39.948754;116.443381,39.947908;116.443082,39.947661;116.443008,39.947600;116.442830,39.947452;116.442517,39.947205;116.442235,39.946966;116.442066,39.946823;116.441454,39.946285;116.441398,39.946233;116.440747,39.945625;116.440629,39.945530;116.440226,39.945156;116.440191,39.945117;116.439970,39.944918;116.439727,39.944692;116.439340,39.944362;116.438880,39.943928;116.438750,39.943772;116.438681,39.943659;116.438585,39.943429;116.438542,39.943077;116.438542,39.942895;116.438555,39.942574",
                  "bustimetag": "0",
                  "start_time": "0430",
                  "end_time": "2030",
                  "via_num": "3",
                  "via_stops": [
                    {
                      "name": "京密路丽都饭店",
                      "id": "110100014471049",
                      "location": "116.476558,39.978850"
                    },
                    {
                      "name": "三元桥",
                      "id": "110100014471050",
                      "location": "116.455077,39.959994"
                    },
                    {
                      "name": "左家庄",
                      "id": "110100014471051",
                      "location": "116.446341,39.952691"
                    }
                  ]
                }
              ]
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.438560,39.942574",
              "destination": "116.433548,39.941090",
              "distance": "632",
              "duration": "541",
              "steps": [
                {
                  "instruction": "沿东直门外斜街步行152米右转",
                  "road": "东直门外斜街",
                  "distance": "152",
                  "duration": [],
                  "polyline": "116.438560,39.942574;116.438568,39.942467;116.438599,39.941502;116.438614,39.941193",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿东直门外大街步行273米右转",
                  "road": "东直门外大街",
                  "distance": "273",
                  "duration": [],
                  "polyline": "116.438614,39.941189;116.437622,39.941162;116.437508,39.941162;116.437439,39.941162;116.437096,39.941162;116.436371,39.941154;116.435394,39.941154",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行207米到达东直门",
                  "road": [],
                  "distance": "207",
                  "duration": [],
                  "polyline": "116.435387,39.941151;116.435371,39.941357;116.435249,39.941357;116.435112,39.941364;116.434921,39.941364;116.434761,39.941364;116.434105,39.941364;116.433548,39.941364;116.433548,39.941090",
                  "action": [],
                  "assistant_action": "到达东直门"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "东直门",
                    "id": "110100023098006",
                    "location": "116.433551,39.941088"
                  },
                  "arrival_stop": {
                    "name": "建国门",
                    "id": "110100023098009",
                    "location": "116.435782,39.908561"
                  },
                  "name": "地铁2号线内环(积水潭--积水潭)",
                  "id": "110100023098",
                  "type": "地铁线路",
                  "distance": "3527",
                  "duration": "483",
                  "polyline": "116.433551,39.941088;116.433550,39.940383;116.434129,39.934872;116.434133,39.933801;116.434145,39.932844;116.434264,39.930433;116.434506,39.925386;116.434508,39.924487;116.434506,39.923583;116.435075,39.914397;116.435099,39.914046;116.435487,39.912270;116.435749,39.911169;116.435760,39.911088;116.435797,39.910784;116.435801,39.910497;116.435797,39.910344;116.435780,39.909630;116.435782,39.908561",
                  "bustimetag": "0",
                  "start_time": "0504",
                  "end_time": "2303",
                  "via_num": "2",
                  "via_stops": [
                    {
                      "name": "东四十条",
                      "id": "110100023098007",
                      "location": "116.434133,39.933801"
                    },
                    {
                      "name": "朝阳门",
                      "id": "110100023098008",
                      "location": "116.434508,39.924487"
                    }
                  ]
                }
              ]
            },
            "entrance": {
              "name": "E口",
              "location": "116.435371,39.941357"
            },
            "exit": {
              "name": "C西南口",
              "location": "116.434357,39.908073"
            },
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.435783,39.908558",
              "destination": "116.434448,39.908073",
              "distance": "201",
              "duration": "172",
              "steps": [
                {
                  "instruction": "步行201米",
                  "road": [],
                  "distance": "201",
                  "duration": [],
                  "polyline": "116.435783,39.908558;116.435783,39.908558;116.435791,39.907993;116.435402,39.907993;116.434357,39.907993;116.434357,39.908073;116.434448,39.908073",
                  "action": [],
                  "assistant_action": []
                }
              ]
            },
            "bus": {
              "buslines": []
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          }
        ]
      },
      {
        "cost": "3.0",
        "duration": "4746",
        "nightflag": "0",
        "walking_distance": "1314",
        "distance": "13815",
        "missed": "0",
        "segments": [
          {
            "taxi": [],
            "walking": {
              "origin": "116.480888,39.989372",
              "destination": "116.482010,39.983799",
              "distance": "851",
              "duration": "729",
              "steps": [
                {
                  "instruction": "步行16米左转",
                  "road": [],
                  "distance": "16",
                  "duration": [],
                  "polyline": "116.480888,39.989372;116.480904,39.989353;116.480888,39.989227",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行292米右转",
                  "road": [],
                  "distance": "292",
                  "duration": [],
                  "polyline": "116.480888,39.989223;116.480934,39.989201;116.480957,39.989185;116.481155,39.989059;116.481430,39.988880;116.481468,39.988857;116.482574,39.988125;116.483223,39.987663;116.483322,39.987564;116.483421,39.987434",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿望京东路辅路步行193米往前走",
                  "road": "望京东路辅路",
                  "distance": "193",
                  "duration": [],
                  "polyline": "116.483421,39.987431;116.483368,39.987389;116.482628,39.986755;116.482590,39.986717;116.482147,39.986290;116.482018,39.986069",
                  "action": "往前走",
                  "assistant_action": []
                },
                {
                  "instruction": "沿望京东路步行93米左转",
                  "road": "望京东路",
                  "distance": "93",
                  "duration": [],
                  "polyline": "116.482010,39.986065;116.481293,39.985435",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿广顺南大街步行161米右转",
                  "road": "广顺南大街",
                  "distance": "161",
                  "duration": [],
                  "polyline": "116.481285,39.985428;116.481407,39.985340;116.481758,39.985130;116.482056,39.984932;116.482376,39.984715;116.482430,39.984676;116.482727,39.984470",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿京密路步行96米到达西八间房",
                  "road": "京密路",
                  "distance": "96",
                  "duration": [],
                  "polyline": "116.482727,39.984467;116.482590,39.984337;116.482010,39.983799",
                  "action": [],
                  "assistant_action": "到达西八间房"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "西八间房",
                    "id": "110100013750005",
                    "location": "116.482010,39.983819"
                  },
                  "arrival_stop": {
                    "name": "北京站东街",
                    "id": "110100013750022",
                    "location": "116.434707,39.905176"
                  },
                  "name": "403路(环行铁道--北京站东街)",
                  "id": "110100013750",
                  "type": "普通公交线路",
                  "distance": "12501",
                  "duration": "3620",
                  "polyline": "116.482010,39.983819;116.481229,39.983083;116.479652,39.981667;116.478091,39.980267;116.478021,39.980202;116.477984,39.980165;116.477206,39.979435;116.477050,39.979290;116.477002,39.979247;116.476889,39.979146;116.476664,39.978947;116.476468,39.978768;116.476047,39.978384;116.475033,39.977477;116.473875,39.976426;116.473472,39.976063;116.473281,39.975881;116.472760,39.975425;116.472391,39.975100;116.471858,39.974622;116.471315,39.974145;116.469609,39.972595;116.469236,39.972257;116.468277,39.971398;116.467865,39.971020;116.466992,39.970221;116.466519,39.969800;116.466046,39.969379;116.465573,39.968963;116.465469,39.968854;116.465360,39.968754;116.464957,39.968377;116.464935,39.968355;116.464826,39.968260;116.463537,39.967088;116.463533,39.967088;116.462812,39.966428;116.462747,39.966376;116.460794,39.964596;116.460378,39.964219;116.460115,39.963980;116.460013,39.963895;116.459406,39.963342;116.458081,39.962135;116.457915,39.961985;116.457336,39.961454;116.456655,39.960880;116.456043,39.960472;116.455528,39.960215;116.455078,39.959995;116.454584,39.959742;116.454434,39.959640;116.454225,39.959480;116.452428,39.957838;116.452143,39.957656;116.452063,39.957623;116.451998,39.957607;116.451929,39.957602;116.451859,39.957607;116.451800,39.957623;116.451741,39.957656;116.451719,39.957677;116.451703,39.957699;116.451682,39.957752;116.451682,39.957806;116.451693,39.957838;116.451746,39.957902;116.452090,39.958224;116.452503,39.958595;116.452540,39.958621;116.452631,39.958659;116.452712,39.958664;116.453018,39.958627;116.453087,39.958584;116.453511,39.958278;116.454090,39.957935;116.454890,39.957387;116.455061,39.957275;116.455078,39.957264;116.455721,39.956846;116.455770,39.956813;116.455764,39.956744;116.455791,39.956685;116.456038,39.956449;116.456623,39.956046;116.457218,39.955644;116.457774,39.955277;116.458715,39.954657;116.459433,39.954206;116.459171,39.954094;116.458897,39.953868;116.458736,39.953729;116.458500,39.953530;116.458125,39.953187;116.458030,39.953099;116.457951,39.953025;116.457891,39.952977;116.457635,39.952747;116.457444,39.952565;116.457274,39.952422;116.456884,39.952066;116.456862,39.952044;116.456276,39.951502;116.456155,39.951398;116.455603,39.950907;116.455477,39.950760;116.455456,39.950612;116.455473,39.950326;116.455460,39.950074;116.455460,39.949965;116.455456,39.949609;116.455451,39.949440;116.455451,39.949436;116.455442,39.949217;116.455442,39.949110;116.455458,39.948397;116.455212,39.948365;116.455078,39.948348;116.454225,39.948241;116.454015,39.948209;116.452272,39.947968;116.452122,39.947946;116.451858,39.947900;116.451301,39.947801;116.450303,39.947656;116.450185,39.947565;116.450287,39.947367;116.450346,39.947125;116.450368,39.946932;116.450373,39.946685;116.450389,39.946455;116.450384,39.946288;116.450378,39.945897;116.450373,39.945704;116.450373,39.945671;116.450368,39.944384;116.450368,39.944046;116.450363,39.943939;116.450365,39.943928;116.450365,39.943303;116.450360,39.942517;116.450356,39.941280;116.450356,39.941085;116.450360,39.940343;116.450365,39.940243;116.450386,39.939891;116.450391,39.939822;116.450399,39.939692;116.450399,39.938442;116.450399,39.938407;116.450391,39.936623;116.450391,39.936593;116.450365,39.935299;116.450356,39.934566;116.450321,39.933767;116.450317,39.933611;116.450310,39.933025;116.450298,39.931016;116.450298,39.930962;116.450293,39.929771;116.450293,39.927835;116.450288,39.927561;116.450287,39.927529;116.450282,39.926976;116.450287,39.925984;116.450286,39.925829;116.450286,39.925612;116.450282,39.924314;116.450282,39.924119;116.450286,39.922947;116.450273,39.922821;116.450286,39.921931;116.450286,39.921853;116.450286,39.921693;116.450282,39.921298;116.450282,39.920994;116.450282,39.920990;116.450299,39.920412;116.450299,39.919744;116.450299,39.919314;116.450295,39.918702;116.450295,39.918411;116.450295,39.918381;116.450291,39.917964;116.450286,39.917739;116.450299,39.916775;116.450291,39.916055;116.450308,39.915260;116.450308,39.914970;116.450308,39.914705;116.450312,39.914271;116.450312,39.914145;116.450308,39.914002;116.450298,39.913587;116.450293,39.913399;116.450293,39.913330;116.450287,39.913233;116.450271,39.912482;116.450228,39.911908;116.450223,39.911814;116.450196,39.911302;116.450185,39.911146;116.450191,39.910733;116.450196,39.910240;116.450196,39.910186;116.450191,39.909585;116.450196,39.908662;116.450207,39.908539;116.449616,39.908550;116.449273,39.908545;116.447074,39.908571;116.445888,39.908555;116.445143,39.908560;116.444757,39.908563;116.444756,39.908566;116.444408,39.908571;116.443850,39.908582;116.443828,39.908582;116.442739,39.908582;116.441967,39.908582;116.441017,39.908593;116.440980,39.908593;116.439531,39.908603;116.438582,39.908614;116.437718,39.908614;116.436683,39.908609;116.436088,39.908620;116.435739,39.908620;116.435401,39.908630;116.435272,39.908684;116.435218,39.908727;116.435181,39.908780;116.435165,39.908818;116.435160,39.908925;116.435133,39.909612;116.435133,39.909714;116.435154,39.909837;116.435197,39.909896;116.435251,39.909945;116.435310,39.909971;116.435374,39.909982;116.435433,39.909971;116.435508,39.909939;116.435621,39.909859;116.435631,39.909692;116.435653,39.909267;116.435750,39.907423;116.435835,39.906109;116.435878,39.905808;116.435916,39.905513;116.435835,39.905374;116.435798,39.905326;116.435755,39.905288;116.435664,39.905240;116.435562,39.905208;116.435395,39.905186;116.434805,39.905176;116.434707,39.905176",
                  "bustimetag": "0",
                  "start_time": [],
                  "end_time": [],
                  "via_num": "18",
                  "via_stops": [
                    {
                      "name": "京密路丽都饭店",
                      "id": "110100013750006",
                      "location": "116.476468,39.978768"
                    },
                    {
                      "name": "四元桥东",
                      "id": "110100013750007",
                      "location": "116.473472,39.976063"
                    },
                    {
                      "name": "四元桥西",
                      "id": "110100013750008",
                      "location": "116.463533,39.967088"
                    },
                    {
                      "name": "三元桥东站",
                      "id": "110100013750009",
                      "location": "116.460378,39.964219"
                    },
                    {
                      "name": "三元桥南",
                      "id": "110100013750010",
                      "location": "116.457774,39.955277"
                    },
                    {
                      "name": "三元东桥西",
                      "id": "110100013750011",
                      "location": "116.458030,39.953099"
                    },
                    {
                      "name": "新源街",
                      "id": "110100013750024",
                      "location": "116.455451,39.949436"
                    },
                    {
                      "name": "新源南路西口",
                      "id": "110100013750025",
                      "location": "116.451858,39.947900"
                    },
                    {
                      "name": "塔园村",
                      "id": "110100013750026",
                      "location": "116.450363,39.943939"
                    },
                    {
                      "name": "幸福三村",
                      "id": "110100013750015",
                      "location": "116.450365,39.940243"
                    },
                    {
                      "name": "工人体育场",
                      "id": "110100013750016",
                      "location": "116.450310,39.933025"
                    },
                    {
                      "name": "朝阳医院",
                      "id": "110100013750017",
                      "location": "116.450288,39.927561"
                    },
                    {
                      "name": "东大桥路口北",
                      "id": "110100013750018",
                      "location": "116.450286,39.925829"
                    },
                    {
                      "name": "东大桥路口南",
                      "id": "110100013750027",
                      "location": "116.450282,39.920994"
                    },
                    {
                      "name": "芳草地",
                      "id": "110100013750023",
                      "location": "116.450295,39.918411"
                    },
                    {
                      "name": "芳草地南",
                      "id": "110100013750019",
                      "location": "116.450308,39.914002"
                    },
                    {
                      "name": "永安里路口北",
                      "id": "110100013750020",
                      "location": "116.450223,39.911814"
                    },
                    {
                      "name": "日坛路",
                      "id": "110100013750021",
                      "location": "116.444757,39.908563"
                    }
                  ]
                }
              ]
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.434532,39.905174",
              "destination": "116.434448,39.908073",
              "distance": "463",
              "duration": "396",
              "steps": [
                {
                  "instruction": "沿北京站东街步行96米左转",
                  "road": "北京站东街",
                  "distance": "96",
                  "duration": [],
                  "polyline": "116.434532,39.905174;116.434807,39.905174;116.435394,39.905182;116.435532,39.905205;116.435562,39.905209;116.435661,39.905239",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿建国门南大街步行320米左转",
                  "road": "建国门南大街",
                  "distance": "320",
                  "duration": [],
                  "polyline": "116.435661,39.905239;116.435600,39.905720;116.435562,39.906017;116.435516,39.906342;116.435463,39.906509;116.435425,39.906620;116.435364,39.906723;116.435211,39.906971;116.435150,39.907093;116.435081,39.907284;116.435051,39.907452;116.435028,39.907951;116.435013,39.908073",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行47米",
                  "road": [],
                  "distance": "47",
                  "duration": [],
                  "polyline": "116.435005,39.908073;116.434891,39.908073;116.434448,39.908073",
                  "action": [],
                  "assistant_action": []
                }
              ]
            },
            "bus": {
              "buslines": []
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          }
        ]
      },
      {
        "cost": "5.0",
        "duration": "3632",
        "nightflag": "0",
        "walking_distance": "1577",
        "distance": "11943",
        "missed": "0",
        "segments": [
          {
            "taxi": [],
            "walking": {
              "origin": "116.480888,39.989372",
              "destination": "116.482010,39.983799",
              "distance": "851",
              "duration": "729",
              "steps": [
                {
                  "instruction": "步行16米左转",
                  "road": [],
                  "distance": "16",
                  "duration": [],
                  "polyline": "116.480888,39.989372;116.480904,39.989353;116.480888,39.989227",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行292米右转",
                  "road": [],
                  "distance": "292",
                  "duration": [],
                  "polyline": "116.480888,39.989223;116.480934,39.989201;116.480957,39.989185;116.481155,39.989059;116.481430,39.988880;116.481468,39.988857;116.482574,39.988125;116.483223,39.987663;116.483322,39.987564;116.483421,39.987434",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿望京东路辅路步行193米往前走",
                  "road": "望京东路辅路",
                  "distance": "193",
                  "duration": [],
                  "polyline": "116.483421,39.987431;116.483368,39.987389;116.482628,39.986755;116.482590,39.986717;116.482147,39.986290;116.482018,39.986069",
                  "action": "往前走",
                  "assistant_action": []
                },
                {
                  "instruction": "沿望京东路步行93米左转",
                  "road": "望京东路",
                  "distance": "93",
                  "duration": [],
                  "polyline": "116.482010,39.986065;116.481293,39.985435",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿广顺南大街步行161米右转",
                  "road": "广顺南大街",
                  "distance": "161",
                  "duration": [],
                  "polyline": "116.481285,39.985428;116.481407,39.985340;116.481758,39.985130;116.482056,39.984932;116.482376,39.984715;116.482430,39.984676;116.482727,39.984470",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿京密路步行96米到达西八间房",
                  "road": "京密路",
                  "distance": "96",
                  "duration": [],
                  "polyline": "116.482727,39.984467;116.482590,39.984337;116.482010,39.983799",
                  "action": [],
                  "assistant_action": "到达西八间房"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "西八间房",
                    "id": "110100013746008",
                    "location": "116.481866,39.983689"
                  },
                  "arrival_stop": {
                    "name": "东直门枢纽站",
                    "id": "110100013746017",
                    "location": "116.437494,39.942423"
                  },
                  "name": "401路(南十里居--东直门枢纽站)",
                  "id": "110100013746",
                  "type": "普通公交线路",
                  "distance": "6839",
                  "duration": "1798",
                  "polyline": "116.481866,39.983689;116.481228,39.983082;116.479648,39.981667;116.478090,39.980265;116.478021,39.980200;116.477982,39.980165;116.477205,39.979431;116.477049,39.979288;116.477001,39.979245;116.476888,39.979145;116.476662,39.978945;116.476393,39.978698;116.476389,39.978698;116.476046,39.978381;116.475030,39.977474;116.473872,39.976424;116.473442,39.976029;116.473281,39.975881;116.472760,39.975425;116.472391,39.975100;116.471858,39.974622;116.471315,39.974145;116.469618,39.972600;116.469236,39.972257;116.468277,39.971398;116.467865,39.971020;116.466992,39.970221;116.466519,39.969800;116.465469,39.968898;116.465360,39.968754;116.464957,39.968377;116.464935,39.968355;116.464826,39.968260;116.463546,39.967097;116.462813,39.966432;116.462749,39.966378;116.460796,39.964597;116.460585,39.964406;116.460354,39.964196;116.460115,39.963980;116.460013,39.963895;116.459406,39.963342;116.458081,39.962135;116.457915,39.961985;116.457336,39.961454;116.456655,39.960880;116.456043,39.960472;116.455528,39.960215;116.455075,39.959993;116.454584,39.959742;116.454434,39.959640;116.454225,39.959480;116.452428,39.957838;116.451795,39.957275;116.450925,39.956502;116.450668,39.956282;116.450195,39.955872;116.449987,39.955690;116.449679,39.955412;116.449149,39.954918;116.448850,39.954640;116.448307,39.954167;116.447569,39.953602;116.447014,39.953194;116.446654,39.952930;116.446289,39.952652;116.446285,39.952652;116.446259,39.952626;116.446068,39.952500;116.445360,39.952005;116.444718,39.951528;116.444740,39.951376;116.444878,39.951211;116.444957,39.951137;116.445269,39.950955;116.446059,39.950434;116.445760,39.950043;116.445269,39.949601;116.444844,39.949206;116.444649,39.949030;116.444343,39.948756;116.443383,39.947908;116.443083,39.947662;116.443008,39.947603;116.442831,39.947453;116.442520,39.947206;116.442235,39.946970;116.442069,39.946825;116.441457,39.946288;116.441398,39.946235;116.440749,39.945629;116.440631,39.945532;116.440229,39.945156;116.440191,39.945119;116.439971,39.944921;116.439730,39.944695;116.439344,39.944363;116.438882,39.943928;116.438754,39.943773;116.438684,39.943660;116.438587,39.943429;116.438544,39.943081;116.438544,39.942898;116.438598,39.941498;116.438614,39.941192;116.437622,39.941160;116.437504,39.941160;116.437498,39.941772;116.437494,39.942423",
                  "bustimetag": "0",
                  "start_time": "0500",
                  "end_time": "2300",
                  "via_num": "8",
                  "via_stops": [
                    {
                      "name": "京密路丽都饭店",
                      "id": "110100013746009",
                      "location": "116.476389,39.978698"
                    },
                    {
                      "name": "四元桥东",
                      "id": "110100013746010",
                      "location": "116.473442,39.976029"
                    },
                    {
                      "name": "四元桥西",
                      "id": "110100013746011",
                      "location": "116.463546,39.967097"
                    },
                    {
                      "name": "三元桥东站",
                      "id": "110100013746012",
                      "location": "116.460354,39.964196"
                    },
                    {
                      "name": "三元桥",
                      "id": "110100013746013",
                      "location": "116.455075,39.959993"
                    },
                    {
                      "name": "三元桥西站",
                      "id": "110100013746014",
                      "location": "116.450195,39.955872"
                    },
                    {
                      "name": "左家庄",
                      "id": "110100013746015",
                      "location": "116.446285,39.952652"
                    },
                    {
                      "name": "左家庄桥西",
                      "id": "110100013746016",
                      "location": "116.444844,39.949206"
                    }
                  ]
                }
              ]
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.437492,39.942421",
              "destination": "116.433548,39.941090",
              "distance": "525",
              "duration": "450",
              "steps": [
                {
                  "instruction": "步行139米右转",
                  "road": [],
                  "distance": "139",
                  "duration": [],
                  "polyline": "116.437492,39.942421;116.437500,39.942287;116.437500,39.941776;116.437508,39.941162",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿东直门外大街步行179米右转",
                  "road": "东直门外大街",
                  "distance": "179",
                  "duration": [],
                  "polyline": "116.437508,39.941158;116.437439,39.941158;116.437096,39.941158;116.436371,39.941154;116.435394,39.941154",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行207米到达东直门",
                  "road": [],
                  "distance": "207",
                  "duration": [],
                  "polyline": "116.435387,39.941151;116.435371,39.941357;116.435249,39.941357;116.435112,39.941364;116.434921,39.941364;116.434761,39.941364;116.434105,39.941364;116.433548,39.941364;116.433548,39.941090",
                  "action": [],
                  "assistant_action": "到达东直门"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "东直门",
                    "id": "110100023098006",
                    "location": "116.433551,39.941088"
                  },
                  "arrival_stop": {
                    "name": "建国门",
                    "id": "110100023098009",
                    "location": "116.435782,39.908561"
                  },
                  "name": "地铁2号线内环(积水潭--积水潭)",
                  "id": "110100023098",
                  "type": "地铁线路",
                  "distance": "3527",
                  "duration": "483",
                  "polyline": "116.433551,39.941088;116.433550,39.940383;116.434129,39.934872;116.434133,39.933801;116.434145,39.932844;116.434264,39.930433;116.434506,39.925386;116.434508,39.924487;116.434506,39.923583;116.435075,39.914397;116.435099,39.914046;116.435487,39.912270;116.435749,39.911169;116.435760,39.911088;116.435797,39.910784;116.435801,39.910497;116.435797,39.910344;116.435780,39.909630;116.435782,39.908561",
                  "bustimetag": "0",
                  "start_time": "0504",
                  "end_time": "2303",
                  "via_num": "2",
                  "via_stops": [
                    {
                      "name": "东四十条",
                      "id": "110100023098007",
                      "location": "116.434133,39.933801"
                    },
                    {
                      "name": "朝阳门",
                      "id": "110100023098008",
                      "location": "116.434508,39.924487"
                    }
                  ]
                }
              ]
            },
            "entrance": {
              "name": "E口",
              "location": "116.435371,39.941357"
            },
            "exit": {
              "name": "C西南口",
              "location": "116.434357,39.908073"
            },
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.435783,39.908558",
              "destination": "116.434448,39.908073",
              "distance": "201",
              "duration": "172",
              "steps": [
                {
                  "instruction": "步行201米",
                  "road": [],
                  "distance": "201",
                  "duration": [],
                  "polyline": "116.435783,39.908558;116.435783,39.908558;116.435791,39.907993;116.435402,39.907993;116.434357,39.907993;116.434357,39.908073;116.434448,39.908073",
                  "action": [],
                  "assistant_action": []
                }
              ]
            },
            "bus": {
              "buslines": []
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          }
        ]
      },
      {
        "cost": "4.0",
        "duration": "5271",
        "nightflag": "0",
        "walking_distance": "703",
        "distance": "13882",
        "missed": "0",
        "segments": [
          {
            "taxi": [],
            "walking": {
              "origin": "116.480888,39.989372",
              "destination": "116.479095,39.989342",
              "distance": "236",
              "duration": "202",
              "steps": [
                {
                  "instruction": "步行16米右转",
                  "road": [],
                  "distance": "16",
                  "duration": [],
                  "polyline": "116.480888,39.989372;116.480904,39.989353;116.480888,39.989227",
                  "action": "右转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行124米左转",
                  "road": [],
                  "distance": "124",
                  "duration": [],
                  "polyline": "116.480888,39.989223;116.480461,39.989506;116.480232,39.989655;116.480019,39.989792;116.479897,39.989864;116.479767,39.989956",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行91米向左前方行走",
                  "road": [],
                  "distance": "91",
                  "duration": [],
                  "polyline": "116.479767,39.989956;116.479698,39.989906;116.479630,39.989834;116.479568,39.989773;116.479317,39.989635;116.479294,39.989613;116.479065,39.989433;116.479126,39.989376",
                  "action": "向左前方行走",
                  "assistant_action": []
                },
                {
                  "instruction": "沿阜通东大街步行5米到达阜通东大街东口",
                  "road": "阜通东大街",
                  "distance": "5",
                  "duration": [],
                  "polyline": "116.479134,39.989372;116.479095,39.989342",
                  "action": [],
                  "assistant_action": "到达阜通东大街东口"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "阜通东大街东口",
                    "id": "110100013995009",
                    "location": "116.479062,39.989306"
                  },
                  "arrival_stop": {
                    "name": "三元桥南",
                    "id": "110100013995018",
                    "location": "116.457795,39.955260"
                  },
                  "name": "536路(屏翠西路东口--左家庄)",
                  "id": "110100013995",
                  "type": "普通公交线路",
                  "distance": "6160",
                  "duration": "1591",
                  "polyline": "116.479062,39.989306;116.478697,39.988978;116.477796,39.988201;116.477635,39.988061;116.477302,39.987788;116.477184,39.987696;116.477050,39.987589;116.476766,39.987364;116.476629,39.987254;116.476546,39.987187;116.476149,39.986897;116.475977,39.986768;116.474888,39.985996;116.474867,39.985980;116.474368,39.985599;116.474041,39.985325;116.473740,39.985057;116.473574,39.984918;116.473549,39.984894;116.473386,39.984751;116.472641,39.984070;116.472496,39.983931;116.472415,39.983855;116.472195,39.983657;116.471664,39.983169;116.470849,39.982428;116.470527,39.982133;116.470311,39.981941;116.470119,39.981769;116.469202,39.980937;116.467823,39.979693;116.467678,39.979559;116.467335,39.979247;116.466740,39.978711;116.466268,39.978287;116.466059,39.978101;116.465812,39.977878;116.464753,39.976923;116.463924,39.976168;116.463212,39.975586;116.462856,39.975326;116.462439,39.975056;116.461207,39.974314;116.459766,39.973481;116.459067,39.973082;116.456801,39.971732;116.456263,39.971393;116.455838,39.971085;116.455768,39.971016;116.455421,39.970707;116.455417,39.970707;116.455295,39.970599;116.455074,39.970399;116.454010,39.969440;116.453898,39.969332;116.453164,39.968663;116.453186,39.968442;116.453459,39.968260;116.454444,39.967604;116.454748,39.967400;116.454880,39.967316;116.455078,39.967178;116.455533,39.966866;116.455700,39.966754;116.456623,39.966148;116.456746,39.966067;116.456891,39.965976;116.456950,39.965944;116.457164,39.965788;116.457285,39.965707;116.457427,39.965611;116.458586,39.964823;116.459809,39.964018;116.460013,39.963895;116.459406,39.963342;116.458484,39.962501;116.458081,39.962135;116.457915,39.961985;116.457336,39.961454;116.456655,39.960880;116.456043,39.960472;116.455528,39.960215;116.455078,39.959995;116.454761,39.959839;116.454300,39.959571;116.452293,39.957720;116.452138,39.957650;116.451998,39.957607;116.451929,39.957602;116.451859,39.957607;116.451800,39.957623;116.451741,39.957656;116.451719,39.957677;116.451687,39.957725;116.451682,39.957779;116.451682,39.957806;116.451703,39.957860;116.451746,39.957902;116.452090,39.958224;116.452503,39.958595;116.452540,39.958621;116.452631,39.958659;116.452712,39.958664;116.453018,39.958627;116.453087,39.958584;116.453511,39.958278;116.454090,39.957935;116.454890,39.957387;116.455061,39.957275;116.455078,39.957264;116.455721,39.956846;116.455770,39.956813;116.455764,39.956744;116.455791,39.956685;116.456038,39.956449;116.456623,39.956046;116.457218,39.955644;116.457795,39.955260",
                  "bustimetag": "0",
                  "start_time": "0530",
                  "end_time": "2200",
                  "via_num": "8",
                  "via_stops": [
                    {
                      "name": "阜通东大街",
                      "id": "110100013995010",
                      "location": "116.476629,39.987254"
                    },
                    {
                      "name": "望京医院",
                      "id": "110100013995011",
                      "location": "116.473549,39.984894"
                    },
                    {
                      "name": "花家地南里",
                      "id": "110100013995012",
                      "location": "116.470311,39.981941"
                    },
                    {
                      "name": "阜通东大街西口",
                      "id": "110100013995013",
                      "location": "116.466059,39.978101"
                    },
                    {
                      "name": "太阳星城",
                      "id": "110100013995014",
                      "location": "116.455417,39.970707"
                    },
                    {
                      "name": "曙光里小区",
                      "id": "110100013995015",
                      "location": "116.454880,39.967316"
                    },
                    {
                      "name": "裘马都小区",
                      "id": "110100013995016",
                      "location": "116.457285,39.965707"
                    },
                    {
                      "name": "地铁三元桥站",
                      "id": "110100013995017",
                      "location": "116.458484,39.962501"
                    }
                  ]
                }
              ]
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.457794,39.955261",
              "destination": "116.457771,39.955280",
              "distance": "4",
              "duration": "3",
              "steps": [
                {
                  "instruction": "沿东三环北路辅路步行4米到达三元桥南",
                  "road": "东三环北路辅路",
                  "distance": "4",
                  "duration": [],
                  "polyline": "116.457794,39.955261;116.457771,39.955280",
                  "action": [],
                  "assistant_action": "到达三元桥南"
                }
              ]
            },
            "bus": {
              "buslines": [
                {
                  "departure_stop": {
                    "name": "三元桥南",
                    "id": "110100013750010",
                    "location": "116.457774,39.955277"
                  },
                  "arrival_stop": {
                    "name": "北京站东街",
                    "id": "110100013750022",
                    "location": "116.434707,39.905176"
                  },
                  "name": "403路(环行铁道--北京站东街)",
                  "id": "110100013750",
                  "type": "普通公交线路",
                  "distance": "7019",
                  "duration": "3078",
                  "polyline": "116.457774,39.955277;116.458715,39.954657;116.459433,39.954206;116.459171,39.954094;116.458897,39.953868;116.458736,39.953729;116.458500,39.953530;116.458125,39.953187;116.458030,39.953099;116.457951,39.953025;116.457891,39.952977;116.457635,39.952747;116.457444,39.952565;116.457274,39.952422;116.456884,39.952066;116.456862,39.952044;116.456276,39.951502;116.456155,39.951398;116.455603,39.950907;116.455477,39.950760;116.455456,39.950612;116.455473,39.950326;116.455460,39.950074;116.455460,39.949965;116.455456,39.949609;116.455451,39.949440;116.455451,39.949436;116.455442,39.949217;116.455442,39.949110;116.455458,39.948397;116.455212,39.948365;116.455078,39.948348;116.454225,39.948241;116.454015,39.948209;116.452272,39.947968;116.452122,39.947946;116.451858,39.947900;116.451301,39.947801;116.450303,39.947656;116.450185,39.947565;116.450287,39.947367;116.450346,39.947125;116.450368,39.946932;116.450373,39.946685;116.450389,39.946455;116.450384,39.946288;116.450378,39.945897;116.450373,39.945704;116.450373,39.945671;116.450368,39.944384;116.450368,39.944046;116.450363,39.943939;116.450365,39.943928;116.450365,39.943303;116.450360,39.942517;116.450356,39.941280;116.450356,39.941085;116.450360,39.940343;116.450365,39.940243;116.450386,39.939891;116.450391,39.939822;116.450399,39.939692;116.450399,39.938442;116.450399,39.938407;116.450391,39.936623;116.450391,39.936593;116.450365,39.935299;116.450356,39.934566;116.450321,39.933767;116.450317,39.933611;116.450310,39.933025;116.450298,39.931016;116.450298,39.930962;116.450293,39.929771;116.450293,39.927835;116.450288,39.927561;116.450287,39.927529;116.450282,39.926976;116.450287,39.925984;116.450286,39.925829;116.450286,39.925612;116.450282,39.924314;116.450282,39.924119;116.450286,39.922947;116.450273,39.922821;116.450286,39.921931;116.450286,39.921853;116.450286,39.921693;116.450282,39.921298;116.450282,39.920994;116.450282,39.920990;116.450299,39.920412;116.450299,39.919744;116.450299,39.919314;116.450295,39.918702;116.450295,39.918411;116.450295,39.918381;116.450291,39.917964;116.450286,39.917739;116.450299,39.916775;116.450291,39.916055;116.450308,39.915260;116.450308,39.914970;116.450308,39.914705;116.450312,39.914271;116.450312,39.914145;116.450308,39.914002;116.450298,39.913587;116.450293,39.913399;116.450293,39.913330;116.450287,39.913233;116.450271,39.912482;116.450228,39.911908;116.450223,39.911814;116.450196,39.911302;116.450185,39.911146;116.450191,39.910733;116.450196,39.910240;116.450196,39.910186;116.450191,39.909585;116.450196,39.908662;116.450207,39.908539;116.449616,39.908550;116.449273,39.908545;116.447074,39.908571;116.445888,39.908555;116.445143,39.908560;116.444757,39.908563;116.444756,39.908566;116.444408,39.908571;116.443850,39.908582;116.443828,39.908582;116.442739,39.908582;116.441967,39.908582;116.441017,39.908593;116.440980,39.908593;116.439531,39.908603;116.438582,39.908614;116.437718,39.908614;116.436683,39.908609;116.436088,39.908620;116.435739,39.908620;116.435401,39.908630;116.435272,39.908684;116.435218,39.908727;116.435181,39.908780;116.435165,39.908818;116.435160,39.908925;116.435133,39.909612;116.435133,39.909714;116.435154,39.909837;116.435197,39.909896;116.435251,39.909945;116.435310,39.909971;116.435374,39.909982;116.435433,39.909971;116.435508,39.909939;116.435621,39.909859;116.435631,39.909692;116.435653,39.909267;116.435750,39.907423;116.435835,39.906109;116.435878,39.905808;116.435916,39.905513;116.435835,39.905374;116.435798,39.905326;116.435755,39.905288;116.435664,39.905240;116.435562,39.905208;116.435395,39.905186;116.434805,39.905176;116.434707,39.905176",
                  "bustimetag": "0",
                  "start_time": [],
                  "end_time": [],
                  "via_num": "13",
                  "via_stops": [
                    {
                      "name": "三元东桥西",
                      "id": "110100013750011",
                      "location": "116.458030,39.953099"
                    },
                    {
                      "name": "新源街",
                      "id": "110100013750024",
                      "location": "116.455451,39.949436"
                    },
                    {
                      "name": "新源南路西口",
                      "id": "110100013750025",
                      "location": "116.451858,39.947900"
                    },
                    {
                      "name": "塔园村",
                      "id": "110100013750026",
                      "location": "116.450363,39.943939"
                    },
                    {
                      "name": "幸福三村",
                      "id": "110100013750015",
                      "location": "116.450365,39.940243"
                    },
                    {
                      "name": "工人体育场",
                      "id": "110100013750016",
                      "location": "116.450310,39.933025"
                    },
                    {
                      "name": "朝阳医院",
                      "id": "110100013750017",
                      "location": "116.450288,39.927561"
                    },
                    {
                      "name": "东大桥路口北",
                      "id": "110100013750018",
                      "location": "116.450286,39.925829"
                    },
                    {
                      "name": "东大桥路口南",
                      "id": "110100013750027",
                      "location": "116.450282,39.920994"
                    },
                    {
                      "name": "芳草地",
                      "id": "110100013750023",
                      "location": "116.450295,39.918411"
                    },
                    {
                      "name": "芳草地南",
                      "id": "110100013750019",
                      "location": "116.450308,39.914002"
                    },
                    {
                      "name": "永安里路口北",
                      "id": "110100013750020",
                      "location": "116.450223,39.911814"
                    },
                    {
                      "name": "日坛路",
                      "id": "110100013750021",
                      "location": "116.444757,39.908563"
                    }
                  ]
                }
              ]
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          },
          {
            "taxi": [],
            "walking": {
              "origin": "116.434532,39.905174",
              "destination": "116.434448,39.908073",
              "distance": "463",
              "duration": "396",
              "steps": [
                {
                  "instruction": "沿北京站东街步行96米左转",
                  "road": "北京站东街",
                  "distance": "96",
                  "duration": [],
                  "polyline": "116.434532,39.905174;116.434807,39.905174;116.435394,39.905182;116.435532,39.905205;116.435562,39.905209;116.435661,39.905239",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "沿建国门南大街步行320米左转",
                  "road": "建国门南大街",
                  "distance": "320",
                  "duration": [],
                  "polyline": "116.435661,39.905239;116.435600,39.905720;116.435562,39.906017;116.435516,39.906342;116.435463,39.906509;116.435425,39.906620;116.435364,39.906723;116.435211,39.906971;116.435150,39.907093;116.435081,39.907284;116.435051,39.907452;116.435028,39.907951;116.435013,39.908073",
                  "action": "左转",
                  "assistant_action": []
                },
                {
                  "instruction": "步行47米",
                  "road": [],
                  "distance": "47",
                  "duration": [],
                  "polyline": "116.435005,39.908073;116.434891,39.908073;116.434448,39.908073",
                  "action": [],
                  "assistant_action": []
                }
              ]
            },
            "bus": {
              "buslines": []
            },
            "entrance": [],
            "exit": [],
            "railway": {
              "via_stops": [],
              "alters": [],
              "spaces": []
            }
          }
        ]
      }
    ]
  }
}

请求参数

Query 参数
parameters
string 
可选
origin
string 
必需
规则: lon,lat(经度,纬度), “,”分割,如117.500244, 40.417801 经纬度小数点不超过6位
destination
string 
必需
规则: lon,lat(经度,纬度), “,”分割,如117.500244, 40.417801 经纬度小数点不超过6位
city
string 
必需
目前支持市内公交换乘/跨城公交的起点城市。 可选值:城市名称/citycode
cityd
string 
可选
跨城公交规划必填参数。 可选值:城市名称/citycode
extensions
string 
可选
可选值:base(default)/all base:返回基本信息;all:返回全部信息
示例值:
base
strategy
string 
可选
可选值: 0:最快捷模式 1:最经济模式 2:最少换乘模式 3:最少步行模式 5:不乘地铁模式
nightflag
string 
可选
可选值:0:不计算夜班车 1:计算夜班车
date
string 
可选
根据出发时间和日期,筛选可乘坐的公交路线,格式示例:date=2014-3-19。在无需设置预计出发时间时,请不要在请求之中携带此参数。
time
string 
可选
根据出发时间和日期,筛选可乘坐的公交路线,格式示例:time=22:34。在无需设置预计出发时间时,请不要在请求之中携带此参数。
sig
string 
可选
数字签名获取和使用方法
output
string 
可选
可选值:JSON,XML
示例值:
JSON
callback
string 
可选
callback值是用户定义的函数名称,此参数只在output=JSON时有效
Key
string 
必需
用户在高德地图官网申请Web服务API类型Key
默认值:
{{Key}}

返回响应

🟢200成功
application/json
Body
status
string 
返回状态
必需
值为0或1 1:成功;0:失败
info
string 
返回的状态信息
必需
status为0时,info返回错误原;否则返回“OK”。详情参阅info状态表
infocode
string 
必需
count
string 
公交换乘方案数目
必需
route
object 
公交换乘信息列表
必需
origin
string 
起点坐标
必需
destination
string 
终点坐标
必需
distance
string 
起点和终点的步行距离
必需
单位:米
taxi_cost
string 
出租车费用
必需
单位:元
transits
array [object {7}] 
公交换乘方案列表
必需

【高德地图】API开发者 微信交流群

用微信扫右侧二维码,加入【高德地图】API开发者 交流群,互助沟通

扫码加入交流群
修改于 2022-12-13 06:56:54
上一页
步行路径规划
下一页
骑行路径规划
Built with