| 1 | package Geo::Coordinates::Converter::Point::Geohash; | ||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use parent 'Geo::Coordinates::Converter::Point'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use Class::Accessor::Lite ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | rw => [qw/ geohash /], | |
| 7 | 3 | ); | |
| 8 | |||
| 9 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 10 | 2 | my($class, $args) = @_; | |
| 11 | 2 | my $geohash = delete $args->{geohash}; | |
| 12 | |||
| 13 | 2 | my $self = $class->SUPER::new($args); | |
| 14 | |||
| 15 | 2 | delete $self->{lat}; | |
| 16 | 2 | delete $self->{lng}; | |
| 17 | 2 | $self->{geohash} = $geohash; | |
| 18 | |||
| 19 | 2 | $self; | |
| 20 | } | ||
| 21 | |||
| 22 | 3 | 1; | |
| 23 | __END__ | ||