Skip to content

Commit

Permalink
[php >=8.2][geocode] update geocoder plugins to use php-geocode 4.x API
Browse files Browse the repository at this point in the history
  • Loading branch information
nkissebe committed Jan 26, 2025
1 parent e9ef96c commit 6921f0a
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/plugins/geocode/arcgisonline/arcgisonline.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\ArcGISOnlineProvider(
return new \Geocoder\Provider\ArcGISList\ArcGISList(
$adapter, $this->params->get('sourceCountry', null), $this->params->get('useSsl', false)
);
}
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/bingmaps/bingmaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\BingMapsProvider(
return new \Geocoder\Provider\BingMaps\BingMaps(
$adapter, $this->params->get('apiKey')
);
}
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/geonames/geonames.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\GeonamesProvider(
return new \Geocoder\Provider\Geonames\Geonames(
$adapter,
$this->params->get('username')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/geoplugin/geoplugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\GeoPluginProvider(
return new \Geocoder\Provider\GeoPlugin\GeoPlugin(
$adapter
);
}
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/googlemaps/googlemaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\GoogleMapsProvider(
return new \Geocoder\Provider\GoogleMaps\GoogleMaps(
$adapter
);
}
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/hostip/hostip.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\HostIpProvider(
return new \Geocoder\Provider\HostIp\HostIp(
$adapter
);
}
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/ipinfodb/ipinfodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\IpInfoDbProvider(
return new \Geocoder\Provider\IpInfoDb\IpInfoDb(
$adapter,
$this->params->get('apiKey')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/mapquest/mapquest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\MapQuestProvider(
return new \Geocoder\Provider\MapQuest\MapQuest(
$adapter,
$this->params->get('apiKey')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/maxmind/maxmind.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\MaxMindProvider(
return new \Geocoder\Provider\MaxMind\MaxMind(
$adapter,
$this->params->get('apiKey')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/maxmindbinary/maxmindbinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\MaxMindBinaryProvider(
return new \Geocoder\Provider\MaxMindBinary\MaxMindBinary(
$adapter,
$this->params->get('apiKey')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/nominatim/nominatim.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\NominatimProvider(
return new \Geocoder\Provider\Nominatim\Nominatim(
$adapter,
$this->params->get('rootUrl')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/tomtom/tomtom.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\TomTomProvider(
return new \Geocoder\Provider\TomTom\TomTom(
$adapter,
$this->params->get('apiKey')
);
Expand Down
2 changes: 1 addition & 1 deletion core/plugins/geocode/yandex/yandex.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function onGeocodeProvider($context, $adapter, $ip=false)
return;
}

return new \Geocoder\Provider\YandexProvider(
return new \Geocoder\Provider\Yandex\Yandex(
$adapter
);
}
Expand Down

0 comments on commit 6921f0a

Please sign in to comment.