Entur Developer
REST
Emissions Calculator

Emissions Calculator

This API from Entur calculates the CO2e emission of a trip for different transport modes. You can read more about the basis for the calculations at miljokalkulator.entur.no/about.

For most transport modes, the SINTEF Multi-modal Energy and Emissions Calculation model (SMEC), also called the SINTEF energy module, calculates the emission. It uses the route and a typical vehicle for the transport mode. The emission includes the full lifecycle of the vehicle: production of the fuel or energy, manufacture, maintenance and tailpipe emission.

For bike, electrical bike and electrical scooter, the API uses a fixed emission factor for each passenger kilometre. SINTEF supplies these factors.

The API keeps each answer from the SINTEF energy module for up to 12 hours. A change in the SINTEF model can therefore take up to 12 hours to show, and during that time two equal requests can give different values.

Limitations

The emissions are estimates. The API uses a typical vehicle, not the vehicle that actually runs. For train, the line decides if the vehicle is a diesel or an electric train. For tram, the city decides the vehicle. For train, plane, bus, metro, tram and ferry, the API divides the emission of the vehicle by the number of passengers the vehicle can carry, not by the actual number of passengers.

Terms of use

Anyone can use the API. We encourage you to credit Entur when you use or show the results, for example with "Source: Entur AS".

Client identification

Send the header ET-Client-Name in all requests. Use the format <party>-<application>, for example mycompany-travelplanner. If a client does not send the header, Entur can apply a stricter rate limit to it or block it.

Rate limits

Each client has a limit for the number of requests each minute and for the highest rate. The API identifies the client from ET-Client-Name. A client without the header, or with a name that Entur has not agreed a limit for, can send 60 requests each minute and 5 requests each second. Without the header, the limit applies to each IP address. If a client is over its limit, the API answers with status 429. Wait the number of seconds in the Retry-After header before you send more requests. Contact Entur if your client needs a higher limit.

Correlation ID

Each response has the header X-Correlation-Id. You can send your own value in this header. Use only letters, digits and the characters ., _, : and -, with a maximum of 128 characters. Otherwise the API makes a new value.

An error response also gives the correlation ID in instance. Give this value when you contact Entur about a request.

Did you find what you were looking for?