From 12ef37392b84a42e279b1f97991454d4c3cf6b34 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Sun, 21 Nov 2021 19:57:52 +0100 Subject: [PATCH] api: Fix longitude/latitude ordering in track geojson See: https://macwright.com/lonlat/ --- api/obs/api/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/obs/api/process.py b/api/obs/api/process.py index d845396..9245487 100644 --- a/api/obs/api/process.py +++ b/api/obs/api/process.py @@ -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], }, }