Geo::Location - Location information
Version 0.01
use Geo::Location; my $location = Geo::Location->new();
Geo::Location stores a place.
$location = Geo::Location->new();
print 'Latitude: ', $location->lat(), "\n"; print 'Longitude: ', $location->long(), "\n";
Determine the distance between two locations, returns a Class::Measure::Length object.
Get/set location attributes, e.g. city
$location->city('London'); $location->country('UK'); print $location->as_string(), "\n";
Prints the object in human-readable format.
Nigel Horne <njh@bandsman.co.uk>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
GIS::Distance, Geo::Point
Copyright 2019 Nigel Horne.
The program code is released under the following licence: GPL2 for personal use on a single computer. All other users (including Commercial, Charity, Educational, Government) must apply in writing for a licence for use from Nigel Horne at `<njh at nigelhorne.com>`.
To install Geo::Location, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Location
CPAN shell
perl -MCPAN -e shell install Geo::Location
For more information on module installation, please visit the detailed CPAN module installation guide.