dns
An opinionated Domain Name System (DNS) library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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