Getting real time ships locations between two different time periods

66 views
Skip to first unread message

Pradip Neupane

unread,
Jun 20, 2018, 6:04:20 AM6/20/18
to meri.digitraffic.fi
Hi,
I  am using your API vessel-location-controller to get the real time data of the ships locations.
I want to extract all the ships location for 1 hr period between June 20, 2018 10:00:00 AM - June 20, 2018 11:00:00 . And these are milliseconds timestamp for those periods
1529478000000
1529481600000


And this is my link to extract data of those time periods

When I do that, I get results but only of very few ships location on those period of time.
Arent there supposed to many ships during those time.
For example I  should also get multiple information of same ships travel location in that given time. But That API links gives very few information and if it gives, there is no multiple locations of the individual ships in that period time.

Can you please help me, what I am doing wrong and what else I need to make it work ? 

Prad

Solita Teijo

unread,
Jun 21, 2018, 6:57:54 AM6/21/18
to meri.digitraffic.fi
Hi

Thanks for your message.  Currently we don't save the history of the locations and the API only returns the latest location per vessel.  

To list all the latest locations per ship, use this:


Adding from and to parameters, it will get the same list but return only the latest locations with timestamps between from and to:


So, this will not give you history between from and to, or the latest location between from and to.  It will give you the vessel's location only if it did happen between from and to.

I hope this answered your question, please do not hesitate to contact us.

Ystävällisin terveisin / Best regards
– Digitraffic asiakastuki / Digitraffic support  –
Reply all
Reply to author
Forward
0 new messages