Skip to main content

Module geolocation

Module geolocation 

Source
Expand description

Types used to request geographic position data from the embedding layer.

See https://www.w3.org/TR/geolocation/.

Structs§

GeolocationError
A failure to acquire a position, as reported by the embedding layer.
GeolocationPositionData
A position acquired from the underlying system.
GeolocationRequestOptions
Hints about how a position should be acquired.
GeolocationWatchId
Identifies a single ongoing watchPosition() subscription. A subscription lives as long as the Document that started it, so the identifier is scoped to a pipeline rather than being globally unique.

Enums§

GeolocationErrorKind
The reason a position could not be acquired. These map directly onto the constants of GeolocationPositionError.

Type Aliases§

GeolocationResult
The reply sent back to script for a one-shot position request, or for each update of an ongoing watch.