Skip to content

Commit

Permalink
Merge pull request #1110 from Simounet/fix/nominatim-query-format
Browse files Browse the repository at this point in the history
Fix nominatim search address query
  • Loading branch information
tacruc committed Aug 15, 2023
2 parents 762fd94 + 47c7819 commit ec040ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function geocode(lat, lng) {

export function searchAddress(address, limit = 8) {
const query = encodeURIComponent(address)
const url = 'https://nominatim.openstreetmap.org/search/' + query + '?format=json&addressdetails=1&extratags=1&namedetails=1&limit=' + limit
const url = 'https://nominatim.openstreetmap.org/search?q=' + query + '&format=json&addressdetails=1&extratags=1&namedetails=1&limit=' + limit
return realAxios.get(url)
}

Expand Down

0 comments on commit ec040ea

Please sign in to comment.