Locate REST サービス
はじめに
使用可能な検索データ セット (地名) のリスト
概要
すべての有効な地名を列挙します。
戻り値: {ArrayList} 有効なすべての地名のリスト
サンプル リクエスト
http://localhost:8010/connect/LocateService/services/rest/analyst/gazetteers.json
レスポンスのサンプル
{"Gazetteers":["Address1","Address2"]}
検索データ セット (地名) の記述
指定されたテナントの指定された地名に関する詳細情報を返します。
パラメータ:
{String} gazetteer - リストのレスポンスの地名。
戻り値: {JSON} 指定されたテナントの指定された地名に関する詳細情報を含む JSON
サンプル リクエスト
http://localhost:8010/connect/LocateService/services/rest/analyst/gazetteers/Address1/describe.json
レスポンスのサンプル
{"GazetteerDescription":{"Version":"1.0","Name":"Address1","crs":{"type":"name","properties":{"name":"epsg:27700"}}}}
検索データ セット (地名) の検索
概要
指定された地名に対するクエリ文字列による検索結果を列挙します。SRS と Count のフィールドは省略可能です。
パラメータ:
{String} gazetteer - リストのレスポンスの地名。
{String} {Optional} srs - EPSG 形式の空間参照系 (srs)。
{String} {Optional} count - 返される検索結果の最大数。
{String} query - この部分的な住所の文字列に一致する住所を返します。
戻り値: {JSON} 指定されたクエリ文字列による複数の検索結果を含む JSON
サンプル リクエスト
http://localhost:8010/connect/LocateService/services/rest/analyst/gazetteers/Address1/search.json?&q=Camden Road&srs=EPSG:27700&count=10
レスポンスのサンプル
{"SearchResults":[{"id":"39792","name":"Cantelowes Gardens, Camden Road","score":0,"srs":"epsg:27700","x":529535,"y":184752},{"id":"27657","name":"201A, Camden Road, NW1 9AA","score":0,"srs":"epsg:27700","x":529701,"y":184919},{"id":"93472","name":"201B, Camden Road, NW1 9AA","score":0,"srs":"epsg:27700","x":529701,"y":184919},{"id":"84406","name":"Camden Road Station, Camden Road, London, NW1 9LS","score":0,"srs":"epsg:27700","x":529144,"y":184205},{"id":"47074","name":"Camden Park Studios, Camden Park Road, London, NW1 9AY","score":0,"srs":"epsg:27700","x":529833,"y":184759},{"id":"136","name":"68, Camden Road, London, NW1 9DT","score":0,"srs":"epsg:27700","x":529120,"y":184040},{"id":"229","name":"48, Camden Road, London, NW1 9DR","score":0,"srs":"epsg:27700","x":529056,"y":183991},{"id":"358","name":"278, Camden Road, London, NW1 9AB","score":0,"srs":"epsg:27700","x":529808,"y":184934},{"id":"712","name":"154, Camden Road, London, NW1 9HJ","score":0,"srs":"epsg:27700","x":529408,"y":184430},{"id":"827","name":"266, Camden Road, London, NW1 9AB","score":0,"srs":"epsg:27700","x":529776,"y":184894}]}