Geo::StreetAddress::FR - Perl extension for parsing French street addresses
use Geo::StreetAddress::FR; my $adresse = Geo::StreetAddress::FR->new; $adresse->rue("15 grande rue"); $adresse->parse(); print $adresse->numero_voie. " " . $adresse->type_voie. " " .$adresse->nom_voie;
Geo::StreetAddress::FR is a street address parser for France.
parse a street address, returning an address element.
my $res = $adress->parse("bat C 13B route Bordeaux"); print $res->numero_voie; # will print 13 print $res->type_voie; # will print route print $res->nom_voie; # will print Bordeaux print $res->complement; # will print B print $res->extension; # will print bat C
return 'undef' if $adress->message is set, or if the adress can't be parsed.
Please report any bugs or feature requests to bug-geo-streetaddress-fr@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-geo-streetaddress-fr@rt.cpan.org
Geo::StreetAddress::US
Ideas and part of the code are coming from this module.
franck cuny <franck.cuny@gmail.com>
<franck.cuny@gmail.com>
Copyright (c) 2007, franck cuny <franck.cuny@gmail.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Geo::StreetAddress::FR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::StreetAddress::FR
CPAN shell
perl -MCPAN -e shell install Geo::StreetAddress::FR
For more information on module installation, please visit the detailed CPAN module installation guide.