Geo::Coordinates::Converter::Format::ISO6709 - ISO6709 support for Geo::Coordinates::Converter
use Geo::Coordinates::Converter; use Geo::Coordinates::Converter::Point::ISO6709; my $geo = Geo::Coordinates::Converter->new( point => Geo::Coordinates::Converter::Point::ISO6709->new({ iso6709 => '+35.36083+138.72750+3776CRSWGS_84/', }), ); $geo->format('dms'); say $geo->lat; # 35.21.38.988 say $geo->lon; # 138.43.39.000 say $geo->height; # 3776
lat/lng to ISO6709
my $geo = Geo::Coordinates::Converter->new( lat => '35.360833', lng => '138.727500', ); $geo->format('iso6709'); say $geo->point->geohash; # +35.360833+138.7275/
Geo::Coordinates::Converter::Format::ISO6709 is encodes and decodes ISO6709 format.
Kazuhiro Osawa <yappo {at} shibuya {dot} pl>
http://en.wikipedia.org/wiki/ISO_6709, Geo::Coordinates::Converter::Point::ISO6709, Geo::Coordinates::Converter
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Geo::Coordinates::Converter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Coordinates::Converter
CPAN shell
perl -MCPAN -e shell install Geo::Coordinates::Converter
For more information on module installation, please visit the detailed CPAN module installation guide.