Tom Wyant > Astro-App-Satpass2-0.014 > Astro::App::Satpass2::Geocode::Geocoder::US

Download:
Astro-App-Satpass2-0.014.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.014   Source   Latest Release: Astro-App-Satpass2-0.020

NAME ^

Astro::App::Satpass2::Geocode::Geocoder::US - Wrapper for Geo::Coder::Geocoder::US

SYNOPSIS ^

 use Astro::App::Satpass2::Geocode::Geocoder::US;
 use YAML;
 
 my $gc = Astro::App::Satpass2::Geocode::Geocoder::US->new();
 print Dump( $gc->geocode( '10 Downing St, London England' );

DESCRIPTION ^

This class wraps the Geo::Coder::Geocoder::US module, to provide a consistent interface to Astro::App::Satpass2.

This class is a subclass of Astro::App::Satpass2::Geocode.

METHODS ^

This class provides no public methods in addition to those provided by its superclass. However, it overrides the following methods:

geocode

The data returned by Geo::Coder::Geocoder::US are mapped to data returned by this method as follows:

 description - comes from {display_name};
 latitude ---- comes from {lat};
 longitude --- comes from {lon}.

GEOCODER_CLASS

This returns 'Geo::Coder::Geocoder::US'.

GEOCODER_SITE

This returns 'http://nominatim.openstreetmap.org/'.

SEE ALSO ^

Geo::Coder::Geocoder::US for the details on the heavy lifting.

SUPPORT ^

Support is by the author. Please file bug reports at http://rt.cpan.org, or in electronic mail to the author.

AUTHOR ^

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE ^

Copyright (C) 2011-2013 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.

syntax highlighting: