dma-ais / AisTrack

Live monitoring of AIS vessel targets
Apache License 2.0
14 stars 3 forks source link

Errorneous timestamps in lastReport #4

Closed borchsenius closed 8 years ago

borchsenius commented 8 years ago

If a vessel or basestation provides a timestamp in the future when reporting position. That message will remain as 'most recent' position. Example

"target" : { "mmsi" : 999167000, "country" : "NL", "lastReport" : "2016-08-06T17:01:49.568Z", "created" : "2016-06-19T00:00:03.282Z", "vesselStatic" : { "mmsi" : 999167000, "received" : "2016-06-19T00:00:03.282Z", "sourceTimestamp" : "2016-08-06T17:01:49.568Z", "created" : "2016-06-19T00:00:03.282Z", "name" : "OOOOOODAM",

borchsenius commented 8 years ago

The clean-up job ensures that reports more than 2days (using the duration) variable