API Instructions:

First method.
Using method GET send latitude and longtitude of point A
Our API will find the nearlest port by your coordinates

For Example:
point_a_lat=-33,8696440161399
point_a_lng=151,182861328125

and send latitude and longtitude of point B

For Example:
point_b_lat=46,4999995864331
point_b_lng=30,7307730194095

And send your API key

apiKey=1234567890

To recieve API key contact us Searates

Example:
https://sirius.searates.com/port/api?point_a_lat=-33,8696440161399&point_a_lng=151,182861328125&point_b_lat=46,4999995864331&point_b_lng=30,7307730194095&apiKey=ABCDEF1234567890

Second method.
Using method GET send UNLOCODE of point A
and send UNLOCODE of point B

For Example:
code_from=MGDIE
code_to=BRPEC

And send your API key

apiKey=1234567890

To recieve API key contact us Searates

Example:
https://sirius.searates.com/port/api?code_from=MGDIE&code_to=BRPEC&apiKey=ABCDEF1234567890

Response:
In response you will get the json string
{"dist":"17574.02","path":"{151.182861328125,-33.8696440161399,151.18535615521,-33.86971330496.......}"}
dist - distance from port to port
path - points of bilding path {latitude,longtitude,latitude,longtitude,latitude,longtitude........}