To get a historical track for a given ship use the following API operation:
Request:
POST /ship/historical/track
Payload:
{ "ship": { "mmsi": 219018501, "name": "MAJESTIC MAERSK" }, "begin": "2018-10-30T00:00:00Z", "end": "2018-11-15T00:00:00Z", "resolution": "48:00:00" }
Response:
{ "id": 123456789 }
To retrieve the result use following API operation:
GET /ship/historical/track/123456789
Response:
{ "distance": 5451310, "ship": { "callsign": "OWJD2", "imo": 9619919, "mmsi": 219018501, "name": "MAJESTIC MAERSK" }, "track": { "coordinates": [ [ 18.71058333333333, 54.38839999999999, "2018-10-30T00:00:00Z", 0, 0 ], [ 19.75983660366153, 54.64744999999925, "2018-11-01T00:00:00Z", 270, 0 ], [ 11.80845655955762, 56.91057016918617, "2018-11-03T00:00:00Z", 340.7, 13.7 ], [ 8.534649999999999, 53.57878333333333, "2018-11-05T00:00:00Z", 0, 0 ], [ 3.999954056741885, 51.95260803701879, "2018-11-07T00:00:00Z", 38.8, 0.8 ], [ 2.600803601704972, 51.86361416783473, "2018-11-09T00:00:00Z", 222.4, 17.2 ], [ -9.984266568242665, 43.3973256587181, "2018-11-11T00:00:00Z", 199.2, 15.5 ], [ -0.3866036201510565, 36.64952151156319, "2018-11-13T00:00:00Z", 78, 18.2 ], [ 16.3565, 36.1024, "2018-11-14T22:00:50Z", 104.6, 17.3 ] ], "extensions": [ "time", "cog", "sog" ], "type": "LineString" } }
For basic description see Get historical track for a ship.