api: Fix longitude/latitude ordering in track geojson

See: https://macwright.com/lonlat/
This commit is contained in:
Paul Bienkowski 2021-11-21 19:57:52 +01:00
parent 12686abe14
commit 12ef37392b

View file

@ -149,7 +149,7 @@ async def process_track(session, track, data_source):
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [[m["latitude"], m["longitude"]] for m in track_points],
"coordinates": [[m["longitude"], m["latitude"]] for m in track_points],
},
}