Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Geo::Coder::Many::OSM(User Contributed Perl DocumentatGeo::Coder::Many::OSM(3)

NAME
       Geo::Coder::Many::OSM - OpenStreetMap Nominatim plugin for
       Geo::Coder::Many

VERSION
       Version 0.02

SYNOPSIS
       This module adds	OpenStreetMap Nominatim	support	to Geo::Coder::Many.

       Use as follows:

	   use Geo::Coder::Many;
	   use Geo::Coder::OSM;

	   my $options = { };
	   my $geocoder_many = 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.
	   # Please check the Nominatim	usage policy.
	       daily_limit => 5000,
	   };

	   $geocoder_many->add_geocoder( $osm_options );

	   my $location	= $geocoder_many->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

perl v5.24.1			  2017-01-31	      Geo::Coder::Many::OSM(3)

NAME | VERSION | SYNOPSIS | USAGE POLICY | SUBROUTINES/METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Geo::Coder::Many::OSM&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help