WS_Market
Click here for a complete list of operations.
getRouteInfo_StopsForward
公車、捷運、長途客運或船舶去程的站點清單
傳入參數
| 參數名稱 | 參數型態 | 參數說明 |
| nCategoryID | int | 交通工具代號 |
| nRouteID | int | 營運路線ID |
參數輸入範例
| 參數 | 值 |
| nCategoryID | 1101 |
| nRouteID | 119 |
回傳格式
| 回傳值 | 說明 |
| id | 公車/客運/船舶站點ID(相當於POIID) |
| name | 公車/客運/船舶站點名 |
| order | 此站點在路線中的順序 |
| Region | 行政區 |
| Lat | 站點緯度 |
| Lon | 站點經度 |
回傳範例
[{"stops_forward":[{"id":510308,"name":"台北客運四海站","order":1,"Region":61,"Lat":24966711,"Lon":121459770},{"id":537699,"name":"四海站","order":2,"Region":61,"Lat":24966817,"Lon":121459594},{"id":502987,"name":"少年觀護所","order":3,"Region":61,"Lat":24969680,"Lon":121459587},{"id":503009,"name":"清化里","order":4,"Region":61,"Lat":24971342,"Lon":121459495},{"id":503010,"name":"德霖技術學院","order":5,"Region":61,"Lat":24972978,"Lon":121458831},{"id":507307,"name":"清和里","order":6,"Region":61,"Lat":24974500,"Lon":121458801},{"id":503011,"name":"檳榔科","order":7,"Region":61,"Lat":24977577,"Lon":121458992},{"id":505832,"name":"清水派出所","order":8,"Region":61,"Lat":24980365,"Lon":121459144}]}]
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_StopsForward"
<?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_StopsForward xmlns="http://www.gotcha.com.tw/WS_Transit">
<nCategoryID>int</nCategoryID>
<nRouteID>int</nRouteID>
</getRouteInfo_StopsForward>
</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_StopsForwardResponse xmlns="http://www.gotcha.com.tw/WS_Transit">
<getRouteInfo_StopsForwardResult>string</getRouteInfo_StopsForwardResult>
</getRouteInfo_StopsForwardResponse>
</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_StopsForward xmlns="http://www.gotcha.com.tw/WS_Transit">
<nCategoryID>int</nCategoryID>
<nRouteID>int</nRouteID>
</getRouteInfo_StopsForward>
</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_StopsForwardResponse xmlns="http://www.gotcha.com.tw/WS_Transit">
<getRouteInfo_StopsForwardResult>string</getRouteInfo_StopsForwardResult>
</getRouteInfo_StopsForwardResponse>
</soap12:Body>
</soap12:Envelope>