X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fd85483ce3b68fa65c7fae82ef65b035fb4c94fb..e129df379493789f749d7e92b6f1f29db192d01e:/nominatim/api/v1/server_glue.py?ds=sidebyside diff --git a/nominatim/api/v1/server_glue.py b/nominatim/api/v1/server_glue.py index 95484c5b..24f2234b 100644 --- a/nominatim/api/v1/server_glue.py +++ b/nominatim/api/v1/server_glue.py @@ -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)