X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d400fd5f76b12b76c1169ddb03fb09efa8673426..b1fc721f4b5b32b5881cc1bb9e0f038f5d0595cb:/src/nominatim_api/core.py diff --git a/src/nominatim_api/core.py b/src/nominatim_api/core.py index a71bca6e..f8941bcc 100644 --- a/src/nominatim_api/core.py +++ b/src/nominatim_api/core.py @@ -304,7 +304,7 @@ class NominatimAPIAsync: else: details.restrict_min_max_rank(4, 4) - if 'layers' not in params: + if details.layers is None: details.layers = ntyp.DataLayer.ADDRESS if amenity: details.layers |= ntyp.DataLayer.POI