View a markdown version of this page

가까운 위치에 대한 상호 참조를 가져오는 방법 - Amazon Location Service

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

가까운 위치에 대한 상호 참조를 가져오는 방법

AdditionalFeatures 파라미터CrossReferences에를 포함하여 가까운 각 장소 결과에 대한 타사 공급업체 식별자를 검색합니다.

잠재적 사용 사례

  • 통합 검토: 가까운 검색 결과와 함께 타사 등급을 표시합니다.

  • 데이터 일치: 가까운 위치와 외부 데이터베이스의 레코드를 상호 연관시킵니다.

예제

Sample request
{ "QueryPosition": [-122.3321, 47.6062], "QueryRadius": 1000, "Filter": { "IncludeCategories": ["100-1000-0000"] }, "AdditionalFeatures": ["CrossReferences"] }
Sample response
{ "ResultItems": [ { "PlaceId": "<Redacted>", "PlaceType": "PointOfInterest", "Title": "Pike Place Chowder, Seattle, WA", "CrossReferences": [ { "Source": "Yelp", "SourcePlaceId": "pike-place-chowder-seattle" } ], "Distance": 245 } ] }
cURL
curl --request POST \ --url 'https://places.geo.eu-central-1.amazonaws.com/v2/search-nearby?key=Your_Key' \ --header 'Content-Type: application/json' \ --data '{ "QueryPosition": [-122.3321, 47.6062], "QueryRadius": 1000, "Filter": { "IncludeCategories": ["100-1000-0000"] }, "AdditionalFeatures": ["CrossReferences"] }'
AWS CLI
aws geo-places search-nearby --key ${YourKey} --query-position -122.3321 47.6062 --query-radius 1000 --filter '{"IncludeCategories": ["100-1000-0000"]}' --additional-features CrossReferences

개발자 팁