SpeedProfile

open class SpeedProfile(val mainPond: Double = 1.0, val secondaryPond: Double = 1.0, val thirdPond: Double = 1.0, val fourthPond: Double = 0.75, val mainPondETA: Double = mainPond, val secondaryPondETA: Double = secondaryPond, val thirdPondETA: Double = thirdPond, val fourthPondETA: Double = fourthPond)

Default SpeedProfile

Unless specified, ETA ponderations will automatically use the route calculation value.

Parameters

mainPond

Speed ponderation for the main road network level, apply only to route calculation

secondaryPond

Speed ponderation for the second road network level, apply only to route calculation

thirdPond

Speed ponderation for the third road network level, apply only to route calculation

fourthPond

Speed ponderation for the fourth road network level, apply only to route calculation

mainPondETA

Speed ponderation for the main road network level, apply only to route ETA

secondaryPondETA

Speed ponderation for the second road network level, apply only to route ETA

thirdPondETA

Speed ponderation for the third road network level, apply only to route ETA

fourthPondETA

Speed ponderation for the fourth road network level, apply only to route ETA

Inheritors

Constructors

Link copied to clipboard
constructor(mainPond: Double = 1.0, secondaryPond: Double = 1.0, thirdPond: Double = 1.0, fourthPond: Double = 0.75, mainPondETA: Double = mainPond, secondaryPondETA: Double = secondaryPond, thirdPondETA: Double = thirdPond, fourthPondETA: Double = fourthPond)

Properties

Link copied to clipboard
val fourthPond: Double = 0.75
Link copied to clipboard
Link copied to clipboard
val mainPond: Double = 1.0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val thirdPond: Double = 1.0
Link copied to clipboard

Functions

Link copied to clipboard
fun toJson(): String