

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

# 交差点を取得する方法
<a name="get-intersections"></a>

`Intersections` では、近くのすべての交差を取得できます。これは、緊急サービスや配送業者が使用することが考えられます。

## 想定されるユースケース
<a name="get-intersections-use"></a>
+ **緊急対応:** 緊急対応車両は、多くの場合、通話に応答するときに最適な配置を行うために、近くの交差点を特定する必要があります。これにより、複数のアプローチからの可視性を確保しながら、明確なアクセスルートを維持し、応答時間を短縮できます。
+ **配送業者:** 配送業者は交差点データを利用して、特にドアツードアの駐車が制限されたり制限されたりする可能性のある密集した都市部で、より効率的な駐車場所を見つけられます。

## 例
<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"
```

------