Rotterdam to Amsterdam for a Euro 6 diesel
Coordinates in driving order; the departure time defaults to now.
curl -X POST "https://api.app.transportial.com/api/route/calculate:georeferences" \
-H "x-api-key: $TRANSPORTIAL_KEY" \
-H "x-api-secret: $TRANSPORTIAL_SECRET" \
-H "Content-Type: application/json" \
-d @request.json{
"vehicle": { "fuelType": "diesel", "emissionStandard": "euro6" },
"geoReferences": [
{ "type": "latLonPointGeoReference", "lat": 51.9244, "lon": 4.4777 },
{ "type": "latLonPointGeoReference", "lat": 52.3676, "lon": 4.9041 }
]
}{
"success": true,
"route": {
"time": 0,
"distance": 0,
"lineString": "...",
"toll": { "engine": "...", "currency": "EUR", "total": 0, "approximated": false, "countries": [] },
"additionalInfo": { "CO2eWTW": 0, "CO2eTTW": 0, "emissionReport": { "standard": "...", "basis": "...", "totalTtwKg": 0, "totalWtwKg": 0, "legs": [] } }
}
}Response shape only; the values depend on your engine and input.