View a markdown version of this page

제안에서 교차 참조를 가져오는 방법 - Amazon Location Service

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

제안에서 교차 참조를 가져오는 방법

AdditionalFeatures 파라미터CrossReferences에를 포함하여 장소 제안을 위한 타사 공급업체 식별자를 검색합니다.

잠재적 사용 사례

  • 통합 미리 보기: 사용자가 장소를 선택하기 전에 제안과 함께 타사 식별자를 표시합니다.

  • 미리 가져오기 검토: 공급업체 IDs 사용하여 사용자가 제안을 찾아볼 때 검토 데이터를 미리 로드합니다.

예제

Sample request
{ "QueryText": "Starbucks downtown", "BiasPosition": [-122.3321, 47.6062], "AdditionalFeatures": ["CrossReferences"] }
Sample response
{ "ResultItems": [ { "Title": "Starbucks, Seattle, WA", "SuggestResultItemType": "Place", "Place": { "PlaceId": "<Redacted>", "PlaceType": "PointOfInterest", "CrossReferences": [ { "Source": "Yelp", "SourcePlaceId": "starbucks-seattle-12" } ] } } ] }
cURL
curl --request POST \ --url 'https://places.geo.eu-central-1.amazonaws.com/v2/suggest?key=Your_Key' \ --header 'Content-Type: application/json' \ --data '{ "QueryText": "Starbucks downtown", "BiasPosition": [-122.3321, 47.6062], "AdditionalFeatures": ["CrossReferences"] }'
AWS CLI
aws geo-places suggest --key ${YourKey} --query-text "Starbucks downtown" --bias-position -122.3321 47.6062 --additional-features CrossReferences

개발자 팁