View a markdown version of this page

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

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

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

address-names-mode クエリパラメータを に設定Administrativeして、アドレスコンポーネントの正式な管理名を返します。 Administrative は現在、米国のアドレスにのみ適用されます。

想定されるユースケース

  • 住所の標準化: 場所の詳細を表示するときに、都市名を公式の管理フォームに正規化します。

Sample request
https://places.geo.eu-central-1.amazonaws.com/v2/place/YourPlaceId?address-names-mode=Administrative&key=Your_Key
Sample response
{ "PlaceId": "<Redacted>", "PlaceType": "PointOfInterest", "Title": "Empire State Building, New York, NY, United States", "Address": { "Label": "Empire State Building, 350 5th Ave, New York, NY 10118, United States", "Locality": "New York" } }
cURL
curl --request GET \ --url 'https://places.geo.eu-central-1.amazonaws.com/v2/place/YourPlaceId?address-names-mode=Administrative&key=Your_Key'
AWS CLI
aws geo-places get-place --key ${YourKey} --place-id "YourPlaceId" --address-names-mode Administrative