Skip to content

Commit

Permalink
Reduce the priority of G:C:DataScienceToolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 13, 2020
1 parent 938dfa9 commit ab6bf63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,13 @@ if($opts{'m'} || $opts{'w'}) {
if($geolocation_key) {
# DST isn't that good for the UK
# $geocoder->push({ regex => qr/(UK|United Kingdom|England|USA|US|United States|Wales)$/i, geocoder => Geo::Coder::DataScienceToolkit->new() })
$geocoder->push({ regex => qr/(USA|US|United States)$/i, geocoder => Geo::Coder::DataScienceToolkit->new() })
->push({ regex => qr/^\d.+?,.+?,\s*(USA|US|United States)$/i, geocoder => Geo::Coder::US::Census->new() })
$geocoder->push({ regex => qr/^\d.+?,.+?,\s*(USA|US|United States)$/i, geocoder => Geo::Coder::US::Census->new() })
->push({ limit => 100, regex => qr/(Canada|USA|US|United States)$/i, geocoder => Geo::Coder::CA->new() })
->push({ regex => qr/(USA|US|United States)$/i, geocoder => Geo::Coder::RandMcnally->new() })
->push(Geo::Coder::OSM->new())
->push({ regex => qr/^[\w\s-]+,\s*[\w\s]+,\s*(UK|United Kingdom|England|Wales)$/i, geocoder => Geo::Coder::Postcodes->new() })
->push(Geo::Coder::Ovi->new())
->push({ regex => qr/(USA|US|United States)$/i, geocoder => Geo::Coder::DataScienceToolkit->new() })
->push({ limit => 100, geocoder => Geo::Coder::GooglePlaces->new(%gp_args) })
->push({ limit => 200, geocoder => Geo::Coder::XYZ->new()})
->push(Geo::Coder::Google->new());
Expand Down

0 comments on commit ab6bf63

Please sign in to comment.