NAME
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
Version 0.35
SYNOPSIS
use Geo::Coder::Free::Local;
my $geocoder = Geo::Coder::Free::Local->new();
my $location = $geocoder->geocode(location => 'Ramsgate, Kent, UK');
DESCRIPTION
Geo::Coder::Free::Local provides an interface to your own location data.
METHODS
new
$geocoder = Geo::Coder::Free::Local->new();
geocode
$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);
reverse_geocode
$location = $geocoder->reverse_geocode(latlng => '37.778907,-122.39732');
ua
Does nothing, here for compatibility with other geocoders
AUTHOR
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.
BUGS
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.
SEE ALSO
LICENSE AND COPYRIGHT
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>`.