Geo::Coordinates - Basic class for geographical coordinates
use Geo::Coordinates; my $place = new Geo::Coordinates; $place->latitude(59.78); $place->longitude(10.12);
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 the Astro::SolarParallax manpage, 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.
the Geo::Distance manpage, the Geo::Coordinates::DecimalDegrees manpage, the Geo::Coordinates::UTM manpage and the DateTime::Util::Astro::Common manpage, http://wiki.bluedevbox.com/newgeo/new.htm
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.
Kjetil Kjernsmo, kjetilk@cpan.org
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.