Suzhou Metro query API sharing, support query the first train station remaining time, the second train station remaining time, train direction Pinyin, train First Bus, train last bus and so on.
Interface Name: Suzhou Metro query API
Interface platform: API Interface
Interface Address:http://apis.juhe.cn/szbusline/subwaystation
Supported format:json/xml
Request method:Get/post
Request Example:http://apis.juhe.cn/szbusline/subwaystation?key= The appkey&line_id=1& you applied for station_id=12&order=2
Suzhou Metro query API Call code JSON Returns an example:
{"ResultCode": "$", "Reason": "Success", "result": {"1": "01 minutes Arrive",/* The remaining time of the first train station */ "2": "07 minutes Arrive",/* second train station remaining time * /"En_direct": "Zhongnan Jie",/* train direction Pinyin */"direct": "Zhongnan Street Direction",/ * Train direction */"start_time": "06:32",/ * Train First Bus */"end_ Time ":" 22:23 ",/ * Train last Bus */" start_end ":" 0 "}," Error_code ": 0}
Suzhou Metro query API Call code XML Returns an example:
This XML file does does appear to has 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>Mu du direction</Direct><Item>04 minutes to reach</Item><Item>11 minutes to reach</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>
Suzhou Metro Query API subway station train arrival timetable