WWW::YahooJapan::KanaAddress - translating the address in Japan into kana.
use WWW::YahooJapan::KanaAddress; my $yahoo = WWW::YahooJapan::KanaAddress->new(); print $yahoo->search('山梨県', '鰍沢町', '鳥屋'), "\n";
results:
やまなしけんかじかざわちょうとや
This class translates the address written in Kanji into Kana by using Yahoo! Japan Maps.
a constructor. You can set a LWP::UserAgent object if you want.
search kana by Yahoo!Japan Maps. The arguments and return values must be unicode strings. ( You can no longer use euc-jp encoded strings from 0.20. )
Prefecture in Japan, should be ended with '都' or '道' or '府' or '県'.
Name of city and district, should be ended with '市' or '区' or '町' or '村'.
The rest of the string of address. It might contain '町' and '字'.
You can use a vague address to some degree. For example:
print $yahoo->search('茨城県', '龍ヶ崎市', '米町'), "\n"; print $yahoo->search('茨城県', '龍崎市', '米町'), "\n"; print $yahoo->search('茨城県', '竜が崎市', '米町'), "\n";
These sentences output the same result. This is a function of Yahoo!Japan Maps.
WWW::YahooJapan::KanaAddress requires no configuration files or environment variables.
LWP::UserAgent, and Yahoo!Japan :-p
None reported.
No bugs have been reported.
Please report any bugs or feature requests to hiratara@cpan.org, or through the web interface at http://rt.cpan.org.
hiratara@cpan.org
Masahiro Honma <hiratara@cpan.org>
<hiratara@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::YahooJapan::KanaAddress, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::YahooJapan::KanaAddress
CPAN shell
perl -MCPAN -e shell install WWW::YahooJapan::KanaAddress
For more information on module installation, please visit the detailed CPAN module installation guide.