DangerZoneWarning class

Represents danger zones.

A danger zone refers to areas where there is an increased risk of traffic incidents. These zones are designated to alert drivers to potential hazards and encourage safer driving behaviors. Legally, certain devices can alert you to being in a danger zone, typically indicating the presence of a speed camera. In line with applicable law and industry standard, these alerts are usually provided along a road within a range of 4 km on a motorway, 2 km outside built-up areas, and 300 m in built-up areas​​. The HERE SDK warns when approaching the danger zone, as well as when leaving such a zone. A danger zone may or may not have one or more speed cameras in it. The exact location of such speed cameras is not provided. Note that danger zones are only available in selected countries, such as France.

Constructors

DangerZoneWarning(bool isZoneStart, double distanceInMeters, DistanceType distanceType)
Creates a new instance.

Properties

distanceInMeters ↔ double
The distance from the current location to the Danger zone.
getter/setter pair
distanceType DistanceType
Indicates if the specified zone is ahead of the vehicle or has just passed by. If it is ahead, then DangerZoneWarning.distanceInMeters is greater than 0.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
isZoneStart ↔ bool
A flag indicating whether the Danger Zone officially start in the location the user is entering it.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.