

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Come invertire la geocodifica per il fuso orario di una città
<a name="how-to-reverse-geocode-timezone"></a>

È possibile utilizzare l'API Reverse Geocode per richiedere informazioni sul fuso orario, come l'offset UTC e il nome del fuso orario

## Potenziale utilizzo
<a name="reverse-geocode-timezone-uses"></a>

Possibili utilizzi per la geocodifica dei fusi orari:
+ Crea un orologio mondiale
+ Pianifica riunioni in diverse aree geografiche

## Esempi
<a name="reverse-geocode-timezone-examples"></a>

### Esempio
<a name="reverse-geocode-timezone-example"></a>

Geocodifica inversa una località a Tokyo, con richiesta del fuso orario.

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

```
{
    "QueryPosition": [
        139.69172,
        35.6895
    ],
    "AdditionalFeatures": [
        "TimeZone"
    ]
}
```

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

```
{
    "ResultItems": [
        {
            "PlaceId": "<Redacted>",
            "PlaceType": "PointAddress",
            "Title": "〒160-0023 東京都新宿区西新宿2丁目8-1",
            "Address": {
                "Label": "〒160-0023 東京都新宿区西新宿2丁目8-1",
                "Country": {
                    "Code2": "JP",
                    "Code3": "JPN",
                    "Name": "日本"
                },
                "Region": {
                    "Name": "東京都"
                },
                "SubRegion": {},
                "Locality": "新宿区",
                "SubDistrict": "西新宿",
                "PostalCode": "160-0023",
                "Block": "2丁目",
                "SubBlock": "8",
                "AddressNumber": "1"
            },
            "Position": [
                139.69171,
                35.68949
            ],
            "Distance": 1,
            "MapView": [
                139.69071,
                35.68861,
                139.69251,
                35.69048
            ],
            "AccessPoints": [
                {
                    "Position": [
                        139.69206,
                        35.68954
                    ]
                }
            ],
            "TimeZone": {
                "Name": "Asia/Tokyo",
                "Offset": "+09:00",
                "OffsetSeconds": 32400
            }
        }
    ]
}
```

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

```
curl --request POST \
  --url 'https://places.geo.eu-central-1.amazonaws.com/v2/reverse-geocode?key=Your_Key' \
  --header 'Content-Type: application/json' \
  --data '{
    "QueryPosition": [
                139.69172,
                35.6895
            ],
    "AdditionalFeatures": [
                "TimeZone"
              ]
}'
```

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

```
aws geo-places reverse-geocode --key ${YourKey} --query-position 139.69172 35.6895 --additional-features "TimeZone"
```

------