SegmentSpecialSpeedSituation (API Reference)
Class SegmentSpecialSpeedSituation
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe times during which the condition applies.Represents the speed situation type.doubleOverrides normal speed limit for this situation. -
Constructor Summary
ConstructorsConstructorDescriptionSegmentSpecialSpeedSituation(SpecialSpeedType specialSpeedType, double speedLimitInMetersPerSecond, List<TimeRule> appliesDuring) Creates a new instance with default values. -
Method Summary
-
Field Details
-
specialSpeedType
Represents the speed situation type.
-
speedLimitInMetersPerSecond
public double speedLimitInMetersPerSecondOverrides 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.
-
-
Constructor Details
-
SegmentSpecialSpeedSituation
public SegmentSpecialSpeedSituation(@NonNull SpecialSpeedType specialSpeedType, double speedLimitInMetersPerSecond, @NonNull List<TimeRule> appliesDuring) 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.
-
-
Method Details