An immutable class that defines triggering thresholds for different severities of speed alerts,
represented by GMSNavigationSpeedAlertSeverity.
You can use this to customize the speed alert triggering thresholds in percentage for both minor
and major alerts, and customize the time based triggering threshold for major speed alert.
The speed alerts triggered by corresponding thresholds from this GMSNavigationSpeedAlertOptions
have UI customized in GMSNavigationSpeedometerUIOptions if set.
The duration threshold controls the speed alert severity upgrade. A major speed alert is
triggered when the speed exceeds the minor speed alert threshold for more than the given number
of seconds.
Gets the speed alert threshold (as a percentage) for the specific
GMSNavigationSpeedAlertSeverity. A value of 0.0 represents 0%, and 1.0 represents 100%. A
negative value indicates no threshold being set for that speedingType.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSNavigationSpeedAlertOptions\u003c/code\u003e is an immutable class used to define triggering thresholds for different severities of speed alerts.\u003c/p\u003e\n"],["\u003cp\u003eIt allows customization of speed alert thresholds as percentages for both minor and major alerts.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eseverityUpgradeDurationSeconds\u003c/code\u003e property controls the time duration before a minor alert escalates to a major alert.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the threshold percentage for a specific \u003ccode\u003eGMSNavigationSpeedAlertSeverity\u003c/code\u003e using the \u003ccode\u003ethresholdPercentage(for:)\u003c/code\u003e or \u003ccode\u003ethresholdPercentageForSpeedAlertSeverity:\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eSpeed alerts triggered by these thresholds can have their UI customized using \u003ccode\u003eGMSNavigationSpeedometerUIOptions\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSNavigationSpeedAlertOptions\n==============================\n\n @interface GMSNavigationSpeedAlertOptions\n : NSObject \u003cNSCopying, NSMutableCopying\u003e\n\nAn immutable class that defines triggering thresholds for different severities of speed alerts,\nrepresented by [GMSNavigationSpeedAlertSeverity](../Enums/GMSNavigationSpeedAlertSeverity.html).\n\nYou can use this to customize the speed alert triggering thresholds in percentage for both minor\nand major alerts, and customize the time based triggering threshold for major speed alert.\n\nThe speed alerts triggered by corresponding thresholds from this `GMSNavigationSpeedAlertOptions`\nhave UI customized in [GMSNavigationSpeedometerUIOptions](../Classes/GMSNavigationSpeedometerUIOptions.html) if set.\n- `\n ``\n ``\n `\n\n ### [severityUpgradeDurationSeconds](#/c:objc(cs)GMSNavigationSpeedAlertOptions(py)severityUpgradeDurationSeconds)\n\n `\n ` \n The duration threshold controls the speed alert severity upgrade. A major speed alert is\n triggered when the speed exceeds the minor speed alert threshold for more than the given number\n of seconds. \n\n #### Declaration\n\n Swift \n\n var severityUpgradeDurationSeconds: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval severityUpgradeDurationSeconds;\n\n- `\n ``\n ``\n `\n\n ### [-thresholdPercentageForSpeedAlertSeverity:](#/c:objc(cs)GMSNavigationSpeedAlertOptions(im)thresholdPercentageForSpeedAlertSeverity:)\n\n `\n ` \n Gets the speed alert threshold (as a percentage) for the specific\n [GMSNavigationSpeedAlertSeverity](../Enums/GMSNavigationSpeedAlertSeverity.html). A value of 0.0 represents 0%, and 1.0 represents 100%. A\n negative value indicates no threshold being set for that speedingType. \n\n #### Declaration\n\n Swift \n\n func thresholdPercentage(for speedAlertSeverity: ../Enums/GMSNavigationSpeedAlertSeverity.html) -\u003e CGFloat\n\n Objective-C \n\n - (CGFloat)thresholdPercentageForSpeedAlertSeverity:\n (../Enums/GMSNavigationSpeedAlertSeverity.html)speedAlertSeverity;"]]