From 4417263019c7061efad97e8a756bab3bedcbe5f8 Mon Sep 17 00:00:00 2001 From: Julian Golderer Date: Sun, 3 Apr 2022 01:39:45 +0200 Subject: [PATCH] Remove transformation in mapdetails_road of Road.geometry --- api/obs/api/routes/mapdetails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/obs/api/routes/mapdetails.py b/api/obs/api/routes/mapdetails.py index 45be46b..fcc1b82 100644 --- a/api/obs/api/routes/mapdetails.py +++ b/api/obs/api/routes/mapdetails.py @@ -35,7 +35,7 @@ async def mapdetails_road(req): if not (1 <= radius <= 1000): raise InvalidUsage("`radius` parameter must be between 1 and 1000") - road_geometry = func.ST_Transform(Road.geometry, 3857) + road_geometry = Road.geometry point = func.ST_Transform( func.ST_GeomFromGeoJSON( json.dumps(