OSM: Allow leisure tag in nominatim fallback results.
This commit is contained in:
parent
bf4a998e21
commit
4ea0b2b292
|
@ -1,5 +1,8 @@
|
|||
# OpenStreetMap Tool
|
||||
|
||||
**0.2.3:**
|
||||
- Allow leisure tags in nominatim fallback results.
|
||||
|
||||
**0.2.1:**
|
||||
- Only print secondary results if they exist.
|
||||
- Remove extraneous print logging.
|
||||
|
|
3
osm.py
3
osm.py
|
@ -2,7 +2,7 @@
|
|||
title: OpenStreetMap Tool
|
||||
author: projectmoon
|
||||
author_url: https://git.agnos.is/projectmoon/open-webui-filters
|
||||
version: 0.2.1
|
||||
version: 0.2.2
|
||||
license: AGPL-3.0+
|
||||
required_open_webui_version: 0.3.9
|
||||
"""
|
||||
|
@ -112,6 +112,7 @@ class OsmSearcher:
|
|||
return ([nominatim_result] if 'type' in nominatim_result
|
||||
and (nominatim_result['type'] == 'amenity'
|
||||
or nominatim_result['type'] == 'shop'
|
||||
or nominatim_result['type'] == 'leisure
|
||||
or nominatim_result['type'] == 'tourism')
|
||||
else [])
|
||||
|
||||
|
|
Loading…
Reference in New Issue