ElectricVehicleOptions class

These options define the parameters of the electric vehicle.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

Constructors

ElectricVehicleOptions()

Properties

batterySpecifications BatterySpecifications?
Parameters that describe the electric vehicle's battery. By default, it is set to null.
getter/setter pair
empiricalConsumptionModel EmpiricalConsumptionModel?
Defines the empirical consumption model. The model is used to calculate the energy consumption for the vehicle on a given route. Note Only one consumption model is supported per route.
getter/setter pair
ensureReachability ↔ bool
Ensure that the vehicle does not run out of energy along the way. Requires valid battery_specifications. It also requires that RouteOptions.optimizationMode = OptimizationMode.fastest, RouteOptions.speedCapInMetersPerSecond is not set, and AvoidanceOptions is empty. Otherwise, this object is considered invalid. Setting this flag enables calculation of a route optimized for electric vehicles. Charging stations may be added along the route to ensure that the vehicle does not run out of energy along the way. It is especially useful for longer routes, because after all, charging stations are much less common than petrol stations.
getter/setter pair
evMobilityServiceProviderPreferences EVMobilityServiceProviderPreferences
Defines the preferred E-Mobility Service Providers. The The E-Mobility Service Provider Partner Ids can be received from https://www.here.com/docs/bundle/ev-charge-points-api-developer-guide/page/topics/resource-roamings.html An alternative way to get partnerId is the eMobilityServiceProviders.partnerId as part of HERE SDK Search. Maximum number of E-Mobility Service Providers is limited to 10. By default, all providers are used. Note Not yet supported for offline routing.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
physicalConsumptionModel PhysicalConsumptionModel?
Defines the physical consumption model. The model is used to calculate the energy consumption for the vehicle on a given route. Note Only one consumption model is supported per route.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.