功能介绍

公交路线规划:根据起点和终点检索符合条件的公共交通方案,融入出行策略(少换乘、地铁优先等)支持大陆区域的同城及跨城路线规划,交通方式支持公交、地铁、火车、飞机、大巴

功能文档

公交路线规划:https://www.free-api.com/doc/280

功能演示

Params
origin/string/必填
destination/string/必填
coord_type/string/选填
tactics_intercity/int/选填
trans_type_intercity/int/选填
ret_coordtype/string/选填
output/string/选填
page_size/int/选填
page_index/int/选填
ak/string/必填
sn/string/选填
callback/string/选填
timestamp/string/选填
GET
http://api.map.baidu.com/direction/v2/transit?origin=40.05,116.30&destination=31.222,121.50&ak=您的AK
Header
header: Content-Type: "application/x-www-form-urlencoded"