The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Geo::Postcodes::JP::Update - update Japan Post Office postcode data

FUNCTIONS

update_files

    update_files ('ken_all.zip', 'jigyosyo.zip');

Get or update the two CSV files, KEN_ALL.CSV and JIGYOSYO.CSV from the Japan Post website.

The two arguments are the file name of the zipped KEN_ALL.CSV file and the zipped JIGYOSYO.CSV file. If these files exist, the routine tries to check whether the existing files are newer than the files on the post office website, and only downloads if the local files are older.

People who are thinking of running this regularly might like to know that Japan Post usually updates the postcode files on the last day of the month.

AUTHOR

Ben Bullock, <bkb@cpan.org>

COPYRIGHT AND LICENSE

Geo::Postcodes::JP and associated files are copyright (c) 2012 Ben Bullock.

You may use, copy, modify and distribute Geo::Postcodes::JP under the same terms as the Perl programming language itself.