Data::FR::Town - Provides data about french town (INSEE code, ZIP/postal code, name...)
Version 0_03
This module provides basic data about french towns.
use Data::FR::Town; # Multiple ways to get the same town my $town1 = Data::FR::Town->new( {insee => "01001"}); my $town2 = Data::FR::Town->new( {zip => "01400"}); my $town3 = Data::FR::Town->find( {insee => "01001"}); my $town3 = Data::FR::Town->find( {zip => "01400"}); Now you can get data about the selected town, using the getters : my $zip = $town1->zip(); my $name = $town1->name(); my $cname = $town1->cname(); ...
Return a town object selected through the specified parameters.
%params accept two valid keys : 'insee' and 'zip' to specfy the town.
Return the INSEE code associated to this town
Return the zip/postal code associated to this town
Return the article associated to this town, as some french town may have one. (La Courneuve)
Return the name of the town The first letter is uppercased the other ones are lowercase
Return the capitalized name of the town All letters are (non accentuated) uppercase.
Return the department's number
Return the department's name
This version is based on the data from the INSEE site : http://www.insee.fr/fr/methodes/nomenclatures/cog/telechargement/2012/txt/comsimp2012.zip
As this data is free and quite stable, the information about the INSEE code, name are quite accurate.
The information about the postal/zip code is however much more difficult to get AND subject to change.
I'll try to keep the postal/zip codes up to date, but anyone knowing a way to get automatically these data could greatly contribute by telling it (or providing the data)
Don't hesitate to contact me on this subject.
Arnaud (Arhuman) ASSAD, <arhuman at gmail.com>
<arhuman at gmail.com>
Please report any bugs or feature requests to bug-data-fr-town at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-FR-Town. I will be notified, and then you'll
bug-data-fr-town at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Data::FR::Town
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-FR-Town
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Data-FR-Town
CPAN Ratings
http://cpanratings.perl.org/d/Data-FR-Town
Search CPAN
http://search.cpan.org/dist/Data-FR-Town/
Copyright 2012 Arnaud (Arhuman) ASSAD.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Data::FR::Town, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::FR::Town
CPAN shell
perl -MCPAN -e shell install Data::FR::Town
For more information on module installation, please visit the detailed CPAN module installation guide.