2025-10-28 15:08:33 活动前瞻

路径规划MCP复制页面骑行路径规划GET/v4/direction/bicycling调试Run in ApifoxRun in Apifox接口简介:骑行路径规划用于规划骑行通勤方案,规划时不会考虑路况;考虑天桥、单行线、封路等情况。最大支持 500km 的骑行路线规划。parameters代表的参数包括必填参数和可选参数。所有参数均使用和号字符(&)进行分隔。下面的列表枚举了这些参数及其使用规则。服务示例https://restapi.amap.com/v4/direction/bicycling?origin=116.434307,39.90909&destination=116.434307,39.90909&key=<用户的key>参数值备注必选origin起点经纬度是destination终点经纬度是请求参数Query 参数生成代码返回响应🟢200成功application/json生成代码Body生成代码请求示例请求示例ShellJavaScriptJavaSwiftcURLcURL-WindowsHttpiewgetPowerShellcurl --location --request GET 'https://restapi.amap.com/v4/direction/bicycling?origin=116.434307,39.90909&destination=116.434446,39.90816'响应示例响应示例{

"data": {

"destination": "116.434446,39.90816",

"origin": "116.434307,39.90909",

"paths": [

{

"distance": 215,

"duration": 52,

"steps": [

{

"action": "右转",

"assistant_action": "",

"distance": 54,

"duration": 13,

"instruction": "骑行54米右转",

"orientation": "",

"polyline": "116.434323,39.909041;116.434965,39.909041",

"road": "",

"walk_type": 0

},

{

"action": "右转",

"assistant_action": "",

"distance": 114,

"duration": 27,

"instruction": "沿建国门北大街向南骑行114米右转",

"orientation": "南",

"polyline": "116.434965,39.909041;116.434965,39.909028;116.434931,39.908932;116.434887,39.908867;116.434887,39.908867;116.434831,39.908724;116.434818,39.908655;116.434818,39.908542;116.434826,39.908424;116.434883,39.908303;116.434883,39.908303;116.434974,39.908194;116.434996,39.908142;116.435009,39.908103;116.435009,39.908077",

"road": "建国门北大街",

"walk_type": 0

},

{

"action": "",

"assistant_action": "到达目的地",

"distance": 47,

"duration": 11,

"instruction": "骑行47米到达目的地",

"orientation": "",

"polyline": "116.435009,39.908073;116.434891,39.908073;116.434891,39.908073;116.434449,39.908073",

"road": "",

"walk_type": 0

}

]

}

]

},

"errcode": 0,

"errdetail": null,

"errmsg": "OK",

"ext": null

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

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

扫码加入交流群修改于 2025-09-24 09:47:34上一页驾车路径规划下一页未来路径规划LLMs.txt克隆导出Built with