Geo::Direction::Name::Spec::Chinese - Add chinese traditional direction specification to Geo::Direction::Name


Geo-Direction-Name-Spec-Chinese documentation  | view source Contained in the Geo-Direction-Name-Spec-Chinese distribution.

Index


NAME

Top

Geo::Direction::Name::Spec::Chinese - Add chinese traditional direction specification to Geo::Direction::Name

SYNOPSIS

Top

  # 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 });
  # 

DESCRIPTION

Top

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.

OVERRIDE / INTERNAL METHOD

Top

* new
* allowed_dev
* default_dev
* locale
* to_string
* from_string

AUTHOR

Top

OHTSUKA Ko-hei <nene@kokogiko.net>

SEE ALSO

Top

LICENSE

Top

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


Geo-Direction-Name-Spec-Chinese documentation  | view source Contained in the Geo-Direction-Name-Spec-Chinese distribution.