SpecialSpeedType (API Reference)
Enum Class SpecialSpeedType
- All Implemented Interfaces:
Serializable,Comparable<SpecialSpeedType>,Constable
Represents the speed situation type.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThese posted speeds are not the legal limit, but rather serve to warn a driver that road conditions indicate a lower speed is practical.Speed limit that is in effect considering the seasonA conditional speed limit as indicated on the local road signs.These are situations where a road has different speed limits per lane.A conditional speed limit as indicated on the local road signs.School zone signs are often placed to slow drivers before reaching an intersection where children are crossing.A conditional speed limit as indicated on the local road signs.This indicates that for a stretch of road, speed bumps are present or chicanes are present that effectively reduce the posted speed.A conditional speed limit as indicated on the local road signs.Unknown special speed type -
Method Summary
Modifier and TypeMethodDescriptionstatic SpecialSpeedTypeReturns the enum constant of this class with the specified name.static SpecialSpeedType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown special speed type
-
ADVISORY_SPEED
These posted speeds are not the legal limit, but rather serve to warn a driver that road conditions indicate a lower speed is practical. Typically, the road condition is a curved road or a ramp but it may be due to a narrow road, narrow bridge, intersecting road, drainage dip, etc. In some cases, the advisory sign is on a different road than the one for which it applies (this can happen with ramps). In this case, the advisory speed is indicated for the road for which it is intended, even if the sign is further than 50 meters from the particular road.
- Advisory speed signs due to construction are not included.
- A speed value is published for advisory signs.
-
SPEED_BUMPS_PRESENT
This indicates that for a stretch of road, speed bumps are present or chicanes are present that effectively reduce the posted speed.
-
SCHOOL
School zone signs are often placed to slow drivers before reaching an intersection where children are crossing.
-
TIME_DEPENDENT
A conditional speed limit as indicated on the local road signs. Speed limit that is in effect considering the current local time provided by the device's clock.
-
APPROXIMATE_SEASONAL_TIME
Speed limit that is in effect considering the season
-
LANE_DEPENDENT
These are situations where a road has different speed limits per lane.
-
RAIN
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when it is raining or there is water on the road.
A possible usage example can be to show an icon on the device's screen containing both special speed limit value and a visual cue in order to warn the user about the conditional speed limit.
-
SNOW
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when there is snow on the road.
A possible usage example can be to show an icon on the device's screen containing both special speed limit value and a visual cue in order to warn the user about the conditional speed limit.
-
FOG
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when the visibility decreases due to fog.
A possible usage example can be to show an icon on the device's screen containing both special speed limit value and a visual cue in order to warn the user about the conditional speed limit.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-