

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 如何从建议中获取交叉引用
<a name="how-to-suggest-cross-references"></a>

在`AdditionalFeatures`参数`CrossReferences`中包含以检索地点建议的第三方供应商标识符。

## 潜在使用案例
<a name="suggest-cross-references-use"></a>
+ **预览集成：**在用户选择地点之前，在建议旁边显示第三方标识符。
+ **Pre-fetch 评论：**当用户浏览建议时，使用供应商 ID 预加载评论数据。

## 示例
<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 内容 API](https://docs.terra.tripadvisor.com/docs/overview)。