Tom Wyant
and 1 contributors

NAME

Astro::App::Satpass2::Geocode::OSM - Wrapper for Geo::Coder::OSM

SYNOPSIS

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

DESCRIPTION

This class wraps the Geo::Coder::OSM 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::OSM 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::OSM'.

GEOCODER_SITE

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

SEE ALSO

Geo::Coder::OSM 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-2015 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.