X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/878a1d756d34169609ab64ee228d164bbf3bfad7..e129df379493789f749d7e92b6f1f29db192d01e:/nominatim/api/v1/server_glue.py 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)