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

开发人员提示