Skip to content

Commit

Permalink
"title" to "name", since that's used in KML tag
Browse files Browse the repository at this point in the history
  • Loading branch information
endolith committed Oct 23, 2022
1 parent 41906fa commit 2233518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions json2kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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}"')
Expand Down

0 comments on commit 2233518

Please sign in to comment.