Class ElectricVehicleOptions

java.lang.Object
com.here.sdk.routing.ElectricVehicleOptions

public final class ElectricVehicleOptions extends Object

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.

  • Field Details

    • ensureReachability

      public boolean ensureReachability

      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.

      Note An RoutingError.INVALID_PARAMETER is generated when this option is set to true in case sdk.routing.RoutingEngine.import_route is called. Defaults to false.

      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 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.

    • 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.

  • Constructor Details

    • ElectricVehicleOptions

      public ElectricVehicleOptions()

      Creates a new instance.

  • Method Details