苏州地铁查询api分享,支持查询第一趟车到站剩余时间、第二趟车到站剩余时间、列车方向拼音、列车首班车、列车末班车等等。

接口名称:苏州地铁查询api

接口平台:api接口

接口地址:http://apis.juhe.cn/szbusline/subwaystation

支持格式:json/xml

请求方式:GET/POST

请求示例:http://apis.juhe.cn/szbusline/subwaystation?key=你申请的APPKEY&line_id=1&station_id=12&order=2

苏州地铁查询api调用代码JSON返回示例:

 

{
"resultcode": "200",
"reason": "Success",
"result": {
"1": "01分到达",   /*第一趟车到站剩余时间*/
"2": "07分到达",   /*第二趟车到站剩余时间*/
"en_direct": "Zhongnan Jie", /*列车方向拼音*/
"direct": "钟南街方向",  /*列车方向*/
"start_time": "06:32",   /*列车首班车*/
"end_time": "22:23",    /*列车末班车*/
"start_end": "0"
},
"error_code": 0
}

 

苏州地铁查询api调用代码XML返回示例:

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<root>
<resultcode>200</resultcode>
<reason>Success</reason>
<result>
<en_direct>Mudu</en_direct>
<direct>木渎方向</direct>
<item>04分到达</item>
<item>11分到达</item>
<start_time>06:34</start_time>
<end_time>22:59</end_time>
<start_end>0</start_end>
</result>
<error_code>0</error_code>
</root>