SegmentSpecialSpeedSituation
public struct SegmentSpecialSpeedSituation : Hashable
A special speed situation indicates a speed that exists under special circumstances. It can be used to further refine the estimation of traversal times, route calculation and calculation of route guidance timing.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Represents the speed situation type.
Declaration
Swift
public var specialSpeedType: SpecialSpeedType -
Overrides normal speed limit for this situation.
May be 0 to indicate no special speed limit in the case of special_speed_type = SPEED_BUMPS_PRESENT and special_speed_type = LANE_DEPENDENT. Speed limit in meter per seconds.
Declaration
Swift
public var speedLimitInMetersPerSecond: Double -
The times during which the condition applies. May be empty for all special_speed_type values except
TIME_DEPENDENTandAPPROXIMATE_SEASONAL_TIME.Declaration
Swift
public var appliesDuring: [TimeRule] -
Creates a new instance with default values.
Parameters
- specialSpeedType: Represents the speed situation type.
- speedLimitInMetersPerSecond: Overrides normal speed limit for this situation.
May be 0 to indicate no special speed limit in the case of special_speed_type = SPEED_BUMPS_PRESENT and special_speed_type = LANE_DEPENDENT. Speed limit in meter per seconds.
- appliesDuring: The times during which the condition applies.
May be empty for all special_speed_type values except
TIME_DEPENDENTandAPPROXIMATE_SEASONAL_TIME.
Declaration
Swift
public init(specialSpeedType: SpecialSpeedType, speedLimitInMetersPerSecond: Double, appliesDuring: [TimeRule])