长途汽车
长途汽车

长途汽车

接口类型:交通出行
接口状态:正常
描述:
提供全国主要城市的长途汽车时刻查询API,汽车站查询API。
  • 站站查询
  • 接口地址:https://open.6api.net/bus/station2c

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:https://open.6api.net/bus/station2c?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    fromCity string 出发城市
    toCity string 到达城市
    fromStation string 出发车站
    toStation string 到达车站
    date string 查询日期

    返回参数:

    参数名称 类型 说明
    fromCity string 出发城市
    toCity string 到达城市
    fromStation string 出发车站
    toStation string 到达车站
    toStationShow string 到达站名称
    startDate string 出发日期
    startTime string 出发时间
    price string 票价
    typeDesc string 班次说明
    busType string 车型
    costTime string 预计时间
    isWayStation string 是否中途站

    JSON返回实例:

  • 城城查询
  • 接口地址:https://open.6api.net/bus/city2c

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:https://open.6api.net/bus/city2c?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    fromCity string 出发城市
    toCity string 到达城市
    date string 出发时间

    返回参数:

    参数名称 类型 说明
    fromCity string 出发城市
    toCity string 到达城市
    fromStation string 出发车站
    toStation string 到达车站
    toStationShow string 到达站名称
    startDate string 出发日期
    startTime string 出发时间
    price string 票价
    typeDesc string 班次说明
    busType string 车型
    costTime string 预计时间
    isWayStation string 是否中途站

    JSON返回实例:

  • 车站查询
  • 接口地址:https://open.6api.net/bus/station

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:https://open.6api.net/bus/station?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    city string 城市名称

    返回参数:

    参数名称 类型 说明
    name string 车站名称
    city string 所属城市
    province string 所属省份

    JSON返回实例: