olctools v0.3.0


Monthly downloads



Open Location Code Handling in R

'Open Location Codes' <http://openlocationcode.com/> are a Google-created standard for identifying geographic locations. 'olctools' provides utilities for validating, encoding and decoding entries that follow this standard.


Open Location Codes in R

An R implementation of the Google Open Location Codes standard.

Author: Oliver Keyes
License: MIT
Status: Stable

downloads Travis-CI Build Status

The Google Open Location Code standard allows you to encode the latitude and longitude of an area into a compressed string, resolving it down to a 14 square meter box. olctools provides a fast, vectorised R implementation of this standard that you can use to encode, decode, shorten, expand or validate OLCs.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.


olctools depends on Rcpp but is otherwise dependency-free! It can be grabbed from CRAN with:


Alternately, the development version can be obtained through:


Functions in olctools

Name Description
encode_olc Encode Latitude and Longitude Pairs as Open Location Codes
decode_olc Decode Open Location Codes into Latitude and Longitude Pairs
shorten_olc Shorten Full Open Location Codes
validate_olc Check the Validity of Open Location Codes
olctools Tools for handling Open Location Codes
recover_olc Recover Full Open Location Codes From Shortened Codes
No Results!

Vignettes of olctools

No Results!

Last month downloads


Type Package
Date 2016-05-07
License MIT + file LICENSE
LinkingTo Rcpp
VignetteBuilder knitr
RoxygenNote 5.0.1
URL https://github.com/Ironholds/olctools
BugReports https://github.com/ironholds/olctools/issues
NeedsCompilation yes
Packaged 2016-05-08 23:21:34 UTC; ironholds
Repository CRAN
Date/Publication 2016-05-09 06:25:08
suggests knitr , testthat
imports Rcpp
Contributors Oliver Keyes

Include our badge in your README