WS_Market
Click here for a complete list of operations.
getRouteInfo_StopsBackward
公車、捷運、長途客運或船舶的返程站點清單(若沒有返程的清單,則回傳空的array即可)
傳入參數
參數名稱 | 參數型態 | 參數說明 |
nCategoryID | int | 交通工具代號 |
nRouteID | int | 營運路線ID |
參數輸入範例
參數 | 值 |
nCategoryID | 1101 |
nRouteID | 119 |
回傳格式
回傳值 | 說明 |
id | 公車/客運/船舶站點ID(相當於POIID) |
name | 公車/客運/船舶站點名 |
order | 此站點在路線中的順序 |
Region | 行政區 |
Lat | 站點緯度 |
Lon | 站點經度 |
回傳範例
[{"stops_backward":[{"id":511613,"name":"市政府(市府路)","order":1,"Region":12,"Lat":25038343,"Lon":121563743},{"id":500010,"name":"興雅國中","order":2,"Region":12,"Lat":25037126,"Lon":121568222},{"id":500055,"name":"松壽路口","order":3,"Region":12,"Lat":25035934,"Lon":121567184}]}]
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WS_Market.asmx HTTP/1.1 Host: transittw.localking.com.tw Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.gotcha.com.tw/WS_Transit/getRouteInfo_StopsBackward" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthHeaderMarket xmlns="http://www.gotcha.com.tw/WS_Transit"> <Username>string</Username> <HashKey>string</HashKey> <Password>string</Password> </AuthHeaderMarket> </soap:Header> <soap:Body> <getRouteInfo_StopsBackward xmlns="http://www.gotcha.com.tw/WS_Transit"> <nCategoryID>int</nCategoryID> <nRouteID>int</nRouteID> </getRouteInfo_StopsBackward> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <getRouteInfo_StopsBackwardResponse xmlns="http://www.gotcha.com.tw/WS_Transit"> <getRouteInfo_StopsBackwardResult>string</getRouteInfo_StopsBackwardResult> </getRouteInfo_StopsBackwardResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WS_Market.asmx HTTP/1.1 Host: transittw.localking.com.tw Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthHeaderMarket xmlns="http://www.gotcha.com.tw/WS_Transit"> <Username>string</Username> <HashKey>string</HashKey> <Password>string</Password> </AuthHeaderMarket> </soap12:Header> <soap12:Body> <getRouteInfo_StopsBackward xmlns="http://www.gotcha.com.tw/WS_Transit"> <nCategoryID>int</nCategoryID> <nRouteID>int</nRouteID> </getRouteInfo_StopsBackward> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <getRouteInfo_StopsBackwardResponse xmlns="http://www.gotcha.com.tw/WS_Transit"> <getRouteInfo_StopsBackwardResult>string</getRouteInfo_StopsBackwardResult> </getRouteInfo_StopsBackwardResponse> </soap12:Body> </soap12:Envelope>