Extended response not getting data from requested timespan

Comments

10 comments

  • Official comment
    Avatar
    Thanos Zelios

    Hello Jeffrey,

    I just checked the API service and your service key and I did not manage to find any issue.
    The API returns the latest position received from the vessels during the timespan.
    e.g. if a vessel's latest position was captured five (5) minutes ago, with any timespan > 5, then the same response would be returned by the API (the one captured five (5) minutes ago).

    Please let me know if I can be of any further assistance.

    Comment actions Permalink
  • Avatar
    Jeffrey Boon

    Hi Thanos,

    Thank you for your answer, I think my question wasn't clear enough though, sorry about that.

    I make 30 API calls in an hour, the first 29 calls I request the simple data with a timespan of 2 minutes, this works great.
    The 30th call requests the extended data with a timespan of 60 minutes, however, instead of the past 60 minutes I only get the data of the past 2 minutes, I suppose that's the data I haven't received in the previous requests yet.

     

    0
    Comment actions Permalink
  • Avatar
    Thanos Zelios

    Hi Jeffrey,

    PS05 service returns only the latest vessel positions captured during the timespan specified. In your case, with timespan:60, you receive all the latest vessel positions captured during the past hour.
    Thus it is possible that you receive again positions which were captured during your previous calls (msgtype:simple).
    This happens in cases we have no newer positions for the vessel or you call the simple and extended msgtype at the same time.

    Hope this answers your question and makes it clear why you might receive again the data you received before.

     

    1
    Comment actions Permalink
  • Avatar
    Jeffrey Boon

    Hi Thanos,

    This answers my question, I assumed I would receive all the vessel positions over the past hour, but apparently I got that wrong.
    Thank you very much!

    0
    Comment actions Permalink
  • Avatar
    Thanos Zelios

    I am glad to hear that Jeffrey.

    If you need to receive all vessel positions during a specific time period PS01-Historical Vessel Positions might be more appropriate.

    Please do not hesitate to contact me if you need anything else.

    0
    Comment actions Permalink
  • Avatar
    Jeffrey Boon

    Hi Thanos,

    Historical data isn't really necessary for us if it was possible to just request the extended response every 2 minutes.
    Maybe we need to combine PS05 with VD02 (vessel particulars) to get the data we're missing, but I'll let our customer decide what they want.

    Thanks for the tip though!

    0
    Comment actions Permalink
  • Avatar
    Thanos Zelios

    Jeffrey,

    The extended response part e.g. flag, callsign, DWT etc do not change that often (or not at all) and normally one call per hour should be enough for all our users.

    If you have any further concerns please let me know.

    0
    Comment actions Permalink
  • Avatar
    Jeffrey Boon

    Hi Thanos,

    That's true, we'll see how it works out in our customer's area, I used a pretty small area as a test in my trial and it looked like I was missing quite a lot of data, luckily our customer has a bigger area.
    By the time I do the extended request most of the vessels have already left the area now, so because their latest position is outside of the area I will never receive extended data for a lot of vessels.

    0
    Comment actions Permalink
  • Avatar
    Thanos Zelios

    Hi Jeffrey,

    The extended request can be modified to return responses more frequently with some additional fee if this is still an issue.
    Please do not hesitate to contact me if you need to further escalate the request.

    Have a nice day!

    0
    Comment actions Permalink
  • Avatar
    Jeffrey Boon

    Hi Thanos,

    That's good to know and definitely a solution to our problem.
    We'll contact sales if we decide to do this.

    Thank you for your help!

     

    0
    Comment actions Permalink

Please sign in to leave a comment.