複合式定位

複合式定位

複合式定位服務採用服務方式提供,查詢傳送之參數說明如下,並回傳查詢結果。

查詢參數:

format:jsonp或json。

input:複合查詢的字串。

srs:座標系統,目前支援EPSG:3826與EPSG:4326。

center:optional,以中心點排序,格式為center.x + "," + center.y。

county:optional,目標縣市。

pnumber:頁次。

format:jsonp或json。

ignoreGeometry:optional,不傳回座標,預設為flase。

回傳結果包括:

geometry:空間資料(TWD97中央經線121)。

type:定位類別。

county:定位結果所在縣市。

town:定位結果所在縣市。

name:定位結果名稱。

X:X坐標(或經度) 。

Y:Y坐標(或緯度) 。

distance:到查詢中心點距離。

使用範例說明如下:

http://gis.tgos.tw/TGLocator/TGLocator.ashx?format=jsonp&input=東華&srs=EPSG:4326&ignoreGeometry=false&pnum=1&center=120.685056,24.137001

回到上方