Emissions Estimates
Trains
This endpoint returns an estimated emissions value for the provided parameters for a train journey.
POST
Headers
Authorisation requires an API key in the header of the request. Please see this page for more information.
Request Fields
The town or city where the travelers journey begins.
The town or city where the travelers journey ends.
The start date of the travelers journey.
Format: yyyy-MM-dd
The end date of the travelers journey.
Format: yyyy-MM-dd
The number of travelers included in the booking.
Minimum Value: 1
The type of train used in the booking.
Possible Values: national_rail
, international_rail
, light_rail
.
Default: national_rail
Response Fields
The amount of carbon emissions to be offset, specified in kilograms.