TrafficLocation (API Reference)
Class TrafficLocation
The location reference to the traffic incident.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of polylines that were not included in continuous polyline.The description of the location.intThe affected road length in meters.The polyline representing the traffic entity shape. -
Constructor Summary
ConstructorsConstructorDescriptionTrafficLocation(GeoPolyline polyline, List<GeoPolyline> additionalPolylines, int lengthInMeters) Creates a new instance. -
Method Summary
-
Field Details
-
description
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.getDescription(). This description describes only the location where the incident occurred. Defaults to an empty string. -
polyline
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_polylinesfield. -
additionalPolylines
List of polylines that were not included in continuous polyline. Use this to fill any gaps in the continuous polyline.
-
lengthInMeters
public int lengthInMetersThe affected road length in meters. The length can be 0 only if the incident supplier has provided incomplete data.
-
-
Constructor Details
-
TrafficLocation
public TrafficLocation(@NonNull GeoPolyline polyline, @NonNull List<GeoPolyline> additionalPolylines, int lengthInMeters) Creates a new instance.
- Parameters:
polyline-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_polylinesfield.additionalPolylines-List of polylines that were not included in continuous polyline. Use this to fill any gaps in the continuous polyline.
lengthInMeters-The affected road length in meters. The length can be 0 only if the incident supplier has provided incomplete data.
-
-
Method Details