功能介绍

驾车路线规划:根据起终点坐标检索符合条件的驾车路线规划方案,支持以下功能:1. 支持一次请求返回多条路线(备用路线)2. 支持20个以内的途径点3. 支持传入车牌规避限行路段4. 支持传入起点车头方向,辅助判断起点所在正逆向车道,辅助更准确算路5. 支持未来出行规划,指定未来7天任意出发时刻,将依据智能预测路况和道路限行规划合理路线

功能文档

驾车路线规划:https://www.free-api.com/doc/282

功能演示

Params
ak/string/必填
origin/string/必填
destination/string/必填
origin_uid/string/选填
destination_uid/string/选填
waypoints/string/选填
coord_type/string/选填
ret_coordtype/string/选填
tactics/string/选填
alternatives/string/选填
plate_number/string/选填
departure_time/string/选填
ext_departure_time/string/选填
gps_direction/int/选填
radius/float/选填
speed/float/选填
sn/string/选填
output/string/选填
callback/string/选填
Post
http://api.map.baidu.com/direction/v2/driving?origin=40.01,116.339&destination=39.93,116.4&ak=您的AK
Header
header: Content-Type: "application/x-www-form-urlencoded"