Get distance between two points using the given modality.
Query parameters
-
origin
string Required Origin of voyage. Can be a locode, a terminal UUID, or a lat,long
-
destination
string Required Destination of voyage. Can be a locode, a terminal UUID, or a lat,long
-
modality
string Required Modality of voyage. Can be one of [
DEEPSEA
,BARGE
,RAIL
,TRUCK
] -
vesselInfo
string Optional vessel information. Can be dimensions (length, width, draught) in cm or ship IMO/MMSI. Example:
100,50,25
orIMO1234567
orMMSI027811100
GET
/api/distance
curl \
--request GET 'https://connect.routescanner.com/route-information/api/distance?origin=string&destination=string&modality=string'
Response examples (200)
{
"distance": 42
}