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 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!
The constructor of this class. Nothing special.
A method to set or retrieve the latitude. To set the latitude, supply a decimal degree argument.
latitude(), but instead sets or retrieves the longitude.
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, email@example.com
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.