From 1fc822c152613d661d6ddf65ffc1980f04277626 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 28 Jun 2021 11:48:02 +0200 Subject: [PATCH] Bug fix lat/lon order --- matcher/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matcher/api.py b/matcher/api.py index eb0cbf7..b505ad3 100644 --- a/matcher/api.py +++ b/matcher/api.py @@ -45,7 +45,7 @@ def make_envelope(bounds): def get_bbox_centroid(bbox): bbox = make_envelope(bbox) centroid = database.session.query(func.ST_AsText(func.ST_Centroid(bbox))).scalar() - return re_point.match(centroid).groups() + return reversed(re_point.match(centroid).groups()) def get_part_of(thing, bbox):