encode_olc {olctools} | R Documentation |
Encode Latitude and Longitude Pairs as Open Location Codes
Description
encode_olc
creates Open Location Codes from
latitude and longitude values, of a specified length.
Usage
encode_olc(lats, longs, length)
Arguments
lats |
a numeric vector of latitudes. |
longs |
a numeric vector of longitudes, equivalent in size to |
length |
the length you want the resulting OLCs to be. The conventional lengths
are 10 or 11, with any number above 8 and any even number below it being acceptable. |
See Also
decode_olc
for the opposite operation, and shorten_olc
to convert
"full" Open Location Codes to "short" Open Location Codes.
Examples
encode_olc(20.375, 2.775,6)
[Package olctools version 0.3.0 Index]