olc - encode/decode/shorten/recover Open Location Codes
olc lat,lon[,length] | addr... encode location as OLC, with optional length (default: 10)
olc fullcode decodes a valid full-length OLC into lat,lon.
olc fullcode lat,lon | addr... shortens a valid full-length OLC based on a reference location, identified either by (lat,lon) or by geocoding an address using Geo::Coder::Google.
olc shortcode lat,lon | addr ... recover a full-length OLC from a shortened code, using a reference location.
olc is a simple wrapper for Geo::OLC.
J Greely, <jgreely at cpan.org>
<jgreely at cpan.org>
To install Geo::OLC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::OLC
CPAN shell
perl -MCPAN -e shell install Geo::OLC
For more information on module installation, please visit the detailed CPAN module installation guide.