From 570527834185e19773384e2942966edb40587e13 Mon Sep 17 00:00:00 2001
From: Mateusz Konieczny <matkoniecz@gmail.com>
Date: Wed, 19 Feb 2025 04:09:06 +0100
Subject: [PATCH] save full data when serializing to geojson

---
 serializing.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/serializing.py b/serializing.py
index db73ece..68cc5fa 100644
--- a/serializing.py
+++ b/serializing.py
@@ -125,7 +125,15 @@ def generate_geojson_structure(dataset):
                                              "type": "Point",
                                              "coordinates": [atp.atp_center['lon'], atp.atp_center['lat']]
                                          },
-                                         "properties": atp.atp_tags
+                                         "properties": {
+                                            'atp_center': atp.atp_center,
+                                            'atp_tags': atp.atp_tags,
+                                            'osm_match_center': atp.osm_match_center,
+                                            'osm_match_tags': atp.osm_match_tags,
+                                            'osm_link': atp.osm_link,
+                                            'match_distance': atp.match_distance,
+                                            'all_very_good_matches': atp.all_very_good_matches,
+                                         }
                                          })
     return geojson_data