RoutePreferences

RoutePreferences object

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)
constructor(address: Long, isRef: Boolean)

Properties

Link copied to clipboard

Accurate track match Default is true

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Algorithm type.

Link copied to clipboard

Returns true if alternative routes balanced sorting is enabled

Link copied to clipboard
Link copied to clipboard

Avoid biking hill factor

Link copied to clipboard

Tests if avoid carpool lanes is set. Note: Default is false.

Link copied to clipboard

Tests if avoid ferries is set. Note: Default is false.

Link copied to clipboard

Avoid motorways. Note: Default is false.

Link copied to clipboard

Tests if avoid toll roads is set. Note: Default is false.

Link copied to clipboard

Route calculation traffic avoidance method. Default is ETrafficAvoidance.None.

Link copied to clipboard

The avoid turnaround instruction flag. If set to true then the message "Turnaround when possible" will be avoided during navigation.

Link copied to clipboard

Tests if avoid unpaved roads is set. Note: Default is false.

Link copied to clipboard

Selected bike profile

Link copied to clipboard

Build terrain profile

Link copied to clipboard

Truck profile

Link copied to clipboard

Default e-bike profile

Link copied to clipboard

Departure heading in degrees.

Link copied to clipboard

Selected e-bike profile

Link copied to clipboard

Emergency mode enables setAvoidTurnAroundInstruction setting also for car/truck Emergency mode enables access to emergency dedicated links Default is false

Link copied to clipboard

EV profile

Link copied to clipboard

Ignore map restrictions in route-over-track mode Default is false

Link copied to clipboard

Enable / disable service maximum distance constraint maximum distance constraint depends on transport and result details. Default is active

Link copied to clipboard

Maximum waiting minutes in a stop. Default is 300.

Link copied to clipboard

Maximum walk distance. Default is 4000.

Link copied to clipboard

Safety net minutes. Default is 0.

Link copied to clipboard
Link copied to clipboard

Pedestrian profile

Link copied to clipboard
Link copied to clipboard

Group ids for earlier/later trip

Link copied to clipboard

Route ranges list

Link copied to clipboard

Route range quality

Link copied to clipboard

Route result type.

Link copied to clipboard

Route type. Note: Default is Fastest.

Link copied to clipboard

Route type preferences (default is 0 - no special preference for one route type) Set route type preferences, for example, SetRoutePreferences(EPTRouteTypePreference.Bus | EPTRouteTypePreference.Underground)

Link copied to clipboard

Sorting strategy.

Link copied to clipboard

Timestamp.

Link copied to clipboard

Transport mode. Note: Default is Car.

Link copied to clipboard

Truck profile

Link copied to clipboard

Option toggle to use bike. Note: Default is false.

Link copied to clipboard

Option toggle to use wheelchair. Note: Default is false.

Functions

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

Get route connections build

Link copied to clipboard

Get route connections build max length

Link copied to clipboard

Timestamp to automatic mode.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard

Set bike profile

Link copied to clipboard
external fun setBuildConnections(build: Boolean, maxLength: Int = -1)

Set build route connections

Link copied to clipboard
fun setBuildTerrainProfile(value: Boolean, minVariation: Float = -1f)

Set terrain profile build

Link copied to clipboard
external fun setDepartureHeading(head: Double, accuracy: Double = 25.0)

Set the departure heading in degrees.

Link copied to clipboard
external fun setEmergencyVehicleMode(value: Boolean, extraFreedom: Int = 0)

Set the emergency vehicle mode

Link copied to clipboard

Set timestamp to automatic mode.

Link copied to clipboard
external fun setRouteRanges(value: ArrayList<Int>, quality: Int)

Sets route ranges list a non empty range list will generate an isocost range route result range result quality must a valid integer in 0 - 100 range, 0 = lowest quality, 100 = highest quality ranges units depends on route type: Fastest - seconds, Shortest - meters