Get Rail Rates

Property Type Description
from array, required; Array contains coordinates: array(lat, lng);
lat/lng - float number, not null.
to array, required Array contains coordinates: array(lat, lng);
lat, lng - float number, not null.
ST20 integer Number of containers
ST40 integer Number of containers
HQ40 integer Number of containers
HQ45 integer Number of containers
REF20 integer Number of containers
REF40 integer Number of containers
date string By default today
currency string Short name of currency by default USD

At least one of the container types is required (ST20 / ST40 / HQ40 / HQ45 / REF20 / REF40)


{
  rail(from: [46.482526, 30.7233095],to: [31.2303904, 121.4737021],ST20: 1,currency: USD,date: "2021-01-29") {
    shipmentId
    currency
    validTo
    transportationMode
    containerCode,
    comment,
    containerType,
    quantity,
    landFreight {
       price,
       distance,
       transitTime,
       originalPrice,
       originalCurrency,
       interpolation,
       co2,
       overdue
    }
  }
}

                              

{
  "data": {
    "rail": [
      {
        "shipmentId": "SR-107786",
        "currency": "USD",
        "validTo": "2021-02-12",
        "transportationMode": "rail",
        "containerCode": "ST20",
        "containerType": "20 Standard",
        "quantity": 1,
        "landFreight": {
          "price": 3421,
          "distance": "9104.86 km",
          "transitTime": "15 days",
          "interpolation": true
           "co2": 4233760,
			"overdue": true
        }
      }
    ]
  }
}