The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Geography::JapaneseMunicipals - Japanese Municipals Data.

SYNOPSIS

    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');

DESCRIPTION

This module allows you to get information on Japanese Municipals names.

Class Methods

municipals

    my $municipals = Geography::JapaneseMunicipals->municipals();
    # => ['岡山市', '倉敷市', ..., '東成瀬村']

get the municipal names in all prefecture.

municipals_in

    my $municipals = Geography::JapaneseMunicipals->municipals_in('北海道');
    # => ['札幌市', '札幌市中央区', ..., '羅臼町']

get the municipal names in the prefecture.

municipal_infos

    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.

municipal_id

    my $id = Geography::JapaneseMunicipals->municipal_id('沖縄県那覇市');
    # => '47201'

get the municipal id.

municipal_name

    my $name = Geography::JapaneseMunicipals->municipal_name('47201');
    # => '那覇市'

get the municipal name.

SEE ALSO

Geography::JapanesePrefectures

AUTHOR

Yukio Suzuki <yukio at cpan.org>

REPOSITORY

    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.

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.