X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6e89310a9285f1ad15d8002bf68f578eada367a0..b9e4563bebaf2b2bfba5440001b4b5750eaebe43:/src/nominatim_api/v1/helpers.py?ds=sidebyside diff --git a/src/nominatim_api/v1/helpers.py b/src/nominatim_api/v1/helpers.py index 9c220834..4e1e4e55 100644 --- a/src/nominatim_api/v1/helpers.py +++ b/src/nominatim_api/v1/helpers.py @@ -62,13 +62,13 @@ def extend_query_parts(queryparts: Dict[str, Any], details: Dict[str, Any], """ parsed = SearchDetails.from_kwargs(details) if parsed.geometry_output != GeometryFormat.NONE: - if GeometryFormat.GEOJSON in parsed.geometry_output: + if GeometryFormat.GEOJSON & parsed.geometry_output: queryparts['polygon_geojson'] = '1' - if GeometryFormat.KML in parsed.geometry_output: + if GeometryFormat.KML & parsed.geometry_output: queryparts['polygon_kml'] = '1' - if GeometryFormat.SVG in parsed.geometry_output: + if GeometryFormat.SVG & parsed.geometry_output: queryparts['polygon_svg'] = '1' - if GeometryFormat.TEXT in parsed.geometry_output: + if GeometryFormat.TEXT & parsed.geometry_output: queryparts['polygon_text'] = '1' if parsed.address_details: queryparts['addressdetails'] = '1'