GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Geo::Coordinates::Converter::Point(3) User Contributed Perl Documentation Geo::Coordinates::Converter::Point(3)

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.

new
constructor
lat
accessor of latitude
latitude
alias of lat
lng
accessor of longitude
longitude
alias of lng
height
sea level (meters).
datum
accessor of datum. default is "wgs84".
format
accessor of coordinates format
clone
clone object
converter
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.
2012-10-03 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.