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>''')
|
</metadata>''')
|
||||||
|
|
||||||
for poi in data:
|
for poi in data:
|
||||||
|
name = '{} ({})'.format(poi['name'], poi['type'].strip())
|
||||||
|
|
||||||
gpx_file.write(
|
gpx_file.write(
|
||||||
'''
|
'''
|
||||||
<wpt lat="{}" lon="{}">
|
<wpt lat="{}" lon="{}">
|
||||||
<name>{}</name>
|
<name>{}</name>
|
||||||
<type>{}</type>
|
<desc>{}</desc>
|
||||||
<url>{}</url>
|
</wpt>'''.format(poi['lat'], poi['lng'], escape(name), poi['url'])
|
||||||
</wpt>'''.format(poi['lat'], poi['lng'], escape(poi['name']), poi['type'], poi['url'])
|
|
||||||
)
|
)
|
||||||
gpx_file.write('</gpx>')
|
gpx_file.write('</gpx>')
|
||||||
|
Loading…
Reference in New Issue
Block a user