![]() |
![]()
| ![]() |
![]()
NAMEGeo::Coordinates::Converter - simple converter of geo coordinates SYNOPSISuse strict; use warnings; use Geo::Coordinates::Converter; my $geo = Geo::Coordinates::Converter->new( lat => '35.65580', lng => '139.65580', datum => 'wgs84' ); my $point = $geo->convert( dms => 'tokyo' ); print $point->lat; print $point->lng; print $point->datum; print $point->format; my $clone = $point->clone; my $geo2 = Geo::Coordinates::Converter->new( point => $clone ); my $point2 = $geo->convert( degree => 'wgs84' ); print $point2->lat; print $point2->lng; print $point2->datum; print $point2->format; can you use milliseconds format my $geo = Geo::Coordinates::Converter->new( lat => -128064218, lng => 502629380 ); $geo->format('degree'); is($geo->lat, -35.573394); is($geo->lng, 139.619272); DESCRIPTIONthe format and datum of geo coordinates are simply converted. when it is insufficient in the coordinate system and the format of the standard, it is possible to add it easily. CONSTRUCTOR
Options
METHODS
AUTHORKazuhiro Osawa <yappo {at} shibuya {dot} pl> SEE ALSOGeo::Coordinates::Converter::Point, Geo::Coordinates::Converter::Format, Geo::Coordinates::Converter::Datum LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|