Geo::Coder::Abbreviations - Quick and Dirty Interface to https://github.com/mapbox/geocoder-abbreviations
Version 0.09
Provides an interface to https://github.com/mapbox/geocoder-abbreviations. One small function for now, I'll add others later.
Creates a Geo::Coder::Abbreviations object. It takes no arguments. If you have HTTP::Cache::Transparent installed it will load much faster, otherwise it will download the database from the Internet when the class is first instantiated.
Abbreviate a place.
use Geo::Coder::Abbreviations;
my $abbr = Geo::Coder::Abbreviations->new();
print $abbr->abbreviate('Road'), "\n"; # prints 'RD'
print $abbr->abbreviate('RD'), "\n"; # prints 'RD'
Normalize and abbreviate street names - useful for comparisons
print $abbr->normalize({ street => '10 Downing Street' }), "\n"; # prints '10 DOWNING ST'
Can be run as a class method
print Geo::Coder::Abbreviations('1600 Pennsylvania Avenue NW'), "\n"; # prints '1600 Pennsylvia Ave NW'
https://github.com/mapbox/geocoder-abbreviations HTTP::Cache::Transparent https://www.mapbox.com/
Nigel Horne, <njh at bandsman.co.uk>
You may need to ensure you don't translate "Cross Street" to "X ST". See t/abbreviations.t.
You can find documentation for this module with the perldoc command.
perldoc Geo::Coder::Abbreviations
You can also look for information at:
-
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Geo-Coder-Abbreviations
-
Search CPAN
Copyright 2020-2024 Nigel Horne.
This program is released under the following licence: GPL2