dns

An opinionated Domain Name System (DNS) library
Library dns
Module Dns . Loc
type t = {
latitude : int32;
longitude : int32;
altitude : int32;
size : int;
horiz_pre : int;
vert_pre : int;
}

The type of a Loc record.

val parse : latitude:((int32 * int32 * int32) * [ `North | `South ]) -> longitude:((int32 * int32 * int32) * [ `East | `West ]) -> altitude:int64 -> precision:(int64 * int64 * int64) -> t

parse ~latitude ~longitude ~altitude ~precision Parse a human-readable format to a Loc record.

latitude and longitude are represented by ((degress, mintues, seconds), direction)

altitude is the altitude in centimeters.

precision is represented by (size, horizontal precision, vertical percision) in meters.

val to_string : t -> string
val pp : t Fmt.t

pp ppf t pretty-prints the Loc record t on ppf.

val compare : t -> t -> int

compare a b compares the Loc record a with b.