[P] Add a simple .gpx to .csv file converter
This commit was merged in pull request #33.
This commit is contained in:
13
agent/src/data/gpx-to-csv.py
Normal file
13
agent/src/data/gpx-to-csv.py
Normal file
@@ -0,0 +1,13 @@
|
||||
print('lat,lon')
|
||||
|
||||
try:
|
||||
while True:
|
||||
i = input()
|
||||
|
||||
if '<trkpt' not in i:
|
||||
continue
|
||||
|
||||
si = i.split('"')[1::2]
|
||||
print(f"{si[0]},{si[1]}")
|
||||
except EOFError:
|
||||
pass
|
||||
Reference in New Issue
Block a user