

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

# 提案から相互参照を取得する方法
<a name="how-to-suggest-cross-references"></a>

`AdditionalFeatures` パラメータ`CrossReferences`に を含めて、プレース提案用のサードパーティーのサプライヤー識別子を取得します。

## 想定されるユースケース
<a name="suggest-cross-references-use"></a>
+ **プレビュー統合:** ユーザーが場所を選択する前に、提案とともにサードパーティーの識別子を表示します。
+ **プリフェッチレビュー:** ユーザーが提案を参照するときに、サプライヤー IDs を使用してレビューデータをプリロードします。

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

### 提案から相互参照を取得する
<a name="suggest-cross-references"></a>

------
#### [ Sample request ]

```
{
    "QueryText": "Starbucks downtown",
    "BiasPosition": [-122.3321, 47.6062],
    "AdditionalFeatures": ["CrossReferences"]
}
```

------
#### [ Sample response ]

```
{
    "ResultItems": [
        {
            "Title": "Starbucks, Seattle, WA",
            "SuggestResultItemType": "Place",
            "Place": {
                "PlaceId": "<Redacted>",
                "PlaceType": "PointOfInterest",
                "CrossReferences": [
                    {
                        "Source": "Yelp",
                        "SourcePlaceId": "starbucks-seattle-12"
                    }
                ]
            }
        }
    ]
}
```

------
#### [ cURL ]

```
curl --request POST \
  --url 'https://places.geo.eu-central-1.amazonaws.com/v2/suggest?key=Your_Key' \
  --header 'Content-Type: application/json' \
  --data '{
    "QueryText": "Starbucks downtown",
    "BiasPosition": [-122.3321, 47.6062],
    "AdditionalFeatures": ["CrossReferences"]
}'
```

------
#### [ AWS CLI ]

```
aws geo-places suggest --key ${YourKey} --query-text "Starbucks downtown" --bias-position -122.3321 47.6062 --additional-features CrossReferences
```

------

## デベロッパー向けのヒント
<a name="suggest-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) を参照してください。