Skip to content

atrieu/Oolc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 git@github.com: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

License

Stars

Watchers

Forks

Packages

No packages published

Languages