View a markdown version of this page

場所の相互参照を取得する方法 - Amazon Location Service

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

場所の相互参照を取得する方法

AdditionalFeatures パラメータCrossReferencesで を使用して、場所のサードパーティーサプライヤー識別子を取得します。これにより、Yelp や TripAdvisor などの外部システムのエントリと場所を関連付けることができます。

想定されるユースケース

  • 集約の確認: レビュープラットフォーム上のプロファイルに場所をリンクして、ユーザー評価を表示します。

  • データ調整: 内部システムとサードパーティーデータベース間でレコードを照合します。

Sample request
https://places.geo.eu-central-1.amazonaws.com/v2/place/YourPlaceId?additional-features=CrossReferences&key=Your_Key
Sample response
{ "PlaceId": "<Redacted>", "PlaceType": "PointOfInterest", "Title": "Space Needle, Seattle, WA, United States", "CrossReferences": [ { "Source": "TripAdvisor", "SourcePlaceId": "d104410", "SourceCategories": [ { "Id": "400-4000-4580", "Name": "Landmark-Attraction" } ] }, { "Source": "Yelp", "SourcePlaceId": "space-needle-seattle", "SourceCategories": [ { "Id": "400-4000-4580", "Name": "Landmark-Attraction" } ] } ] }
cURL
curl --request GET \ --url 'https://places.geo.eu-central-1.amazonaws.com/v2/place/YourPlaceId?key=Your_Key&additional-features=CrossReferences'
AWS CLI
aws geo-places get-place --key ${YourKey} --place-id "YourPlaceId" --additional-features CrossReferences

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