To get a list of ships within a geographical area use the following API operation.
Request:
POST /ship/route
Payload:
{
"source": {
"position": {
"type": "Point",
"coordinates": [
-0.0439453125,
50.366488762738264
]
}
},
"destination": {
"port": {
"id": 31560,
"name": "Felixstowe Port"
}
},
"ship": {
"draught": 9.5
}
}
Response:
{
"id": 1459394614682994
}
To retrieve the result use following API operation:
GET /ship/route/1459394614682994
Response:
{
"distance": 269433,
"route": {
"coordinates": [
[
-0.0439453125,
50.36648876273826
],
[
1.300000000000013,
50.69999999999999
],
[
1.69999999999999,
51.16666666666666
],
[
1.69999999999999,
51.23333333333332
],
[
1.69999999999999,
51.36666666666667
],
[
1.69999999999999,
51.43333333333334
],
[
1.69999999999999,
51.5
],
[
1.69999999999999,
51.56666666666666
],
[
1.69999999999999,
51.63333333333333
],
[
1.69999999999999,
51.83333333333334
],
[
1.649999999999992,
51.88333333333334
],
[
1.616666666666661,
51.91666666666667
],
[
1.591666666666676,
51.92499999999999
],
[
1.574999999999996,
51.92499999999999
],
[
1.558333333333345,
51.92499999999999
],
[
1.525000000000013,
51.94166666666667
],
[
1.508333333333333,
51.94166666666667
],
[
1.475000000000002,
51.94166666666667
],
[
1.458333333333322,
51.94166666666667
],
[
1.44166666666667,
51.94166666666667
],
[
1.42499999999999,
51.94166666666667
],
[
1.408333333333339,
51.94166666666667
],
[
1.391666666666659,
51.94166666666667
],
[
1.375000000000008,
51.94166666666667
],
[
1.358333333333328,
51.94166666666667
],
[
1.341666666666676,
51.94166666666667
],
[
1.324999999999996,
51.94166666666667
],
[
1.302222222222222,
51.95444444444445
]
],
"type": "LineString"
},
"status": "ok"
}