Learn R Programming

Open Location Codes in R

An R implementation of the Google Open Location Codes standard.

Author: Oliver Keyes License: MIT Status: Stable

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.

Installation

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

install.packages("olctools")

Alternately, the development version can be obtained through:

devtools::install_github("ironholds/olctools")

Copy Link

Version

Install

install.packages('olctools')

Monthly Downloads

111

Version

0.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 9th, 2016

Functions in olctools (0.3.0)

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