-
-
26 Jul 2010 10:31:11 UTC
- Distribution: Geo-Coder-Many
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (4)
- Testers (0 / 17 / 27)
- Kwalitee
Bus factor: 1- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (55.46KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Dan Horgan
- Dependencies
- HTTP::Request
- List::MoreUtils
- List::Util
- List::Util::WeightedRoundRobin
- Net::Ping
- Time::HiRes
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- USAGE POLICY
- SUBROUTINES/METHODS
- AUTHOR
- BUGS
- SUPPORT
- ACKNOWLEDGEMENTS
- LICENSE AND COPYRIGHT
NAME
Geo::Coder::Many::OSM - OpenStreetMap Nominatim plugin for Geo::Coder::Many
VERSION
Version 0.01
SYNOPSIS
This module adds OpenStreetMap Nominatim support to Geo::Coder::Many.
Use as follows:
use Geo::Coder::Many; use Geo::Coder::OSM; use Geo::Coder::Many::OSM; my $options = { }; my $geocoder_multi = Geo::Coder::Many->new( $options ); my $osm = Geo::Coder::OSM->new; my $osm_options = { geocoder => $osm, # This limit should not be taken as necessarily valid. Check the Nominatim usage policy. daily_limit => 5000, }; $geocoder_multi->add_geocoder( $osm_options ); my $location = $geocoder_multi->geocode( { location => '82 Clerkenwell Road, London, EC1M 5RF' } );
USAGE POLICY
Be careful to limit the number of requests you send, or risk being blocked.
See http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy for details.
SUBROUTINES/METHODS
geocode
This is called by Geo::Coder::Many - it sends the geocoding request (via Geo::Coder::OSM) and extracts the resulting location, returning it in a standard Geo::Coder::Many::Response.
get_name
Returns the name of the geocoder type - used by Geo::Coder::Many
AUTHOR
Dan Horgan,
<cpan at lokku.com>
BUGS
Please report any bugs or feature requests to
bug-geo-coder-multiple-osm at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Geo-Coder-Many-OSM. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Geo::Coder::Many::OSM
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
This module is based on the Geo::Coder::Many::* modules that are provided with Geo::Coder::Many. It is, of course, useless without Geo::Coder::Many and Geo::Coder::OSM.
LICENSE AND COPYRIGHT
Copyright 2010 Lokku Ltd.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Module Install Instructions
To install Geo::Coder::Many, copy and paste the appropriate command in to your terminal.
cpanm Geo::Coder::Many
perl -MCPAN -e shell install Geo::Coder::Many
For more information on module installation, please visit the detailed CPAN module installation guide.