NAME

Geo::Coder::YahooJapan::Inverse - a simple wrapper for Yahoo Japan Inverse Geocoder API

SYNOPSIS

  use Geo::Coder::YahooJapan::Inverse;
  $r = invlookup( $latitude, $longitude ); # coordinate in WGS84, format in degree.
  my $address = $r->{address}; # Return address in string with utf-8 flag.

  # if you want to give coordinate in TOKYO datum, specify it in option.
  $r = invlookup( $latitude, $longitude, { datum => 'tokyo' } );

  # $r->{addressitem} has structure of address, devided by prefecture, city, town, and so on.
  my $address = join("",@{$r->{addressitem}}); # Same as $r->{address}.

  # $r->{code} has Japanese government's address code.
  my $code = $r->{code};

DESCRIPTION

Geo::Coder::YahooJapan::Inverse is a wrapper for Yahoo Japan Inverse Geocoder API. This API is unofficial, so you should use this module at your own risk.

invlookup(latitude, longitude, opts)

Invlookup is an only method in this package that returns address information in an hash reference. You can give coordinate in WGS84(default) or TOKYO(set datum option) datum, and in degree format.

DEPENDENCIES

HTTP::Request LWP::UserAgent Location::GeoTool XML::Simple

SEE ALSO

Geo::Coder::YahooJapan

AUTHOR

OHTSUKA Ko-hei <nene@kokogiko.net>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by OHTSUKA Ko-hei

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.