Learn R Programming

olctools (version 0.3.0)

decode_olc: Decode Open Location Codes into Latitude and Longitude Pairs

Description

decode_olc takes Open Location Codes and, if they're valid (see validate_full) returns the minium, centred and maximum latitude and longitude for those coordinates.

Usage

decode_olc(olcs)

Arguments

olcs
a vector of Open Location Codes, generated through encode_olc or an equivalent tool.

See Also

encode_olc for the opposite operation, and shorten_olc to convert "full" Open Location Codes to "short" Open Location Codes.

Examples

Run this code
decode_olc("7FG49Q00+")

Run the code above in your browser using DataLab