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

デベロッパー向けのヒント