Fix vessel_fn to use the latest location rather than the first know location

This commit is contained in:
xbgmsharp
2023-02-15 16:24:11 +01:00
parent 22f756b3a9
commit a6da3cab0a

View File

@@ -86,6 +86,7 @@ AS $vessel$
latitude IS NOT NULL
AND longitude IS NOT NULL
AND client_id = current_setting('vessel.client_id', false)
ORDER BY time DESC
)
) AS t
) AS geojson_t