Query route emissions (NEW)

To receive data about the emissions of a planned route, use the getRouteEmissions query. It provides information on the embedded, operational and, end_of_life emissions. The co2e_saved was also moved to this query, ensuring all the emissions related data can be retrieved in one go. The data is available for the vehicle used on the route and an equivalent gasoline internal combustion engine vehicle.

Query

A route_id and a route_details_id are required to get route emissions data. Create a route_id by using the createRoute mutation as described here. Use it together with the route_details_id to receive the emissions of a route.

The getRouteEmissions query is currently released as a beta product and is experimental. Anything within the emissions query may change, break, or disappear at any time. As long as the feature is in beta, it is free of charge.

Arguments

route_id ID

Required

ID of the route for which we retrieve the emissions profile.

route_details_id ID

Required

ID of the route details for which we retrieve the emissions profile. If not provided, we will retrieve the recommended route details.

Frequently used fields

route_vehicle RouteVehicleEmissions

Emissions profile for the vehicle used in route.