Module Geometry.Position

type t

A position - a longitude and latitude with an optional altitude

val long : t -> float

The longitude value of the position

val lat : t -> float

The latitude value of the position

val altitude : t -> float option

Optional altitude/elevation value of the position

val equal : t -> t -> bool

Whether two positions are equal by comparing each value

val v : ?altitude:float -> long:float -> lat:float -> unit -> t

A position constructor

val of_json : json -> (t[ `Msg of string ]) Stdlib.result
val to_json : t -> json