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

FreeBSD Manual Pages

  
 
  

home | help
Geo::Coder::Multimap(3User Contributed Perl DocumentatiGeo::Coder::Multimap(3)

NAME
       Geo::Coder::Multimap - Geocode addresses	with the Multimap Open API

SYNOPSIS
	   use Geo::Coder::Multimap;

	   my $geocoder	= Geo::Coder::Multimap->new(apikey => 'Your API	Key');
	   my $location	= $geocoder->geocode(
	       location	=> 'Hollywood and Highland, Los	Angeles, CA, US'
	   );

DESCRIPTION
       The "Geo::Coder::Multimap" module provides an interface to the
       geocoding functionality of the Multimap Open API.

METHODS
   new
	   $geocoder = Geo::Coder::Multimap->new(apikey	=> 'Your API Key')

       Creates a new geocoding object.

       An API key can be obtained here:
       <https://www.multimap.com/openapi/signup/>.

       Accepts an optional ua parameter	for passing in a custom	LWP::UserAgent
       object.

   geocode
	   $location = $geocoder->geocode(location => $loc)
	   $location = $geocoder->geocode(location => $loc, country => $code)
	   @locations =	$geocoder->geocode(location => $loc)

       The "location" string should either include the country or the
       "country" paramter should be given. Note, the "country" parameter will
       produce better results in most cases.

       In scalar context, this method returns the first	location result; and
       in list context it returns all locations	results.

       Each location result is a hashref; a typical example looks like:

	   {
	       'geocode_quality' => '3a',
	       'point'		 => {
		   'lat' => '34.10156',
		   'lon' => '-118.33872'
	       },
	       'zoom_factor' =>	14,
	       'address'     =>	{
		   'postal_code'  => '90028',
		   'country_code' => 'US',
		   'areas'	  => [ 'HOLLYWOOD', 'CA' ],
		   'display_name' => 'HOLLYWOOD, CA, 90028'
	       },
	       'geocode_score' => '0.409'
	   }

   ua
	   $ua = $geocoder->ua()
	   $ua = $geocoder->ua($ua)

       Accessor	for the	UserAgent object.

SEE ALSO
       <http://www.multimap.com/openapidocs/1.2/web_service/ws_geocoding.htm>

       Geo::Coder::Bing, Geo::Coder::Google, Geo::Coder::Mapquest,
       Geo::Coder::Yahoo

REQUESTS AND BUGS
       Please report any bugs or feature requests to
       <http://rt.cpan.org/Public/Bug/Report.html?Queue=Geo-Coder-Multimap>.
       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::Multimap

       You can also look for information at:

       o   GitHub Source Repository

	   <http://github.com/gray/geo-coder-multimap>

       o   AnnoCPAN: Annotated CPAN documentation

	   <http://annocpan.org/dist/Geo-Coder-Multimap>

       o   CPAN	Ratings

	   <http://cpanratings.perl.org/d/Geo-Coder-Multimap>

       o   RT: CPAN's request tracker

	   <http://rt.cpan.org/Public/Dist/Display.html?Name=Geo-Coder-Multimap>

       o   Search CPAN

	   <http://search.cpan.org/dist/Geo-Coder-Multimap>

COPYRIGHT AND LICENSE
       Copyright (C) 2009 gray <gray at	cpan.org>, all rights reserved.

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHOR
       gray, <gray at cpan.org>

perl v5.24.1			  2009-09-30	       Geo::Coder::Multimap(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | REQUESTS AND BUGS | SUPPORT | COPYRIGHT AND LICENSE | AUTHOR

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

home | help