Skip to content

Geolocation

Values

clearWatch

let clearWatch: (WebAPI.GeolocationAPI.geolocation, int) => unit

Parameters

WebAPI.GeolocationAPI.geolocation int

Return type

unit

getCurrentPosition

let getCurrentPosition: (
WebAPI.GeolocationAPI.geolocation,
~successCallback: WebAPI.GeolocationAPI.positionCallback,
~errorCallback: WebAPI.GeolocationAPI.positionErrorCallback=?,
~options: WebAPI.GeolocationAPI.positionOptions=?,
) => unit

watchPosition

let watchPosition: (
WebAPI.GeolocationAPI.geolocation,
~successCallback: WebAPI.GeolocationAPI.positionCallback,
~errorCallback: WebAPI.GeolocationAPI.positionErrorCallback=?,
~options: WebAPI.GeolocationAPI.positionOptions=?,
) => int