

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

# 如何获取交叉路口
<a name="get-intersections"></a>

`Intersections` 支持检索附近的所有交叉路口。紧急救援服务人员和配送快递员可能会用到。

## 潜在使用案例
<a name="get-intersections-use"></a>
+ **应急响应：**应急响应车辆通常需要确定附近的交叉路口，以便在应答呼叫时进行最佳定位。这使他们能够保持清晰的通行路线并更快地作出响应，同时还能确保从多个方向清晰了解情况。
+ **送货快递员：**送货快递员可以利用十字路口数据来寻找更高效的停车位，尤其是在停车位可能有限或受限的密集城市地区 door-to-door。

## 示例
<a name="get-intersections-example"></a>

### 获取辅助地址
<a name="get-secondary-addresses-intersections"></a>

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

```
{
    "QueryText":"910 Beach Avenue, Vancouver",
    "AdditionalFeatures": ["Intersections"]
}
```

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

```
{
    "ResultItems": [
        {
            "PlaceId": "<Redacted>",
            "PlaceType": "PointAddress",
            "Title": "910 Beach Ave, Vancouver, BC V6Z 2W7, Canada",
            "Address": {
                "Label": "910 Beach Ave, Vancouver, BC V6Z 2W7, Canada",
                "Country": {
                    "Code2": "CA",
                    "Code3": "CAN",
                    "Name": "Canada"
                },
                "Region": {
                    "Code": "BC",
                    "Name": "British Columbia"
                },
                "SubRegion": {
                    "Name": "Metro Vancouver"
                },
                "Locality": "Vancouver",
                "District": "Downtown Vancouver",
                "PostalCode": "V6Z 2W7",
                "Street": "Beach Ave",
                "StreetComponents": [
                    {
                        "BaseName": "Beach",
                        "Type": "Ave",
                        "TypePlacement": "AfterBaseName",
                        "TypeSeparator": " ",
                        "Language": "en"
                    }
                ],
                "AddressNumber": "910"
            },
            "Position": [
                -123.13325,
                49.27542
            ],
            "MapView": [
                -123.13463,
                49.27452,
                -123.13187,
                49.27632
            ],
            "MatchScores": {
                "Overall": 1,
                "Components": {
                    "Address": {
                        "Locality": 1,
                        "Intersection": [
                            1
                        ],
                        "AddressNumber": 1
                    }
                }
            },
            "ParsedQuery": {
                "Address": {
                    "Locality": [
                        {
                            "StartIndex": 18,
                            "EndIndex": 27,
                            "Value": "Vancouver",
                            "QueryComponent": "Query"
                        }
                    ],
                    "Street": [
                        {
                            "StartIndex": 4,
                            "EndIndex": 16,
                            "Value": "Beach Avenue",
                            "QueryComponent": "Query"
                        }
                    ],
                    "AddressNumber": [
                        {
                            "StartIndex": 0,
                            "EndIndex": 3,
                            "Value": "910",
                            "QueryComponent": "Query"
                        }
                    ]
                }
            },
            "Intersections": [
                {
                    "PlaceId": "<Redacted>",
                    "Title": "Beach Ave & Hornby St, Vancouver, BC V6Z, Canada",
                    "Address": {
                        "Label": "Beach Ave & Hornby St, Vancouver, BC V6Z, Canada",
                        "PostalCode": "V6Z",
                        "Intersection": [
                            "Beach Ave",
                            "Hornby St"
                        ]
                    },
                    "Position": [
                        -123.1328,
                        49.27536
                    ]
                },
                {
                    "PlaceId": "<Redacted>",
                    "Title": "Beach Ave & Burrard St, Vancouver, BC, Canada",
                    "Address": {
                        "Label": "Beach Ave & Burrard St, Vancouver, BC, Canada",
                        "Intersection": [
                            "Beach Ave",
                            "Burrard St"
                        ]
                    },
                    "Position": [
                        -123.13377,
                        49.27599
                    ]
                }
            ]
        }
    ]
}
```

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

```
curl --request POST \
  --url 'https://places.geo.eu-central-1.amazonaws.com/v2/geocode?key=Your_Key' \
  --header 'Content-Type: application/json' \
  --data '{
    "QueryText":"910 Beach Avenue, Vancouver",
    "AdditionalFeatures": ["Intersections"]
}'
```

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

```
aws geo-places geocode --key ${YourKey} --query-text "910 Beach Avenue, Vancouver" --additional-features "Intersections"
```

------