From dfed99a8bc68a5d876610f781f72e9085d8b40f2 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 16 Jul 2021 11:09:59 +0200 Subject: [PATCH] Include centroids in nearby OSM list --- matcher/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matcher/api.py b/matcher/api.py index 2ae307a..1b388b4 100644 --- a/matcher/api.py +++ b/matcher/api.py @@ -455,6 +455,7 @@ def find_osm_candidates(item, bounds): "geojson": osm.geojson(), "presets": get_presets_from_tags(osm), "address_list": address_list, + "centroid": list(osm.get_centroid()), } if hasattr(osm, 'area'): cur["area"] = osm.area