OpenCellID/measure.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 86.3% 19 / 22 SCAR 0.0
CC
1
Cov
88%
add
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OpenCellID/cell.pm ↑ Summary OpenCellID/Response.pm »
1 package Geo::WebService::OpenCellID::measure;
2 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use base qw{Geo::WebService::OpenCellID::Base};
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Geo::WebService::OpenCellID::Response::measure::add;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 our $VERSION = '0.03';
7  
8 =head1 NAME
9  
10 Geo::WebService::OpenCellID::measure - Perl API for the opencellid.org database
11  
12 =head1 SYNOPSIS
13  
14 use Geo::WebService::OpenCellID;
15 my $gwo=Geo::WebService::OpenCellID->new(key=>$apikey);
16 my $point=$gwo->measure->get(mcc=>$country,
17 mnc=>$network,
18 lac=>$locale,
19 cellid=>$cellid);
20 printf "Lat:%s, Lon:%s\n", $point->latlon;
21  
22 =head1 DESCRIPTION
23  
24 Perl Interface to the database at http://www.opencellid.org/
25  
26 =head1 USAGE
27  
28 =head1 METHODS
29  
30 =head2 add
31  
32 Returns a response object L<Geo::WebService::OpenCellID::Response::measure::add>.
33  
34 my $response=$gwo->cell->add(key=>$myapikey,
35 lat=>$lat,
36 lon=>$lon,
37 mnc=>$mnc,
38 mcc=>$mcc,
39 lac=>$lac,
40 cellid=>$cellid,
41 measured_at=>$dt, #time format is not well defined
42 #use is optional
43 #suggest W3C e.g. 2009-02-28T07:25Z
44 );
45  
46 <?xml version="1.0" encoding="UTF-8" ?>
47 <rsp cellid="126694" id="6121024" stat="ok">
48 <res>Measure added, id:6121024</res>
49 </rsp>
50  
51 =cut
52  
53 sub add {
54 0 ▶ my $self=shift;
Subroutine add: not called CC=1 SCAR=6.9
Pod documented
55 0 return $self->parent->call("measure/add",
56 "Geo::WebService::OpenCellID::Response::measure::add",
57 @_);
58 }
59  
60 =head1 BUGS
61  
62 Submit to RT and email the Author
63  
64 =head1 SUPPORT
65  
66 Try the Author or Try 8motions.com
67  
68 =head1 AUTHOR
69  
70 Michael R. Davis
71 CPAN ID: MRDVT
72 STOP, LLC
73 domain=>michaelrdavis,tld=>com,account=>perl
74 http://www.stopllc.com/
75  
76 =head1 COPYRIGHT
77  
78 This program is free software; you can redistribute
79 it and/or modify it under the same terms as Perl itself.
80  
81 The full text of the license can be found in the
82 LICENSE file included with this module.
83  
84 =head1 SEE ALSO
85  
86 =cut
87  
88 4 1;
« OpenCellID/cell.pm ↑ Summary OpenCellID/Response.pm »