Home > @magiclane/maps-sdk > TimezoneService > getTimezoneInfoFromCoordinatesSync
TimezoneService.getTimezoneInfoFromCoordinatesSync() method
Synchronously gets timezone info based on a coordinate and a timestamp
**Parameters**
* **IN** *coords* The location from where to get the timezone result * **IN** *time* The time for which offsets are calculated (UTC)
**Returns**
* A TimezoneResult if the operation was successful, null otherwise
**Throws**
* An exception if it fails.
Signature:
static getTimezoneInfoFromCoordinatesSync(params: {
coords: Coordinates;
time: Date;
}): TimezoneResult | null;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
params |
{ coords: Coordinates; time: Date; } |
params properties:
- coords: Coordinates
- time: Date
Returns:
TimezoneResult | null