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

開發人員秘訣