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


Geo-Coder-YahooJapan-Inverse documentation  | view source Contained in the Geo-Coder-YahooJapan-Inverse distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

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

SEE ALSO

Top

Geo::Coder::YahooJapan

AUTHOR

Top

OHTSUKA Ko-hei <nene@kokogiko.net>

COPYRIGHT AND LICENSE

Top


Geo-Coder-YahooJapan-Inverse documentation  | view source Contained in the Geo-Coder-YahooJapan-Inverse distribution.