View a markdown version of this page

管理アドレス名を取得する方法 - Amazon Location Service

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

管理アドレス名を取得する方法

都市名などの住所コンポーネントの正式な管理名を返Administrativeすには、 を AddressNamesMode に設定します。 Administrative は現在、米国の住所にのみ適用されます。

想定されるユースケース

  • 標準化に対処する: データ品質のために都市名を公式の管理フォームに正規化します。

Sample request
{ "QueryPosition": [-73.985, 40.748], "AddressNamesMode": "Administrative" }
Sample response
{ "ResultItems": [ { "PlaceId": "<Redacted>", "PlaceType": "PointAddress", "Title": "350 5th Ave, New York, NY 10118, United States", "Address": { "Label": "350 5th Ave, New York, NY 10118, United States", "Locality": "New York" } } ] }
cURL
curl --request POST \ --url 'https://places.geo.eu-central-1.amazonaws.com/v2/reverse-geocode?key=Your_Key' \ --header 'Content-Type: application/json' \ --data '{ "QueryPosition": [-73.985, 40.748], "AddressNamesMode": "Administrative" }'
AWS CLI
aws geo-places reverse-geocode --key ${YourKey} --query-position -73.985 40.748 --address-names-mode Administrative