Geo::Coder::Free::Local - Provides an interface to locations that you know yourself. For example, I have found locations by using GPS apps on a smartphone and by inspecting GeoTagged photographs using https://github.com/nigelhorne/NJH-Snippets/blob/master/bin/geotag or by using the app GPSCF which are included here.
Version 0.35
use Geo::Coder::Free::Local; my $geocoder = Geo::Coder::Free::Local->new(); my $location = $geocoder->geocode(location => 'Ramsgate, Kent, UK');
Geo::Coder::Free::Local provides an interface to your own location data.
$geocoder = Geo::Coder::Free::Local->new();
$location = $geocoder->geocode(location => $location); print 'Latitude: ', $location->lat(), "\n"; print 'Longitude: ', $location->long(), "\n"; # TODO: # @locations = $geocoder->geocode('Portland, USA'); # diag 'There are Portlands in ', join (', ', map { $_->{'state'} } @locations);
$location = $geocoder->reverse_geocode(latlng => '37.778907,-122.39732');
Does nothing, here for compatibility with other geocoders
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.
The data are stored in the source, they should be read in from somewhere else to make it easier for non-authors to add data.
Copyright 2020-2024 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::Coder::Free, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Coder::Free
CPAN shell
perl -MCPAN -e shell install Geo::Coder::Free
For more information on module installation, please visit the detailed CPAN module installation guide.