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