Skip to content

Commit

Permalink
Names are already URL-encoded, just not addresses?
Browse files Browse the repository at this point in the history
Actually neither is true of original .json file.  This must be a Python
simplekml issue?  Names are already encoded but addresses are not?
  • Loading branch information
endolith committed Nov 7, 2022
1 parent f49c490 commit ebe8f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json2kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
for place in data["features"]:
if place["type"] == "Feature":
try:
name = html.escape(place["properties"]["Title"])
name = place["properties"]["Title"]
except KeyError:
name = html.escape(place["properties"]["name"])
name = place["properties"]["name"]
print(f'Parsing place "{name}"')

lon = place["geometry"]["coordinates"][0]
Expand Down

0 comments on commit ebe8f84

Please sign in to comment.