Remove non-standard GPX properties (works with Organic)

This commit is contained in:
jude 2024-02-25 15:23:51 +00:00
parent 0c69ba5d9e
commit 0a04d8f68f

View File

@ -19,12 +19,13 @@ with open('Megaliths.gpx', 'w') as gpx_file:
</metadata>''')
for poi in data:
name = '{} ({})'.format(poi['name'], poi['type'].strip())
gpx_file.write(
'''
<wpt lat="{}" lon="{}">
<name>{}</name>
<type>{}</type>
<url>{}</url>
</wpt>'''.format(poi['lat'], poi['lng'], escape(poi['name']), poi['type'], poi['url'])
<desc>{}</desc>
</wpt>'''.format(poi['lat'], poi['lng'], escape(name), poi['url'])
)
gpx_file.write('</gpx>')