Skip to content

Commit

Permalink
Fix nominatim url pattern with trailing slash
Browse files Browse the repository at this point in the history
for details, check osm-search/Nominatim#3134
  • Loading branch information
markaspot committed Aug 3, 2023
1 parent b1a60c7 commit de27fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/geolocation_nominatim/geolocation_nominatim.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
'bounded': 1,
'addressdetails': 1
},
searchUrl: mapSettings.serviceUrl + 'search/',
searchUrl: mapSettings.serviceUrl + 'search'
});

// Add Control.
Expand Down Expand Up @@ -258,7 +258,7 @@
}

function reverseGeocode(latlng) {
const url = mapSettings.serviceUrl + 'reverse/?' + 'lon=' + latlng.lng + "&lat=" + latlng.lat + "&format=json";
const url = mapSettings.serviceUrl + 'reverse?' + 'lon=' + latlng.lng + "&lat=" + latlng.lat + "&format=json";
fetch(url).then(function (response) {
return response.json();
})
Expand Down

0 comments on commit de27fe4

Please sign in to comment.