Leg
No description
type Leg {
_id: ObjectId!
legInputHash: String!
start: Coordinates!
destination: Coordinates!
viapoints: [Waypoint!]
routingOptions: RoutingOptions!
warnings: Warning
tolls: Toll!
calculatedRoute: LegRoute!
company: ObjectId!
co2Emissions: Float
fuelConsumption: Float
tankToWheelEmissions: Float
wellToTankEmissions: Float
createdAt: DateTime!
}
Fields
Leg._id
● ObjectId!
non-null scalar
Leg.legInputHash
● String!
non-null scalar
sha1 hash of the leg input parameters. Results should be uniquely identifiable by this hash.
Leg.start
● Coordinates!
non-null object
Leg.destination
● Coordinates!
non-null object
Leg.viapoints
● [Waypoint!]
list object
Leg.routingOptions
● RoutingOptions!
non-null object
Leg.warnings
● Warning
object
Leg.tolls
● Toll!
non-null object
Leg.calculatedRoute
● LegRoute!
non-null object
Leg.company
● ObjectId!
non-null scalar
Leg.co2Emissions
● Float
scalar
Total CO2 emissions in kgs
Leg.fuelConsumption
● Float
scalar
Total fuel consumption in liters. The type of fuel can be found in the leg's RoutingSettings.
Leg.tankToWheelEmissions
● Float
scalar
Total greenhouse gas emissions from combusting the vehicle fuel.
Leg.wellToTankEmissions
● Float
scalar
Total greenhouse gas emissions from the production, transportation, transformation and distribution of the vehicle fuel.