line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAttribute::Plugin::Locator::AirHPhone::BasicLocation; |
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use base qw( HTTP::MobileAttribute::Plugin::Locator::Base ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
156
|
|
5
|
1
|
|
|
1
|
|
6
|
use Geo::Coordinates::Converter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub get_location { |
8
|
4
|
|
|
4
|
0
|
9
|
my ( $self, $params ) = @_; |
9
|
4
|
|
|
|
|
24
|
my ( $lat, $lng ) = $params->{ pos } =~ /^N([^E]+)E(.+)$/; |
10
|
4
|
|
50
|
|
|
26
|
return Geo::Coordinates::Converter->new( |
|
|
|
50
|
|
|
|
|
11
|
|
|
|
|
|
|
lat => $lat || undef, |
12
|
|
|
|
|
|
|
lng => $lng || undef, |
13
|
|
|
|
|
|
|
datum => 'tokyo', |
14
|
|
|
|
|
|
|
)->convert( 'wgs84' ); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |