mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 11:17:46 +00:00
Fix vessel_fn to use the latest location rather than the first know location
This commit is contained in:
@@ -86,6 +86,7 @@ AS $vessel$
|
|||||||
latitude IS NOT NULL
|
latitude IS NOT NULL
|
||||||
AND longitude IS NOT NULL
|
AND longitude IS NOT NULL
|
||||||
AND client_id = current_setting('vessel.client_id', false)
|
AND client_id = current_setting('vessel.client_id', false)
|
||||||
|
ORDER BY time DESC
|
||||||
)
|
)
|
||||||
) AS t
|
) AS t
|
||||||
) AS geojson_t
|
) AS geojson_t
|
||||||
|
Reference in New Issue
Block a user