Module Brr_io.Geolocation
Access to device location.
See Geolocation API.
module Error : sig ... end
Position errors.
module Pos : sig ... end
Positions.
val opts : ?high_accuracy:bool -> ?timeout_ms:int -> ?maximum_age_ms:int -> unit -> opts
opts ~high_accuracy ~maximum_age_ms ~timeout_ms ()
are geolocalisation options.
Geolocalizing
type t
The type for device
Geolocation
objects.
of_navigator n
is a device geolocalisation object for navigatorn
.
val get : ?opts:opts -> t -> (Pos.t, Error.t) Fut.result
get l ~opts
is the position ofl
determined with optionsopts
.