View a markdown version of this page

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

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

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

AdditionalFeatures パラメータCrossReferencesに を含めて、近くの各場所の結果のサードパーティーのサプライヤー識別子を取得します。

想定されるユースケース

  • 統合の確認: 近くの検索結果とともにサードパーティーの評価を表示します。

  • データマッチング: 近くの場所を外部データベースのレコードと関連付けます。

Sample request
{ "QueryPosition": [-122.3321, 47.6062], "QueryRadius": 1000, "Filter": { "IncludeCategories": ["100-1000-0000"] }, "AdditionalFeatures": ["CrossReferences"] }
Sample response
{ "ResultItems": [ { "PlaceId": "<Redacted>", "PlaceType": "PointOfInterest", "Title": "Pike Place Chowder, Seattle, WA", "CrossReferences": [ { "Source": "Yelp", "SourcePlaceId": "pike-place-chowder-seattle" } ], "Distance": 245 } ] }
cURL
curl --request POST \ --url 'https://places.geo.eu-central-1.amazonaws.com/v2/search-nearby?key=Your_Key' \ --header 'Content-Type: application/json' \ --data '{ "QueryPosition": [-122.3321, 47.6062], "QueryRadius": 1000, "Filter": { "IncludeCategories": ["100-1000-0000"] }, "AdditionalFeatures": ["CrossReferences"] }'
AWS CLI
aws geo-places search-nearby --key ${YourKey} --query-position -122.3321 47.6062 --query-radius 1000 --filter '{"IncludeCategories": ["100-1000-0000"]}' --additional-features CrossReferences

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