Skip to content

Commit

Permalink
update Nominatim provider to use correct search URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalis committed Aug 4, 2023
1 parent 4d8e462 commit e8a3e0d
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 e8a3e0d

Please sign in to comment.