MapKit Mobile SDK

MMKSpeedLimitsPolicy

class MMKSpeedLimitsPolicy : NSObject

Undocumented

Summary

Instance methods

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

Properties

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

var speedLimitsRulesMMKNavigationSpeedLimitsRules { get }
Undocumented

Instance methods

customSpeedLimits(withToleranceRatio:)

func customSpeedLimits(withToleranceRatio toleranceRatio: Double) -> MMKNavigationSpeedLimits

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: MMKNavigationSpeedLimits { get }

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


speedLimitsRules

var speedLimitsRules: MMKNavigationSpeedLimitsRules { get }

Undocumented