价格: ¥ 99 积分可抵¥ 1
最后更新: 2019-12-15 20:52:35
演示地址: 无
安装费: 免费
调用地址:http(s)://jisugjdtmf.market.alicloudapi.com/transit/station2s
请求方式:GET
返回类型:JSON
API 调用:API 简单身份认证调用方法(APPCODE)展开API 签名认证调用方法(AppKey & AppSecret)
调试工具:去调试
无参数
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
city | STRING | 必选 | 城市 |
end | STRING | 必选 | 终点 |
endcity | STRING | 可选 | 终点城市 自驾选项 |
start | STRING | 必选 | 起点 可以为经纬度,格式纬度,经度 |
type | STRING | 必选 | 换乘类型 car自驾 walk步行 ride骑行 transit公交 默认 |
无参数
curl -i -k --get --include 'https://jisugjdtmf.market.alicloudapi.com/transit/station2s?city=%E6%9D%AD%E5%B7%9E&end=%E6%9D%AD%E5%B7%9E%E6%B1%BD%E8%BD%A6%E5%8C%97%E7%AB%99&endcity=endcity&start=%E8%A5%BF%E6%BA%AA%E7%AB%9E%E8%88%9F%E8%8B%91&type=transit' -H 'Authorization:APPCODE 你自己的AppCode'
{
"status": 0,
"msg": "ok",
"result": [
{
"totaldistance": "11.1公里",
"totalduration": "1时8分",
"totalprice": "-1",
"arrivetime": "2015-10-20 16:19:15",
"tiptype": "3",
"totalstopnum": "17",
"totalwalkdistance": "625米",
"vehicles": [
"118路",
"91路区间"
],
"steps": [
{
"distance": "185",
"duration": "203",
"sname": "",
"type": "5",
"vehicle": "",
"startpoi": {
"lng": "120.063588849",
"lat": "30.2869479281"
},
"endpoi": {
"lng": "120.064082917",
"lat": "30.2876028216"
},
"steptext": "步行185米",
"endname": "西溪竞舟苑站"
},
{
"distance": "5185",
"duration": "1104",
"type": "3",
"vehicle": {
"endname": "文二西路古墩路口站",
"endtime": "20:00",
"name": "118路",
"startname": "西溪竞舟苑站",
"starttime": "05:50",
"stopnum": "8",
"totalprice": "0",
"type": "0",
"zoneprice": "0"
},
"startpoi": {
"lng": "120.10475819",
"lat": "30.2875482473"
},
"endpoi": {
"lng": "120.063588849",
"lat": "30.2869479281"
},
"steptext": "从西溪竞舟苑站,乘118路(小车桥方向),经过8站,到文二西路古墩路口站"
}
]
}
]
}
{
"status": "203",
"msg": "起点为空",
"result": ""
}
错误码 | 错误信息 | 描述 |
---|---|---|
203 | {"status": "203","msg": "起点为空","result": ""} | 起点为空 |
204 | {"status": "204","msg": "终点为空","result": ""} | 终点为空 |
205 | {"status": "205","msg": "城市为空","result": ""} | 城市为空 |
0 (0%) 好评 | 0 (0%) 中评 | 0 (0%) 差评 |