| line | % | coverage | condition |
| 153 | 33 | | ref $proto || $proto |
| 159 | 67 | | -d $openaddr and -r $openaddr |
| 164 | 100 | | $param{"libpostal"} // 1 |
| 196 | 50 | | $$self{"reads"} // 0 |
| 253 | 67 | | @_ == 1 && !ref($_[0]) |
| 284 | 0 | | $l = $self->geocode("location", $words[$offset]) and ref $l |
| 295 | 0 | | $region and $region ne "US" |
| 296 | 0 | | $l = $self->geocode("location", "$addr, US") and ref $l |
| 304 | 0 | | $region and $region ne "CA" |
| 305 | 0 | | $l = $self->geocode("location", "$addr, Canada") and ref $l |
| 313 | 0 | | $region and $region ne "US" |
| 314 | 0 | | $l = $self->geocode("location", "$addr, US") and ref $l |
| 324 | 0 | | $region and $region ne "CA" |
| 325 | 0 | | $l = $self->geocode("location", "$addr, Canada") and ref $l |
| 335 | 0 | | not $region and ($l = $self->geocode("location", $addr) and ref $l) |
| 0 | | $l = $self->geocode("location", "$addr, $region") and ref $l |
| 0 | | $region and ($l = $self->geocode("location", "$addr, $region") and ref $l) |
| 0 | | $l = $self->geocode("location", $addr) and ref $l |
| 346 | 0 | | $l = $self->geocode("location", $addr) and ref $l |
| 444 | 33 | | $location =~ /USA$/ or $location =~ /United States$/ |
| 445 | 0 | | $$self{"ap"}{"us"} // "Lingua::EN::AddressParse"->new("country", "US", "auto_clean", 1, "force_case", 1, "force_post_code", 0) |
| 448 | 0 | | $$self{"ap"}{"gb"} // "Lingua::EN::AddressParse"->new("country", "GB", "auto_clean", 1, "force_case", 1, "force_post_code", 0) |
| 451 | 0 | | $$self{"ap"}{"ca"} // "Lingua::EN::AddressParse"->new("country", "CA", "auto_clean", 1, "force_case", 1, "force_post_code", 0) |
| 454 | 0 | | $$self{"ap"}{"au"} // "Lingua::EN::AddressParse"->new("country", "AU", "auto_clean", 1, "force_case", 1, "force_post_code", 0) |
| 485 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 490 | 0 | | $_locale_us //= "Locale::US"->new |
| 507 | 0 | | $addr{"house_number"} and $$param{"exact"} |
| 523 | 0 | | not $location =~ /\sCounty,/i and my $href = 'Geo::StreetAddress::US'->parse_location($l) || 'Geo::StreetAddress::US'->parse_address($l) |
| 0 | | 'Geo::StreetAddress::US'->parse_location($l) || 'Geo::StreetAddress::US'->parse_address($l) |
| 526 | 0 | | $_locale_us //= "Locale::US"->new |
| 535 | 0 | | $$href{"type"} and my $type = _abbreviate($$href{"type"}) |
| 563 | 0 | | $_locale_us //= "Locale::US"->new |
| 599 | 25 | | uc $country eq "ENGLAND" or uc $country eq "SCOTLAND" or uc $country eq "WALES" |
| 610 | 0 | | $_locale_us //= "Locale::US"->new |
| 636 | 0 | | $_locale_us //= "Locale::US"->new |
| 694 | 0 | | 'Geo::StreetAddress::US'->parse_address($lookup) || 'Geo::StreetAddress::US'->parse_location($lookup) |
| 705 | 0 | | $_locale_us //= "Locale::US"->new |
| 796 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 813 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 881 | 0 | | $c eq "au" and length $state > 3 |
| 913 | 0 | | $street and $$param{"exact"} |
| 935 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 942 | 0 | | $_locale_us //= "Locale::US"->new |
| 959 | 33 | | $country eq "US" and "Geo::Address::Parser"->can("parse") |
| 974 | 50 | | $$self{"libpostal"} // 1 |
| 975 | 33 | | $use_libpostal and $libpostal_is_installed == 0 |
| 986 | 25 | | $use_libpostal and $libpostal_is_installed == 1 and my(%addr) = Geo::libpostal::parse_address($location) |
| 987 | 0 | | $addr{"country"} and $addr{"state"} and $addr{"country"} =~ /^(Canada|United States|USA|US)$/i |
| 995 | 0 | | $_locale_ca //= "Locale::CA"->new |
| 1002 | 0 | | $_locale_us //= "Locale::US"->new |
| 1049 | 50 | | $$self{"openaddr"} // "" |
| 1093 | 33 | | $$self{'openaddr_db'} || 'Geo::Coder::Free::DB::openaddresses'->new('cache', $$self{'cache'} || 'CHI'->new('driver', 'Memory', 'datastore', {}), 'directory', $$self{'openaddr'}, 'id', 'md5', 'no_entry', 1) |
| 1099 | 33 | | $$self{"geo_hash"} ||= "Geo::Hash"->new |