Geo::Coordinates::Converter::Format::IArea - get center point from iArea
use Geo::Coordinates::Converter; use Geo::Coordinates::Converter::iArea; my $geo = Geo::Coordinates::Converter->new( format => 'iarea', areacode => '00205' ); my $point = $geo->convert('degree' => 'wgs84'); print "lat: ", $point->lat, " lng: ", $point->lng, "\n"; # => lat: 42.859220 lng: 141.492367
use Geo::Coordinates::Converter; use Geo::Coordinates::Converter::iArea; my $geo = Geo::Coordinates::Converter->new( format => 'degree', datum => 'tokyo', lat => '42.859220', lng => '141.492367' ); my $point = $geo->convert('iarea'); print $point->areacode, "\n"; # => 00205
use Geo::Coordinates::Converter; use Geo::Coordinates::Converter::iArea; use CGI; use HTTP::MobileAgent; use HTTP::MobileAgent::Plugin::Locator; my $q = CGI->new(); my $agent = HTTP::MobileAgent->new(); my $orig_point = $agent->get_location($q); my $geo = Geo::Coordinates::Converter->new( point => $orig_point->clone ); my $point = $geo->convert('iarea'); print $point->areacode, "\n"; # => 00205
Geo::Coordinates::Converter::Format::IArea is utilities for DoCoMo iArea.
easy to get the center point of area.
areacode accessor
DO NOT USE DIRECTLY
Kazuhiro Osawa, Tokuhiro Matsuno
Geo::Coordinates::Converter::iArea, Location::Area::DoCoMo::iArea
Geo::Coordinates::Converter::iArea
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::iArea, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Coordinates::Converter::iArea
CPAN shell
perl -MCPAN -e shell install Geo::Coordinates::Converter::iArea
For more information on module installation, please visit the detailed CPAN module installation guide.