RoadSignWarning (API Reference)
Class RoadSignWarning
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe main category to which the road sign belongs.doubleDistance to the road sign in meters.The distance type for the warning, e.g.Optional length information during which the warning is applicable.Specifies the general warning to which the road sign belongs.booleanFlag indicating if the road sign is a priority sign.Optional pre-warning in terms of distance, of the upcoming warning or regulation.The reference to the segment where the road sign is located.Optional value visible on the main sign related to specific road sign types, as it is printed on the local road sign.Type of the road sign.Optional text visible on the supplemental sign indicating specific time(s) at which the road sign is applicable.Specifies a list of vehicle types for which the road sign is applicable.Specifies the weather type for which the sign is applicable. -
Constructor Summary
ConstructorsConstructorDescriptionRoadSignWarning(double distanceToRoadSignInMeters, RoadSignType type, RoadSignCategory category, GeneralWarningRoadSignType generalWarningType, boolean isPrioritySign, List<RoadSignVehicleType> vehicleTypes, WeatherType weatherType, SegmentReference roadSignSegment, DistanceType distanceType) Creates a new instance. -
Method Summary
-
Field Details
-
distanceToRoadSignInMeters
public double distanceToRoadSignInMetersDistance to the road sign in meters.
-
type
Type of the road sign.
-
category
The main category to which the road sign belongs.
-
generalWarningType
Specifies the general warning to which the road sign belongs.
-
isPrioritySign
public boolean isPrioritySignFlag indicating if the road sign is a priority sign.
-
vehicleTypes
Specifies a list of vehicle types for which the road sign is applicable. The list will be empty when the road sign is applicable for all vehicles including cars.
-
weatherType
Specifies the weather type for which the sign is applicable. If weather type is
WeatherType.UNKNOWN, the sign is actual for all weather types. -
signValue
Optional value visible on the main sign related to specific road sign types, as it is printed on the local road sign.
-
preWarning
Optional pre-warning in terms of distance, of the upcoming warning or regulation. The pre-warning information is given as printed on the local road sign.
-
duration
Optional length information during which the warning is applicable. Usually, this information is shown on a separate shield below the main shield. For example, a sign may warn on playing children for a length of 100 m, starting from the location of the warning sign. The length information (most likely with units) is given as printed on the local road sign.
-
validityTime
Optional text visible on the supplemental sign indicating specific time(s) at which the road sign is applicable. The time information is given as printed on the local road sign.
-
roadSignSegment
The reference to the segment where the road sign is located. It can be used to identify the location of the road sign. It allows to compare the road sign location with the
MapMatchedLocation.segment_referenceprovided by theNavigableLocationListeneror with theSpan.getSegmentReference()available in the Route's Span. By combining it with the geometry of the segment, that can be loaded usingSegmentDataLoader, it is possible to identify the road sign's coordinates. -
distanceType
The distance type for the warning, e.g. a warning for a new road sign ahead or a warning for passing a road sign. Since the road sign warning is given relative to a single position on the route,
DistanceType.REACHEDwill never be given for this warning.
-
-
Constructor Details
-
Method Details