Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ebe8f84

Browse files
committedNov 7, 2022
Names are already URL-encoded, just not addresses?
Actually neither is true of original .json file. This must be a Python simplekml issue? Names are already encoded but addresses are not?
1 parent f49c490 commit ebe8f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎json2kml.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
for place in data["features"]:
4040
if place["type"] == "Feature":
4141
try:
42-
name = html.escape(place["properties"]["Title"])
42+
name = place["properties"]["Title"]
4343
except KeyError:
44-
name = html.escape(place["properties"]["name"])
44+
name = place["properties"]["name"]
4545
print(f'Parsing place "{name}"')
4646

4747
lon = place["geometry"]["coordinates"][0]

0 commit comments

Comments
 (0)
Please sign in to comment.