Astro::App::Satpass2::Geocode::TomTom - Wrapper for Geo::Coder::TomTom
use Astro::App::Satpass2::Geocode::TomTom; use YAML; my $gc = Astro::App::Satpass2::Geocode::TomTom->new(); print Dump( $gc->geocode( '1600 Pennsylvania Ave, Washington DC' );
This class wraps the Geo::Coder::TomTom module, to provide a consistent interface to Astro::App::Satpass2.
This class is a subclass of Astro::App::Satpass2::Geocode.
This class provides no public methods in addition to those provided by its superclass. However, it overrides the following methods:
The results returned by the TomTom service include a relevance score. Since we're only doing ad-hoc geocoding, we retain only the results with the highest score. The data returned by Geo::Coder::TomTom are mapped to data returned by this method as follows:
description - comes from {formattedAddress}; latitude ---- comes from {latitude}; longitude --- comes from {longitude}.
This returns 'Geo::Coder::TomTom'.
'Geo::Coder::TomTom'
This returns 'http://routes.tomtom.com/';
'http://routes.tomtom.com/'
Geo::Coder::TomTom for the details on the heavy lifting.
Support is by the author. Please file bug reports at http://rt.cpan.org, or in electronic mail to the author.
Thomas R. Wyant, III wyant at cpan dot org
Copyright (C) 2011-2014 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.
To install Astro::App::Satpass2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::App::Satpass2
CPAN shell
perl -MCPAN -e shell install Astro::App::Satpass2
For more information on module installation, please visit the detailed CPAN module installation guide.