OSM: Actually use limit in nominatim search
This commit is contained in:
parent
7a4f642461
commit
9f796710be
4
osm.py
4
osm.py
|
@ -2,7 +2,7 @@
|
||||||
title: OpenStreetMap Tool
|
title: OpenStreetMap Tool
|
||||||
author: projectmoon
|
author: projectmoon
|
||||||
author_url: https://git.agnos.is/projectmoon/open-webui-filters
|
author_url: https://git.agnos.is/projectmoon/open-webui-filters
|
||||||
version: 0.2.3
|
version: 0.2.4
|
||||||
license: AGPL-3.0+
|
license: AGPL-3.0+
|
||||||
required_open_webui_version: 0.3.9
|
required_open_webui_version: 0.3.9
|
||||||
"""
|
"""
|
||||||
|
@ -123,7 +123,7 @@ class OsmSearcher:
|
||||||
'q': query,
|
'q': query,
|
||||||
'format': format,
|
'format': format,
|
||||||
'addressdetails': 1,
|
'addressdetails': 1,
|
||||||
'limit': 1, # We only need the first result for the bounding box
|
'limit': limit,
|
||||||
}
|
}
|
||||||
|
|
||||||
headers = self.create_headers()
|
headers = self.create_headers()
|
||||||
|
|
Loading…
Reference in New Issue