YMKSpeedLimitsPolicy

class YMKSpeedLimitsPolicy : NSObject

Undocumented

Summary

Instance methods

func customSpeedLimits(withToleranceRatio toleranceRatio: Double) -> YMKNavigationSpeedLimits
For example ratio = 0

Properties

var legalSpeedLimitsYMKNavigationSpeedLimits { get }
For example for Russia 60/90/110 km/h

var speedLimitsRulesYMKNavigationSpeedLimitsRules { get }
Undocumented

Instance methods

customSpeedLimits(withToleranceRatio:)

func customSpeedLimits(withToleranceRatio toleranceRatio: Double) -> YMKNavigationSpeedLimits

For example ratio = 0.8 and current speed limit is 60 km/h - for Russia: enforcement tolerance is 20 km/h for all speed limits => we should start warning the user when current speed > 60 + 20 * 0.8 = 76 km/h - for Turkey: enforcement tolerance is 10 percent over the speed limit => we should start warning the user when current speed > 60 + 60 * 0.1 * 0.8 = 64.8 km/h


Properties

legalSpeedLimits

var legalSpeedLimits: YMKNavigationSpeedLimits { get }

For example for Russia 60/90/110 km/h


speedLimitsRules

var speedLimitsRules: YMKNavigationSpeedLimitsRules { get }

Undocumented


Предыдущая
Следующая