Class TollCost

java.lang.Object
com.here.sdk.mapdata.TollCost

public final class TollCost extends Object

Contains informations about the toll costs for a specific vehicle profile.

  • Field Details

    • currency

      @NonNull public String currency

      The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".

    • price

      public double price

      The amount of currency to be paid for the toll.

    • paymentMethods

      @NonNull public List<PaymentMethod> paymentMethods

      The list of accepted payment methods like cash and credit card.

    • isPriceCalculatedPerKilometer

      public boolean isPriceCalculatedPerKilometer

      Indicates if the toll cost is based on the distance traveled. Defaults to false.

    • vehicleProfiles

      @Deprecated @NonNull public List<VehicleProfile> vehicleProfiles
      Deprecated.

      Will be removed in v4.28.0. Use the TollCost.transport_specifications instead.

      List of vehicle profile containing vehicle characteristics for which the toll cost applies.

    • transportSpecifications

      @NonNull public List<TransportSpecification> transportSpecifications

      List of transport specifications containing the vehicle characteristics for which the toll cost applies.

  • Constructor Details

    • TollCost

      public TollCost(@NonNull String currency)

      Creates a new instance.

      Parameters:
      currency -

      The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".

  • Method Details