View a markdown version of this page

관리 주소 이름을 가져오는 방법 - Amazon Location Service

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

관리 주소 이름을 가져오는 방법

로 AddressNamesMode 설정된 Administrative를 사용하여 도시 이름과 같은 주소 구성 요소의 공식 관리 이름을 반환합니다.는 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