Geography::JapaneseMunicipals - Japanese Municipals Data.
use utf8; use Geography::JapaneseMunicipals; my $names = Geography::JapaneseMunicipals->municipals_in('北海道'); my $name = Geography::JapaneseMunicipals->municipal_name('01202'); my $id = Geography::JapaneseMunicipals->municipal_id('東京都渋谷区'); my $infos = Geography::JapaneseMunicipals->municipal_infos('13113');
This module allows you to get information on Japanese Municipals names.
my $municipals = Geography::JapaneseMunicipals->municipals(); # => ['岡山市', '倉敷市', ..., '東成瀬村']
get the municipal names in all prefecture.
my $municipals = Geography::JapaneseMunicipals->municipals_in('北海道'); # => ['札幌市', '札幌市中央区', ..., '羅臼町']
get the municipal names in the prefecture.
my $infos = Geography::JapaneseMunicipals->municipal_infos('東京都渋谷区'); # => [{ id => '13113', name => '渋谷区', prefecture => { id => '13', name => '東京都' }, region => { name => '関東' } }] $infos = Geography::JapaneseMunicipals->municipal_infos('13113'); # => [{ id => '13113', name => '渋谷区', prefecture => { id => '13', name => '東京都' }, region => { name => '関東' } }] $infos = Geography::JapaneseMunicipals->municipal_infos('東京都'); # => [{ id => '13101', name => '千代田区', prefecture => { id => '13', name => '東京都' }, region => { name => '関東' } }, ...] $infos = Geography::JapaneseMunicipals->municipal_infos('13'); # => [{ id => '13101', name => '千代田区', prefecture => { id => '13', name => '東京都' }, region => { name => '関東' } }, ...] $infos = Geography::JapaneseMunicipals->municipal_infos(); # => [{ id => '01100', name => '札幌市', prefecture => { id => '1', name => '北海道' }, region => { name => '北海道' } }, ...]
get the informations of the municipal.
my $id = Geography::JapaneseMunicipals->municipal_id('沖縄県那覇市'); # => '47201'
get the municipal id.
my $name = Geography::JapaneseMunicipals->municipal_name('47201'); # => '那覇市'
get the municipal name.
Geography::JapanesePrefectures
Yukio Suzuki <yukio at cpan.org>
svn co http://svn.coderepos.org/share/lang/perl/Geography-JapaneseMunicipals/trunk Geography-JapaneseMunicipals
Geography::JapaneseMunicipals is Subversion repository is hosted at http://coderepos.org/share/. patches and collaborators are welcome.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Geography::JapaneseMunicipals, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geography::JapaneseMunicipals
CPAN shell
perl -MCPAN -e shell install Geography::JapaneseMunicipals
For more information on module installation, please visit the detailed CPAN module installation guide.