Class TaxiOptions
Class TaxiOptions
- java.lang.Object
-
- com.here.sdk.routing.TaxiOptions
-
public final class TaxiOptions extends java.lang.ObjectAll the options to specify how a taxi route should be calculated. See,
TransportMode.TAXI.Note: Specify the optional
Waypoint.sideOfStreetHintto indicate at which side of the street a passenger wants to leave the taxi.
-
-
Field Summary
Fields Modifier and Type Field Description booleanallowDriveThroughTaxiRoadsSpecifies if a vehicle is allowed to drive through the taxi-only roads and lanes.AvoidanceOptionsavoidanceOptionsOptions to specify restrictions for route calculations.CarSpecificationscarSpecificationsDetailed car specifications such as dimensions and weight.java.lang.StringlastCharacterOfLicensePlateSpecifies the last character of a vehicle's license plate, typically used to evaluate traffic restrictions in certain environmental or low-emission zones.java.util.List<MaxSpeedOnSegment>maxSpeedOnSegmentsSegments with restriction on maximumDynamicSpeedInfo.baseSpeedInMetersPerSecond.RouteOptionsrouteOptionsSpecifies the common route calculation options.RouteTextOptionstextOptionsCustomize textual content returned from the route calculation, such as localization, format, and unit system.TollOptionstollOptionsOptions to specify how the tolls should be calculated, such as transponders, vehicle category, and emission type.
-
Constructor Summary
Constructors Constructor Description TaxiOptions()Creates a new instance.TaxiOptions(RouteOptions routeOptions, RouteTextOptions textOptions, AvoidanceOptions avoidanceOptions)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
-
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.
-
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.
-
maxSpeedOnSegments
@NonNull public java.util.List<MaxSpeedOnSegment> maxSpeedOnSegments
Segments with restriction on maximum
DynamicSpeedInfo.baseSpeedInMetersPerSecond.
-
allowDriveThroughTaxiRoads
public boolean allowDriveThroughTaxiRoads
Specifies if a vehicle is allowed to drive through the taxi-only roads and lanes. When set to
false, it is still allowed on taxi roads after the route start and before the route destination.
-
carSpecifications
@NonNull public CarSpecifications carSpecifications
Detailed car specifications such as dimensions and weight.
-
-
Constructor Detail
-
TaxiOptions
public TaxiOptions()
Creates a new instance.
-
TaxiOptions
public TaxiOptions(@NonNull RouteOptions routeOptions, @NonNull RouteTextOptions textOptions, @NonNull AvoidanceOptions avoidanceOptions)Creates a new instance.
- Parameters:
routeOptions-Specifies the common route calculation options.
textOptions-Customize textual content returned from the route calculation, such as localization, format, and unit system.
avoidanceOptions-Options to specify restrictions for route calculations. By default no restrictions are applied.
-
-