| 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.06'; | |
| 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 | 0 | ▶ | sub add { |
|
Subroutine
add: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 54 | 0 | my $self=shift; | |
| 55 | 0 | return $self->parent->call("measure/add", | |
| 56 | "Geo::WebService::OpenCellID::Response::measure::add", | ||
| 57 | @_); | ||
| 58 | } | ||
| 59 | |||
| 60 | =head1 COPYRIGHT | ||
| 61 | |||
| 62 | Copyright (c) 2025 Michael R. Davis | ||
| 63 | |||
| 64 | This program is free software; you can redistribute | ||
| 65 | it and/or modify it under the same terms as Perl itself. | ||
| 66 | |||
| 67 | The full text of the license can be found in the | ||
| 68 | LICENSE file included with this module. | ||
| 69 | |||
| 70 | =cut | ||
| 71 | |||
| 72 | 4 | 1; | |