
Geo::Coordinates::Converter::Point - the coordinates object

use strict;
use warnings;
use Geo::Coordinates::Converter::Point;
my $point = Geo::Coordinates::Converter::Point->new({
lat => '35.65580',
lng => '139.65580',
datum => 'wgs84',
format => 'degree',
});
my $point = Geo::Coordinates::Converter::Point->new({
lat => '35.39.24.00',
lng => '139.40.15.05',
datum => 'wgs84',
format => 'dms',
});
my $clone = $point->clone;
my $new_point = $point->converter( degree => 'wgs84' );

accessor of data concerning coordinates. data is not processed at all.

constructor
accessor of latitude
alias of lat
accessor of longitude
alias of lng
sea level (meters).
accessor of datum. default is wgs84.
accessor of coordinates format
clone object
wrapper of Geo::Coordinates::Converter->convert.
my $new_point = $point->converter(degree => 'wgs84');
the method same code is under.
my $new_point = Geo::Coordinates::Converter->new(
point => $point,
)->convert(degree => 'wgs84');

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

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