package cordova-plugin-geolocation

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type coordinates = private Ojs.t
val latitude : coordinates -> float option
val longitude : coordinates -> float option
val altitude : coordinates -> float option
val accuracy : coordinates -> float option
val altitude_accuracy : coordinates -> float option
val heading : coordinates -> float option
val speed : coordinates -> float option
type position = private Ojs.t
val coords : position -> coordinates
val timestamp : position -> int
type position_error = private Ojs.t
type position_error_code =
  1. | Permission_denied
  2. | Position_unavailable
  3. | Timeout
val position_error_code : position_error -> position_error_code
val position_error_message : position_error -> string
type options = private Ojs.t
val create_options : ?enable_high_accuracy:bool -> ?timeout:int -> ?maximum_age:int -> unit -> options
val get_current_position : (position -> unit) -> (position_error -> unit) -> ?options:options -> unit -> unit
val watch_position : (position -> unit) -> (position_error -> unit) -> ?options:options -> unit -> int
val clear_watch : int -> unit
OCaml

Innovation. Community. Security.