Module Brr_io.Geolocation
Access to device location.
See Geolocation API.
module Error : sig ... endPosition errors.
module Pos : sig ... endPositions.
val opts :
?high_accuracy:bool ->
?timeout_ms:int ->
?maximum_age_ms:int ->
unit ->
Brr_io.Geolocation.optsopts ~high_accuracy ~maximum_age_ms ~timeout_ms () are geolocalisation options.
Geolocalizing
The type for device Geolocation objects.
of_navigator n is a device geolocalisation object for navigator n.
val get :
?opts:Brr_io.Geolocation.opts ->
Brr_io.Geolocation.t ->
(Brr_io.Geolocation.Pos.t, Brr_io.Geolocation.Error.t) Fut.resultget l ~opts is the position of l determined with options opts.
val watch :
?opts:Brr_io.Geolocation.opts ->
Brr_io.Geolocation.t ->
((Brr_io.Geolocation.Pos.t, Brr_io.Geolocation.Error.t) Stdlib.result ->
unit) ->
Brr_io.Geolocation.watch_idval unwatch : Brr_io.Geolocation.t -> Brr_io.Geolocation.watch_id -> unitval to_jv : Brr_io.Geolocation.t -> Jv.jvval of_jv : Jv.jv -> Brr_io.Geolocation.t