OSM: Actually use limit in nominatim search

This commit is contained in:
projectmoon 2024-08-05 14:04:47 +02:00
parent 7a4f642461
commit 9f796710be
1 changed files with 2 additions and 2 deletions

4
osm.py
View File

@ -2,7 +2,7 @@
title: OpenStreetMap Tool
author: projectmoon
author_url: https://git.agnos.is/projectmoon/open-webui-filters
version: 0.2.3
version: 0.2.4
license: AGPL-3.0+
required_open_webui_version: 0.3.9
"""
@ -123,7 +123,7 @@ class OsmSearcher:
'q': query,
'format': format,
'addressdetails': 1,
'limit': 1, # We only need the first result for the bounding box
'limit': limit,
}
headers = self.create_headers()