

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

# 近くの場所の相互参照を取得する方法
<a name="how-to-search-nearby-cross-references"></a>

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

## 想定されるユースケース
<a name="search-nearby-cross-references-use"></a>
+ **統合の確認:** 近くの検索結果とともにサードパーティーの評価を表示します。
+ **データマッチング:** 近くの場所を外部データベースのレコードと関連付けます。

## 例
<a name="search-nearby-cross-references-example"></a>

### 近くのレストランの相互参照を取得する
<a name="search-nearby-cross-references"></a>

------
#### [ 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
```

------

## デベロッパー向けのヒント
<a name="search-nearby-cross-references-dev-tips"></a>
+ 返された識別子を使用するには、サプライヤの API ドキュメントを参照してください。たとえば、[Yelp ウェブサイトの Yelp Places API](https://docs.developer.yelp.com/docs/places-intro) または [Tripadvisor ウェブサイトの Tripadvisor Content API](https://docs.terra.tripadvisor.com/docs/overview) を参照してください。