Skip to content

Commit

Permalink
fix nominatim API search syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Aug 3, 2023
1 parent 0199f96 commit a454aa3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/services/nominatim.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ export default {


search: function (val, callback) {
var searchVal = encodeURIComponent(val);
var url = apibase + 'search/' + searchVal + '?limit=10&format=json';
const params = {
q: val,
limit:10,
format: 'json'
};
var url = apibase + 'search?' + utilQsString(params);

if (_inflight[url]) return;
var controller = new AbortController();
Expand Down

0 comments on commit a454aa3

Please sign in to comment.