Class ElectricVehicleOptions
Class ElectricVehicleOptions
- java.lang.Object
-
- com.here.sdk.routing.ElectricVehicleOptions
-
public final class ElectricVehicleOptions extends java.lang.ObjectThese 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.
-
-
Field Summary
Fields Modifier and Type Field Description BatterySpecificationsbatterySpecificationsParameters that describe the electric vehicle's battery.EmpiricalConsumptionModelempiricalConsumptionModelDefines the empirical consumption model.booleanensureReachabilityEnsure that the vehicle does not run out of energy along the way.EVMobilityServiceProviderPreferencesevMobilityServiceProviderPreferencesDefines the preferred E-Mobility Service Providers.PhysicalConsumptionModelphysicalConsumptionModelDefines the physical consumption model.
-
Constructor Summary
Constructors Constructor Description ElectricVehicleOptions()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
ensureReachability
public boolean ensureReachability
Ensure that the vehicle does not run out of energy along the way. Requires valid
battery_specifications. It also requires thatRouteOptions.optimizationMode=OptimizationMode.FASTEST,RouteOptions.speedCapInMetersPerSecondis not set, andAvoidanceOptionsis 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.Note An
RoutingError.INVALID_PARAMETERis generated when this option is set totruein casesdk.routing.RoutingEngine.import_routeis called. Defaults tofalse.Note Not supported for offline routing.
Note Only supported for car routing.
-
evMobilityServiceProviderPreferences
@NonNull public 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
partnerIdis theeMobilityServiceProviders.partnerIdas part ofHERE 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.
-
empiricalConsumptionModel
@Nullable public 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.
-
physicalConsumptionModel
@Nullable public 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.
-
batterySpecifications
@Nullable public BatterySpecifications batterySpecifications
Parameters that describe the electric vehicle's battery. By default, it is set to
null.
-
-