From 22335183939ab98c5a3af0a4dff54a7b9248b781 Mon Sep 17 00:00:00 2001 From: endolith Date: Sun, 23 Oct 2022 13:04:58 -0400 Subject: [PATCH] "title" to "name", since that's used in KML tag --- json2kml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/json2kml.py b/json2kml.py index d5a3841..34d7963 100644 --- a/json2kml.py +++ b/json2kml.py @@ -32,8 +32,8 @@ count = 0 for place in data["features"]: if place["type"] == "Feature": - title = html.escape(place["properties"]["Title"]) - print(f'Parsing place "{title}"') + name = html.escape(place["properties"]["Title"]) + print(f'Parsing place "{name}"') placeLocation = place["properties"]["Location"] lon = place["geometry"]["coordinates"][0] @@ -44,7 +44,7 @@ else: address = None - kml.newpoint(name=title, coords=[(lon, lat)], address=address) + kml.newpoint(name=name, coords=[(lon, lat)], address=address) count += 1 print(f'Saving file "{outputFile}"')