Class TrafficLocation
Class TrafficLocation
- java.lang.Object
-
- com.here.sdk.traffic.TrafficLocation
-
public final class TrafficLocation extends java.lang.ObjectThe location reference to the traffic incident.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<GeoPolyline>additionalPolylinesList of polylines that were not included in continuous polyline.java.lang.StringdescriptionThe description of the location.intlengthInMetersThe affected road length in meters.GeoPolylinepolylineThe polyline representing the traffic entity shape.
-
Constructor Summary
Constructors Constructor Description TrafficLocation(GeoPolyline polyline, java.util.List<GeoPolyline> additionalPolylines, int lengthInMeters)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
description
@NonNull public java.lang.String 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
@NonNull public GeoPolyline 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
@NonNull public java.util.List<GeoPolyline> additionalPolylines
List of polylines that were not included in continuous polyline. Use this to fill any gaps in the continuous polyline.
-
lengthInMeters
public int lengthInMeters
The affected road length in meters. The length can be 0 only if the incident supplier has provided incomplete data.
-
-
Constructor Detail
-
TrafficLocation
public TrafficLocation(@NonNull GeoPolyline polyline, @NonNull java.util.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.
-
-