package oolc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type codeArea = {
  1. latitudeLo : float;
  2. longitudeLo : float;
  3. latitudeHi : float;
  4. longitudeHi : float;
  5. latitudeCenter : float;
  6. longitudeCenter : float;
  7. codeLength : int;
}
exception Not_valid
exception Invalid_Open_Location_Code_length
val isValid : string -> bool
val isShort : string -> bool
val isFull : string -> bool
val encode : ?codeLength:int -> float -> float -> string
val decode : string -> codeArea
val shortenBy4 : string -> float -> float -> string
val shortenBy6 : string -> float -> float -> string
val recoverNearest : string -> float -> float -> string
OCaml

Innovation. Community. Security.