TollCost (API Reference)
Package com.here.sdk.mapdata
Class TollCost
java.lang.Object
com.here.sdk.mapdata.TollCost
Contains informations about the toll costs for a specific vehicle profile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe currency in which the toll is to be paid in ISO 4217 format, e.g.booleanIndicates if the toll cost is based on the distance traveled.The list of accepted payment methods like cash and credit card.doubleThe amount of currency to be paid for the toll.List of transport specifications containing the vehicle characteristics for which the toll cost applies.Deprecated.Will be removed in v4.28.0. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
currency
The currency in which the toll is to be paid in ISO 4217 format, e.g. "USD".
-
price
public double priceThe amount of currency to be paid for the toll.
-
paymentMethods
The list of accepted payment methods like cash and credit card.
-
isPriceCalculatedPerKilometer
public boolean isPriceCalculatedPerKilometerIndicates if the toll cost is based on the distance traveled. Defaults to
false. -
vehicleProfiles
Deprecated.Will be removed in v4.28.0. Use the
TollCost.transport_specificationsinstead.List of vehicle profile containing vehicle characteristics for which the toll cost applies.
-
transportSpecifications
List of transport specifications containing the vehicle characteristics for which the toll cost applies.
-
-
Constructor Details
-
TollCost
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