TrafficLocation class

The location reference to the traffic incident.

Constructors

TrafficLocation(GeoPolyline polyline, List<GeoPolyline> additionalPolylines, int lengthInMeters)
Creates a new instance.

Properties

additionalPolylines ↔ List<GeoPolyline>
List of polylines that were not included in continuous polyline. Use this to fill any gaps in the continuous polyline.
getter/setter pair
description ↔ String
The description of the location. In general, the language can't be bound to the description. Usually, the language is one of the local languages of the incident region. Note: A localizable description of the incident is part of TrafficIncidentBase.description. This description describes only the location where the incident occurred. Defaults to an empty string.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
lengthInMeters ↔ int
The affected road length in meters. The length can be 0 only if the incident supplier has provided incomplete data.
getter/setter pair
polyline GeoPolyline
The polyline representing the traffic entity shape. The current field contains a continuous polyline with no gaps between geo-coordinates. All others following the gap are present in the additional_polylines field.
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.