WS_Market
Click here for a complete list of operations.
getWalkPathBetween2POIs
輸入起迄點座標,會按照路網回傳步行軌跡
傳入參數
| 參數名稱 | 參數型態 | 參數說明 |
| StartLat | int | 起點緯度*1000000 |
| StartLon | int | 起點經度*1000000 |
| EndLat | int | 終點緯度*1000000 |
| EndLon | int | 終點緯度*1000000 |
參數輸入範例
| 參數 | 值 |
| StartLat | 25039296 |
| StartLon | 121517351 |
| EndLat | 25035146 |
| EndLon | 121517122 |
回傳格式
| 回傳值 | 說明 |
| JSONArray | 以JSONArray格式回傳多筆點位資料 |
回傳範例
[{"path":[{"StartLon":121517351,"StartLat":25039296},{"StartLon":121517351,"StartLat":25039296},{"StartLon":121517287,"StartLat":25039195},{"StartLon":121517246,"StartLat":25039071},{"StartLon":121517241,"StartLat":25039002},{"StartLon":121517248,"StartLat":25038935},{"StartLon":121517271,"StartLat":25038857},{"StartLon":121517318,"StartLat":25038780},{"StartLon":121517381,"StartLat":25038687},{"StartLon":121517401,"StartLat":25038594},{"StartLon":121517351,"StartLat":25038385},{"StartLon":121517285,"StartLat":25038184},{"StartLon":121517365,"StartLat":25038086},{"StartLon":121517425,"StartLat":25038072},{"StartLon":121517496,"StartLat":25037969},{"StartLon":121516731,"StartLat":25035351},{"StartLon":121516708,"StartLat":25035195},{"StartLon":121516757,"StartLat":25035001},{"StartLon":121516743,"StartLat":25034875},{"StartLon":121516743,"StartLat":25034875},{"StartLon":121517032,"StartLat":25034798},{"StartLon":121517122,"StartLat":25035146}]}]
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/getWalkPathBetween2POIs"
<?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>
<getWalkPathBetween2POIs xmlns="http://www.gotcha.com.tw/WS_Transit">
<StartLat>int</StartLat>
<StartLon>int</StartLon>
<EndLat>int</EndLat>
<EndLon>int</EndLon>
</getWalkPathBetween2POIs>
</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>
<getWalkPathBetween2POIsResponse xmlns="http://www.gotcha.com.tw/WS_Transit">
<getWalkPathBetween2POIsResult>string</getWalkPathBetween2POIsResult>
</getWalkPathBetween2POIsResponse>
</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>
<getWalkPathBetween2POIs xmlns="http://www.gotcha.com.tw/WS_Transit">
<StartLat>int</StartLat>
<StartLon>int</StartLon>
<EndLat>int</EndLat>
<EndLon>int</EndLon>
</getWalkPathBetween2POIs>
</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>
<getWalkPathBetween2POIsResponse xmlns="http://www.gotcha.com.tw/WS_Transit">
<getWalkPathBetween2POIsResult>string</getWalkPathBetween2POIsResult>
</getWalkPathBetween2POIsResponse>
</soap12:Body>
</soap12:Envelope>