project/shmuliar-FEAT-01-add-second-agent #33
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