NAME

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

SYNOPSIS

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' );

DESCRIPTION

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.

METHODS

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

geocode

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}.

GEOCODER_CLASS

This returns 'Geo::Coder::TomTom'.

GEOCODER_SITE

This returns 'http://routes.tomtom.com/';

SEE ALSO

Geo::Coder::TomTom 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-2012 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.