NAME

Geo::StreetAddress::FR - Perl extension for parsing French street addresses

SYNOPSIS

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;

DESCRIPTION

Geo::StreetAddress::FR is a street address parser for France.

METHODS

parse

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.

BUGS AND LIMITATIONS

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.

SEE ALSO

Geo::StreetAddress::US

Ideas and part of the code are coming from this module.

AUTHOR

franck cuny <franck.cuny@gmail.com>

LICENCE AND COPYRIGHT

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.