Geo::iArea is a Perl module that requires no configuration files or environment variables.
SYNOPSIS
use Geo::iArea;
# Convert from latitude/longitude data
# If specified 2 arguments, judge them as latitude/longitude.
# latitude/longitude must be wgs84 datum.
my $ia = Geo::iArea->new(35.0000,135.0000);
# You can also make iArea object from iArea code.
# If argument is only 1 and it is 5 digits, it is judged as iArea code.
my $ia = Geo::iArea->new('25100');
# You can also make iArea object from 2~7 level mesh code.
# If argument is only 1 and it is 6~11 digits, it is judged as mesh code.
my $ia = Geo::iArea->new('52354000000');
# After create iArea object, you can access to iArea property.
my $name = $ia->name # Name of area.
my $region = $ia->region # Name of Japanese region which the area is included.
my $pref = $ia->pref # Name of prefecture which the area is included.
my ( $min_lat, $min_lng, $max_lat, $max_lng ) = $ia->rectangle();
# Return MBR rectange data of given iArea.
my ( $cen_lat, $cen_lng ) = $ia->center();
# Return center data of given iArea.
Product's homepage
Requirements:
· Perl