Home > @magiclane/maps-sdk > TimezoneService > getTimezoneInfoFromCoordinates
TimezoneService.getTimezoneInfoFromCoordinates() method
Async 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) * **IN** *accurateResult* If left 'false' the result will be computed using the available offline resource. If 'true' an HTTP request will be performed for computing the result * **IN** *onComplete* The callback which will be called when the operation completes. * Will be called with GemError.success error and non-null result upon success. * Will be called with GemError.internalAbort error and null result if the result parsing failed or server internal error occurred
**Returns**
* EventDrivenProgressListener for the operation progress if the operation could be started, null otherwise
**Throws**
* An exception if it fails.
Signature:
static getTimezoneInfoFromCoordinates(params: {
coords: Coordinates;
time: Date;
onComplete?: (error: GemError, result?: TimezoneResult) => void;
}): EventDrivenProgressListener | null;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
params |
{ coords: Coordinates; time: Date; onComplete?: (error: GemError, result?: TimezoneResult) => void; } |
params properties:
- coords: Coordinates
- time: Date
- Optional onComplete?: (error: GemError, result?: TimezoneResult) => void
Returns:
EventDrivenProgressListener | null