customSpeedLimits abstract method
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
Implementation
SpeedLimits customSpeedLimits(core.double toleranceRatio);