首页 > Windows开发 > 详细

苏州地铁查询api 地铁站台列车到站时刻表

时间:2015-10-27 14:59:09      阅读:348      评论:0      收藏:0      [点我收藏+]

苏州地铁查询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>

 

苏州地铁查询api 地铁站台列车到站时刻表

原文:http://www.cnblogs.com/jiekoupt/p/4913921.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!