From 9f796710be73903b109753fb45341cd132e01003 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Mon, 5 Aug 2024 14:04:47 +0200 Subject: [PATCH] OSM: Actually use limit in nominatim search --- osm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm.py b/osm.py index 5ff1032..8c9781c 100644 --- a/osm.py +++ b/osm.py @@ -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()