Route API는 해양으로 이동 할 수 있는 두 지점 사이의 가장 짧은 경로를 이루는 웨이포인트 목록과 총 이동 마일을 제공합니다.

Data Name
Route API
BASE URL PATH
https://api.vessellink.com/v1/route
DATA COVERAGE
Global


1. Routing

USE OUR WIZARD TO TRY OUT THIS ENDPOINT ➜

1.1 Request Parameter

curl --request GET \
     --url 'https://api.vessellink.com/v1/route?fromLat=28.3&fromLong=140.3&toLat=12.2&toLong=-50.3&autoValidate=false&suez=true&panama=true&kiel=true&northeast=false&northwest=false&eca=ignore&hra=ignore&jwc=ignore' \
     --header 'Accept: application/json'
ParameterDescriptionType
fromLatLatitude of the departure(float) ISO 6709 (decimal point)
fromLongLongitude of the departure(float) ISO 6709 (decimal point)
toLatLatitude of the destination(float) ISO 6709 (decimal point)
toLongLongitude of the destination(float) ISO 6709 (decimal point)
autoValidateIf set to true, a validation for both start and endpoint will be performed and the validated coordinates will be used as input for the route calculationtrue or false
suezAllow passage of the Suez channel. Possible values: true and falsetrue or false
panamaAllow passage of the Panama channel. Possible values: true and falsetrue or false
kielAllow passage of the Kiel channel. Possible values: true and falsetrue or false
northeastAllow passage of the Northeast Passage. Possible values: true and falsetrue or false
northwestAllow passage of the Northwest Passage. Possible values: true and falsetrue or false
ecaIndication of how to treat ECA areas. Possible values: 'ignore' and 'minimize'true or false
hraIndication of how to treat HRA area(s). Possible values: 'ignore' and 'minimize'true or false
jwcIndication of how to treat JWC area(s). Possible values: 'ignore' and 'minimize'true or false

1.3 API Response

The response are GeoJSON structured like above

{
    "meta": {
        "code": 200,
        "fromLat": 32.6733,
        "fromLong": 33.1743,
        "toLat": 35.9252,
        "toLong": 24.8067
    },

    "type": "FeatureCollection",
    "features": [{
        "type": "Feature",
        "properties": {
            "totalLDistance": 558.49614719928,
            "ecaDistance": 0,
            "hraDistance": 0,
            "canalsCrossed": [
                "suez-canal"
            ]
        },
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [32.67333984375, 33.174341551002],
                [32.3423, 31.2228],
                [32.310393, 31.094417],
                [32.319995, 30.811504],
                [32.342453, 30.703486],
                [32.305385, 30.568682],
                [32.396751, 30.357018],
                [32.449684, 30.285923],
                [32.500598, 30.260175],
                [32.52428, 30.244705],
                [32.560229, 30.198274],
                [32.585092, 29.973555],
                [32.567552, 29.923606],
                [32.714583, 29.448333],
                [33.237083, 28.553278],
                [34.018333, 27.504556],
                [35.92529296875, 24.806681353852]
            ]
        }
    }]
}
FieldDescriptionUnit
meta - codeResponse codeinteger
meta - fromLatLatitude of the departure(float) ISO 6709 (decimal point)
meta - fromLongLongitude of the departure(float) ISO 6709 (decimal point)
meta - toLatLatitude of the destination(float) ISO 6709 (decimal point)
meta - toLongLongitude of the destination(float) ISO 6709 (decimal point)
features - totalLDistanceTotal distance(float) Nautical Miles
features - ecaDistanceEca area distance(float) Nautical Miles
features - hraDistanceHra area distance(float) Nautical Miles
features - canalsCrossedCanals that are crossed, when traveling on the given route(array string)
geometry - coordinateslist of route(array object)