]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/v1/server_glue.py
Merge pull request #3188 from lonvia/update-osm2pgsql
[nominatim.git] / nominatim / api / v1 / server_glue.py
index 95484c5bea8bce16ae10c2eda41759fa903c65b2..24f2234ba3842e26733b04bb75c8d4e74bb1e510 100644 (file)
@@ -453,6 +453,8 @@ async def search_endpoint(api: napi.NominatimAPIAsync, params: ASGIAdaptor) -> A
         helpers.feature_type_to_rank(params.get('featureType', ''))
     if params.get('featureType', None) is not None:
         details['layers'] = napi.DataLayer.ADDRESS
+    else:
+        details['layers'] = params.get_layers()
 
     # unstructured query parameters
     query = params.get('q', None)