Skip to content

Commit

Permalink
Merge pull request #37 from sebalis/nominatim-fix
Browse files Browse the repository at this point in the history
update Nominatim provider to use correct search URL
  • Loading branch information
eileenmcnaughton authored Aug 6, 2023
2 parents 1c571a0 + e8a3e0d commit 393cd52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ProviderMetadata/1_OpenStreetMap.mgd.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'name' => 'open_street_maps',
'title' => 'Nominatim (Open street maps)',
'class' => 'Nominatim\Nominatim',
'url' => 'https://nominatim.openstreetmap.org/search',
'url' => 'https://nominatim.openstreetmap.org',
'is_active' => FALSE,
'weight' => 1,
],
Expand Down
2 changes: 1 addition & 1 deletion api/v3/Geocoder/Geocode.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function civicrm_api3_geocoder_geocode($params) {

// currently not working
$httpClient = new \Http\Adapter\Guzzle6\Client();
$url = 'https://nominatim.openstreetmap.org/search';
$url = 'https://nominatim.openstreetmap.org';
$provider = new Geocoder\Provider\Nominatim\Nominatim($httpClient, $url);
$geocoder = new \Geocoder\StatefulGeocoder($provider, 'en');
$result = $geocoder->geocodeQuery(GeocodeQuery::create('Disney Land, United States'));
Expand Down

0 comments on commit 393cd52

Please sign in to comment.