Remove non-standard GPX properties (works with Organic)
This commit is contained in:
parent
0c69ba5d9e
commit
0a04d8f68f
@ -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>')
|
||||
|
Loading…
Reference in New Issue
Block a user