Geo::Direction::Name::Spec::Chinese - Add chinese traditional direction specification to Geo::Direction::Name
# After install this module: use Geo::Direction::Name; my $dirn = Geo::Direction::Name->new({spec=>'chinese',locale=>'ja_JP'}); my $dir = $dirn->from_string('�q'); # 0.000 my $str = $dirn->to_string(45.0,{ devide => 8 }); # ��
Geo::Direction::Name::Spec::Chinese adds chinese traditional direction specification to Geo::Direction::Name.
Chinese traditional direction has some variation of specification, so this module select specification by deviding number of direction.
Bagua specification
Deviding number is 8. You can see information of Bagua specification in http://en.wikipedia.org/wiki/Bagua_(concept).
Dizhi specification
Deviding number is 12. You can see information of Dizhi specification in http://en.wikipedia.org/wiki/Dizhi.
Tiangan, Dizhi and Bagua combined specification
Deviding number is 24. Combined Bagua, Dizhi, and Tiangan specifications. You can see information of Tiangan specification in http://en.wikipedia.org/wiki/Celestial_stem.
new
allowed_dev
default_dev
locale
to_string
from_string
OHTSUKA Ko-hei <nene@kokogiko.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Geo::Direction::Name::Spec::Chinese, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Direction::Name::Spec::Chinese
CPAN shell
perl -MCPAN -e shell install Geo::Direction::Name::Spec::Chinese
For more information on module installation, please visit the detailed CPAN module installation guide.