]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix layer setting for structured search
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Mar 2025 10:20:20 +0000 (11:20 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 19 Mar 2025 16:31:43 +0000 (17:31 +0100)
src/nominatim_api/core.py

index a71bca6e981f664465e1b5a76459619f24b51570..f8941bccb38fd5f1d02db6137e857436ad99ad2b 100644 (file)
@@ -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