OHTSUKA Ko-hei > Geo-iArea-0.0.1 > Geo::iArea

Download:
Geo-iArea-0.0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.0.1   Source  

NAME ^

Geo::iArea - Convert latitude/longitude data to NTT DoCoMo's iArea data

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.

CONSTRUCTOR ^

FUNCTIONS ^

Geo::iArea requires no configuration files or environment variables.

DEPENDENCIES ^

None.

INCOMPATIBILITIES ^

None reported.

BUGS AND LIMITATIONS ^

No bugs have been reported.

Please report any bugs or feature requests to bug-geo-iarea@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR ^

OHTSUKA Ko-hei <nene@kokogiko.net>

LICENCE AND COPYRIGHT ^

Copyright (c) 2008, OHTSUKA Ko-hei <nene@kokogiko.net>.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

DISCLAIMER OF WARRANTY ^

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

syntax highlighting: