亲,欢迎来到智慧商城! 登录 申请成为数据供应商 new!

ishowchina

我秀中国 好评率:100.0%

动态评价

  • 描述相符: 4.8
  • 服务态度: 4.7
  • 发货速度: 4.7

店铺信息

  • 创店时间:2017-03-03
  • 所在地区:北京市 北京市 海淀区
  • 商品数量:106件商品
  • 店铺收藏:24人收藏

联系方式

  • 站外客服: 点击这里给我发消息
  • 店铺二维码

公交路线规划

  • 商品原价:¥1680.00
  • 店铺价格:¥0.00(节省:¥1680.0)
  • 物流运费:
    北京市 | 至
    请选择省份 请选择城市 请选择区县
    卖家承担
  • 销售情况:售出45件(0条评论)
  • 关注次数:2218次
  • 购买天数: 30 90 180 360
  • 数量: 件(库存1000000000件)
  • 登录后才能购买

公交路线规划 规格:30天  日调用量:110000次


接口说明

接口描述:提供公交路线规划功能

接口地址:https://dsapi.ishowchina.com/service/bus?parameters

parameters代表的参数包括必填参数和可选参数。所有参数均使用和号字符(&)进行分隔。

请求方式:POST GET

请求示例:https://dsapi.ishowchina.com/service/bus?origin=116.3084300,40.0399900&destination=116.3044200,39.9950400&ak=您的key


请求参数


参数名称 参数类型 参数说明 备注
ak string
您的唯一key 必填参数
origin
string
起点经纬度,或起点名称+经纬度,此时名称只负责展示。
格式如:中关村皇冠假日酒店写字楼| 116.32259,39.97554

必填参数
destination
string

终点经纬度,或终点名称+经纬度,此时名称只负责展示。
格式如:中关村皇冠假日酒店写字楼| 116.32259,39.97554

必填参数
coord_type
string

坐标类型,可选参数,默认为gcj02。允许的值为: gcj02(国测局加密坐标)、wgs84(gps设备获取的坐标)。

可选参数
tactics
int
路径规划策略。
11:最少时间,默认值;
1:最省钱;
13:最少换乘;
14:最少步行;
4:最舒适模式,乘坐有空调的车线;
5:不乘地铁。
说明: 若输入值不在策略值范围内,则取默认值11。

参数
callback
string
回调函数。用户定义的函数名称,仅当输出json格式的返回结果时该参数有效。
参数
output
string
输出格式,可选值json、xml。默认为json。
参数
out_coord_type
string

坐标类型,默认为gcj02。允许的值为:

gcj02: 国测局坐标;baidu : 百度坐标

参数


返回参数

系统级别返回参数:

参数名称 参数类型 参数说明
status
string 是否返回成功。状态,0为成功,其他为失败
message
string 状态说明
type
string 返回数据类型。
1:起终点是模糊的,此时给出的是选择页面;
2:起终点都是明确的,直接跳转。
results
object 返回查询结果
info string 版权信息


查询结果参数:

名称 含义 规则说明
routes scheme distance 方案距离。 单位:米。
duration 线路耗时。 单位:秒。
price 总票价。 单位:分。
line_price line_type 票类型。
  • 0:公交票价;
  • 1:地铁票价。
line_price 价格。 单位:分。
steps distance 路段距离。 -
duration 路段耗时。 -
path 路段位置坐标描述。 -
ispasspoi 是否是途经点。

公交路径规划时该返回值无效。

  • 0:不是。
  • 1:是。
type 路段类型。
  • 1 火车;
  • 2 飞机;
  • 3 公交;
  • 4 驾车;
  • 5 步行;
  • 6 大巴;
  • 7 地铁。
stepOriginLocation lng 路段起点经度。 -
lat 路段起点纬度。 -
stepDestinationLocation lng 路段终点经度。 -
lat 路段终点纬度。 -
stepInstruction 路段说明。 -
vehicle start_name 公交线路起点名称。 -
end_name 公交线路终点名称。 -
end_time 公交线路的末班车时间。 -
end_uid 公交线路终点id。 -
name 公交线路名称。 -
start_time 公交线路首班车时间。 -
start_uid 公交线路起点id。 -
stop_num 路段经过的站点数量。 -
total_price 价格。 -
type 公交线路类型
  • 1:火车
  • 2:飞机
  • 3:公交
  • 4:驾车
  • 5:步行
  • 6:大巴
  • 7:地铁
uid 公交线路id。 -
zone_price 区间价。 -
traffic_type 路况信息
  • 0:无路况信息;
  • 1~10:正常;
  • 11~20:缓行;
  • 21~30:拥堵。
originLocation 起点经纬度坐标。 -
destinationLocation 终点经纬度坐标。 -
origin originPt 起点经纬度。 -


lng 经度。 -
lat 纬度。 -
destination destinationPt 终点经纬度坐标。 -


lng 经度。 -
lat 纬度。 -
taxi 出租车相关信息。 -


返回示例

{

"result" : {

"routes" : [

"0" : {

"scheme" : [

"0" : {

"duration" : 2220,

"line_price" : "",

"distance" : 6802,

"price" : "0",

"traffic_type" : "0",

"destinationLocation" : "116.3044200,39.9950400",

"steps" : [

"0" : {

"duration" : "0",

"path" : "",

"stepDestinationLocation" : {

"lng" : "116.30844",

"lat" : "40.03999666666667"

},

"distance" : "0",

"type" : "5",

"stepInstruction" : "",

"stepOriginLocation" : {

"lng" : "116.3084300",

"lat" : "40.0399900"

},

"vehicle" : {

"start_name" : "起点",

"end_name" : "上地五街"

}

},

"1" : {

"duration" : 1800,

"path" : "116.30844,40.03999666666667;...;116.30024,39.99726",

"stepDestinationLocation" : {

"lng" : "116.30024",

"lat" : "39.99726"

},

"distance" : 6177,

"type" : "3",

"stepInstruction" : "",

"stepOriginLocation" : {

"lng" : "116.30844",

"lat" : "40.03999666666667"

},

"vehicle" : {

"start_name" : "上地五街",

"start_time" : "6:00",

"uid" : "",

"stop_num" : "7",

"end_uid" : "",

"total_price" : "0",

"end_time" : "22:00",

"name" : "664(地铁西二旗站-地铁苹果园站)",

"zone_price" : "0",

"end_name" : "颐和园路东口",

"start_uid" : "",

"type" : "0"

}

},

"2" : {

"duration" : "420",

"path" : "",

"stepDestinationLocation" : {

"lng" : "116.3044200",

"lat" : "39.9950400"

},

"distance" : "625",

"type" : "5",

"stepInstruction" : "",

"stepOriginLocation" : {

"lng" : "116.30024",

"lat" : "39.99726"

},

"vehicle" : {

"start_name" : "颐和园路东口",

"end_name" : "终点"

}

}

],

"originLocation" : "116.3084300,40.0399900"

}

]

},

.

.

.

}

],

"origin" : {

"originPt" : {

"lng" : "116.3084300",

"lat" : "40.0399900"

}

},

"taxi" : "",

"destination" : {

"destinationPt" : {

"lng" : "116.3044200",

"lat" : "39.9950400"

}

}

},

"message" : "ok",

"type" : "2",

"status" : "0",

"info" : "copyright:@leador"

}


更多推荐商品

服务示例

http://<host:port>/v3/search/busline/byid?city=010&busIds=1100006301,1100006701&ak=<用户Key>

参数 备注 必选
剩余使用次数:9