Kazuhiro Osawa > Geo-Coordinates-Converter-0.13 > Geo::Coordinates::Converter::Format::ISO6709

Download:
Geo-Coordinates-Converter-0.13.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Geo::Coordinates::Converter::Format::ISO6709 - ISO6709 support for Geo::Coordinates::Converter

SYNOPSIS ^

  use Geo::Coordinates::Converter;
  use Geo::Coordinates::Converter::Point::ISO6709;

  my $geo = Geo::Coordinates::Converter->new(
      point => Geo::Coordinates::Converter::Point::ISO6709->new({
          iso6709 => '+35.36083+138.72750+3776CRSWGS_84/',
      }),
  );
  $geo->format('dms');
  say $geo->lat; # 35.21.38.988
  say $geo->lon; # 138.43.39.000
  say $geo->height; # 3776

lat/lng to ISO6709

  my $geo = Geo::Coordinates::Converter->new(
      lat => '35.360833', lng => '138.727500',
  );
  $geo->format('iso6709');
  say $geo->point->geohash; # +35.360833+138.7275/

DESCRIPTION ^

Geo::Coordinates::Converter::Format::ISO6709 is encodes and decodes ISO6709 format.

AUTHOR ^

Kazuhiro Osawa <yappo {at} shibuya {dot} pl>

SEE ALSO ^

http://en.wikipedia.org/wiki/ISO_6709, Geo::Coordinates::Converter::Point::ISO6709, Geo::Coordinates::Converter

LICENSE ^

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

syntax highlighting: