| line | % | coverage | condition |
| 77 | 100 | | Params::Get::get_params(undef, @_) || {} |
| 173 | 33 | | not defined $location or length $location == 0 |
| 189 | 100 | | not wantarray and my $rc = $self->_cache($location) |
| 208 | 25 | | defined $self->_cache($location) and ref $self->_cache($location) eq "ARRAY" and my(@rc) = @{$self->_cache($location);} |
| 249 | 0 | | exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'}) |
| 293 | 33 | | ref $geocoder eq "Geo::Coder::US::Census" and not defined $rc[0]{'result'}{'addressMatches'}[0]{'coordinates'}{'y'} |
| 307 | 50 | | A | B | C | D | E | dec |
|---|
| 0 | 0 | X | 0 | X | 0 | | 0 | 0 | X | 1 | 0 | 0 | | 0 | 0 | X | 1 | 1 | 1 | | 0 | 1 | 0 | 0 | X | 0 | | 0 | 1 | 0 | 1 | 0 | 0 | | 0 | 1 | 0 | 1 | 1 | 1 | | 0 | 1 | 1 | X | X | 1 | | 1 | X | X | X | X | 1 |
| scalar @rc == 0 or ref $rc[0] eq "HASH" and scalar keys %{$rc[0];} == 0 or ref $rc[0] eq "ARRAY" and scalar keys %{$rc[0][0];} == 0 |
| 327 | 67 | | not defined $l or $l eq "" |
| 359 | 33 | | $l->{'lat'} and defined $l->{'lon'} |
| 443 | 33 | | defined $lat and defined $long |
| 463 | 67 | | $l->{'lat'} //= $l->{'geometry'}{'location'}{'lat'} |
| 464 | 33 | | $l->{'lng'} //= $l->{'geometry'}{'location'}{'lng'} |
| 465 | 67 | | $l->{'lon'} //= $l->{'geometry'}{'location'}{'lng'} |
| 485 | 33 | | defined $rc[0]{'long'} and not defined $rc[0]{'lng'} |
| 488 | 33 | | defined $rc[0]{'long'} and not defined $rc[0]{'lon'} |
| 491 | 33 | | defined $rc[0]{'lat'} and defined $rc[0]{'lng'} |
| 576 | 0 | | $params->{'lat'} //= $latitude |
| 577 | 0 | | $params->{'lon'} //= $longitude |
| 579 | 0 | | $latitude //= $params->{'lat'} |
| 580 | 0 | | $longitude //= $params->{'lon'} |
| 581 | 0 | | $longitude //= $params->{'long'} |
| 592 | 0 | | exists $geocoder->{'limit'} and defined(my $limit = $geocoder->{'limit'}) |
| 602 | 0 | | $self->_cache($latlng) // $geocoder->reverse_geocode(%{$params;}) |
| 803 | 100 | | not defined $rc and $self->{'cache'} |
| 815 | 33 | | $rc->{'lat'} //= $rc->{'geometry'}{'location'}{'lat'} |
| 816 | 33 | | $rc->{'lng'} //= $rc->{'geometry'}{'location'}{'lng'} |
| 817 | 33 | | $rc->{'lon'} //= $rc->{'geometry'}{'location'}{'lng'} |