Track accurate match.
Default is true.
Get algorithm type.
Default is PTAlgorithmType.departure.
Get the online route calculation allowance.
Default value is true.
Enable/disable alternative routes balanced sorting.
Default is true.
Alternative schema.
Default is RouteAlternativesSchema.defaultSchema.
Automatic timestamp assignment. If true, timestamp is set automatically if not provided.
Default is true.
Avoid biking hill factor 0.0 - no avoidance, 1.0 - full avoidance.
Default is 0.5.
Avoid carpool lanes flag.
Only available for custom builds containing TomTom map data. Ignored for public builds. Default is false.
Avoid ferries flag.
Default is false.
Avoid motorways flag.
Default is false.
Avoid toll roads flag.
Default is false.
Route calculation traffic avoidance method.
Default is TrafficAvoidance.none.
Avoid turnaround instruction flag.
If set to true then the message "Turnaround when possible" will be avoided during navigation. This preference is always overridden in car/truck navigation route recalculations, in which case the current driving direction is used, except for the case when emergency mode is activated. For car/truck this preference is used when setting a user roadblock during navigation. If set to false, a turn around instruction may be generated. Default is true for car/truck transport modes and false for the rest. If emergency mode is active, default value is always false. Default is false.
Avoid unpaved roads flag.
Default is false.
OptionalbikeBike profile.
Get route connections build.
Default is false.
If BuildTerrainProfile.enable is set to false then the route computed will have the terrainProfile null.
Default is set to an object with BuildTerrainProfile.enable set to false.
OptionalcarCar profile.
The departure heading.
By default it is set to an object with heading set to -1 and accuracy set to -1, which means no departure heading is specified.
The extra freedom levels for emergency vehicles, packed in an integer value.
The emergency vehicle mode, true for activation. Emergency mode sets the default AvoidTurnAroundInstruction setting to false also for car/truck. Emergency mode enables access to emergency dedicated links and enables a more relaxed routing set of constraints. Default is false.
OptionalevThe EV profile.
The ignore map restrictions in route-over-track mode.
Default is false.
Service maximum distance constraint. Maximum distance constraint depends on transport and result details.
Default is true.
Maximum transfer time in minutes. Refers to the transfer time between two means of transportation. Enable the user to specify the desired maximum amount of minutes between the arrival of one means of transportation and the departure of the next one. Default is 300.
Maximum walk distance.
Default is 5000.
Get minimum transfer time in minutes. Refers to the transfer time between two means of transportation. Enable the user to specify the desired minimum amount of minutes between the arrival of one means of transportation and the departure of the next one. Default is 1.
Path algorithm.
Default is RoutePathAlgorithm.ml.
Path algorithm flavor.
Default is RoutePathAlgorithmFlavor.magicLane.
Pedestrian profile.
Default is PedestrianProfile.walk.
Result details.
Default is RouteResultDetails.full.
Group ids for earlier/later trip.
Route ranges list.
Range units depend on route type: fastest - seconds, shortest - meters, economic - Wh. Default is an empty list.
Range result quality must be a valid integer in the 0 - 100 range, where 0 = lowest quality, 100 = highest quality. Default is 100 (max quality).
Route result type.
The value is not passed to the route calculation, but used as a result via RouteBase.preferences.
The route type.
Default is RouteType.fastest.
Route type preferences.
Default is Set containing RouteTypePreferences.none.
Sorting strategy.
Default is PTSortingStrategy.bestTime.
OptionaltimestampThe local time as a UTC Date object but containing the local time at the location.
If timestamp is null then it defaults to the current timestamp internally. If algorithmType is PTAlgorithmType.departure then the timestamp represents the desired departure time. If algorithmType is PTAlgorithmType.arrival then the timestamp represents the desired arrival time.
Route transport mode.
Default is RouteTransportMode.car.
OptionaltruckTruck profile.
Option toggle to use bike.
Default is false.
Option toggle to use wheelchair.
Default is false.
Staticfrom
Route preferences - contains the preferences used for route calculation.
A comprehensive configuration object for route calculation that centralizes routing behavior and result preferences. It lets callers tune algorithm and path selection, transport mode and vehicle characteristics, avoidance and traffic options, alternative-route handling, and output/detail level for the computed route.
Main members contain a mix of boolean toggles, numeric limits and thresholds, enum selections for algorithms and modes, lists for grouping/range controls, and nested profile objects for vehicles, and bikes.
Provides highly customizable routing options, tailored to each RouteTransportMode:
See the RoutingService class for computing routes.