Class EVTruckOptions

  • java.lang.Object
    • com.here.sdk.routing.EVTruckOptions

  • public final class EVTruckOptions
    extends java.lang.Object

    All the options to specify how a route for an electric truck should be calculated.

    • Field Detail

      • routeOptions

        @NonNull
        public RouteOptions routeOptions

        Specifies the common route calculation options.

      • textOptions

        @NonNull
        public RouteTextOptions textOptions

        Customize textual content returned from the route calculation, such as localization, format, and unit system.

      • avoidanceOptions

        @NonNull
        public AvoidanceOptions avoidanceOptions

        Options to specify restrictions for route calculations. By default no restrictions are applied.

      • tollOptions

        @NonNull
        public TollOptions tollOptions

        Options to specify how the tolls should be calculated, such as transponders, vehicle category, and emission type.

      • allowOptions

        @NonNull
        public AllowOptions allowOptions

        The options explicitly allowed by user for route calculations. By default no options are opt in.

      • occupantsNumber

        public int occupantsNumber

        Specifies the number of occupants in the vehicle, including driver, can affect the vehicle's ability to use HOV/carpool restricted lanes. Shouldn't be less than 1 or greater than 255. Defaults to 1.

        Note: This parameter has no effect unless HOV and/or HOT lane usage is enabled via allowOptions and such lanes are available in the selected country.

      • lastCharacterOfLicensePlate

        @Nullable
        public java.lang.String lastCharacterOfLicensePlate

        Specifies the last character of a vehicle's license plate, typically used to evaluate traffic restrictions in certain environmental or low-emission zones. In cities like Bogotá, Mexico City, or Jakarta, specific license plate digits may be restricted on certain days or in certain areas to reduce congestion and emissions. When this value is provided, the HERE SDK considers it during route calculation to avoid roads or areas where your vehicle may be restricted based on local regulations. Example usage: "7", when the license plate of a vehicle looks like "B-ET-182487".

        If this value is not set, such license plate-based restrictions are ignored, and routing is performed without considering them.

      • truckSpecifications

        @NonNull
        public TruckSpecifications truckSpecifications

        Detailed truck specifications such as dimensions and weight.

      • linkTunnelCategory

        @Nullable
        public TunnelCategory linkTunnelCategory

        Specifies the tunnel categories to restrict certain route links. The route will pass only through tunnels of a less strict category. Refer to TunnelCategory for the available options.

      • hazardousMaterials

        @NonNull
        public java.util.List<HazardousMaterial> hazardousMaterials

        Specifies a list of hazardous materials shipped in the vehicle. Refer to HazardousMaterial for the available options.

      • avoidedTruckRoadTypes

        @NonNull
        public java.util.List<TruckRoadType> avoidedTruckRoadTypes

        Specifies a list of avoided truck road types for vehicle. Refer to TruckRoadType for the available options.

      • consumptionModel

        @NonNull
        public EVConsumptionModel consumptionModel

        Vehicle specific parameters, which are then used to calculate energy consumption for the vehicle on a given route.

    • Constructor Detail

      • EVTruckOptions

        public EVTruckOptions()

        Creates a new instance.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object