Class TrafficLocation

java.lang.Object
com.here.sdk.traffic.TrafficLocation

public final class TrafficLocation extends Object

The location reference to the traffic incident.

  • Field Details

    • description

      @NonNull public 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_polylines field.

    • additionalPolylines

      @NonNull public 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 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_polylines field.

      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