NAME

Geo::Coordinates - Basic class for geographical coordinates

SYNOPSIS

use Geo::Coordinates;
my $place = new Geo::Coordinates;
$place->latitude(59.78);
$place->longitude(10.12);

DESCRIPTION

IT IS A BAD IDEA TO USE THIS CLASS in its present form! The Geo stuff is undergoing some elaborate revision, see http://wiki.bluedevbox.com/newgeo/new.htm but there was some demand for Astro::SolarParallax, so I needed to get it out the door. Anyway...:

This is a simple Object Oriented implementation of geographical coordinates, latitude and longitude. It is meant to be just a basic class, and won't do a lot on it's own. Basically, it is just a convenient container and abstraction layer. Hey, it's OO!

new()

The constructor of this class. Nothing special.

latitude()

A method to set or retrieve the latitude. To set the latitude, supply a decimal degree argument.

longitude()

As latitude(), but instead sets or retrieves the longitude.

SEE ALSO

Geo::Distance, Geo::Coordinates::DecimalDegrees, Geo::Coordinates::UTM and DateTime::Util::Astro::Common, http://wiki.bluedevbox.com/newgeo/new.htm

BUGS/TODO

This could be a dead end, so it may not be a lot to do, and it is so simple there shouldn't be any bugs either... But, as previously said, don't use it.

AUTHOR

Kjetil Kjernsmo, kjetilk@cpan.org

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Kjetil Kjernsmo

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.