Skip to content
atrieuPublic

About

An OCaml implementation of Google's Open Location Code.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Oolc

Oolc is an OCaml implementation of Open Location Code.

Oolc is a library providing the following functions:

isValid : string -> bool
isShort : string -> bool
isFull : string -> bool
encode : ?codeLength : int -> float -> float -> string
decode : string -> codeArea
shortenBy4 : string -> float -> float -> string
shortenBy6 : string -> float -> float -> string
recoverNearest : string -> float -> float -> string

Dependencies

Oolc is written in OCaml and requires OCaml >= 4.01.0 and ocamlfind to install.

Installation

  • To install with OPAM (recommended):

      opam install oolc
    
  • To get the development version and compile:

      git clone [email protected]:atrieu/Oolc.git
      cd Oolc/
      ocaml setup.ml -configure
      ocaml setup.ml -build
      ocaml setup.ml -install
    

About

An OCaml implementation of Google's Open Location Code.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages