HERE Android SDK Developer's Guide

TrafficNotificationInfo

The class TrafficNotificationInfo is a member of com.here.android.mpa.guidance .

Class Summary

public final class TrafficNotificationInfo

extends java.lang.Object

Represents the details information for the traffic notification.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in TrafficNotificationInfo
Nested Classes

public static final enumeration TrafficNotificationInfo.Type

Type for a traffic notification, with regards to the current route

Method Summary

Table 2. Methods in TrafficNotificationInfo
Methods

public GeoBoundingBox getAffectedArea ()

Return the bounding box affecting this TrafficNotificationInfo .

public long getAffectedLength ()

Returns the full length of the traffic event during tracking or the portion of the route affected by the traffic event during navigation.

public long getDistanceInMeters ()

The distance from the last callback position to the traffic notification

public TrafficEvent getEvent ()

Deprecated: As of SDK 3.2.

The traffic event TrafficEvent associated with the traffic notification info TrafficNotificationInfo

public Severity getSeverity ()

Gets the TrafficEvent.Severity of this traffic notification.

public long getTravelTime ()

Returns the free flow travel time for the road segments covered by the location of the traffic notification.

public long getTravelTimeWithTraffic ()

Returns the traffic travel time for the road segments covered by the location of the traffic notification.

public Type getType ()

The type of the traffic notification info TrafficNotificationInfo

public String toString ()

For documentation, see java.lang.Object

Class Details

Represents the details information for the traffic notification.

Method Details

public GeoBoundingBox getAffectedArea ()

Return the bounding box affecting this TrafficNotificationInfo .

Returns:

The GeoBoundingBox representing the area affected.

public long getAffectedLength ()

Returns the full length of the traffic event during tracking or the portion of the route affected by the traffic event during navigation.

Returns:

The affected length (in meters).

public long getDistanceInMeters ()

The distance from the last callback position to the traffic notification

Returns:

true if the traffic notification info is valid

public TrafficEvent getEvent ()

Deprecated: As of SDK 3.2.

Use TrafficUpdater to retrieve TrafficEvents along the route. For example, TrafficUpdater.getEvents(Route, GetEventsListener).

The traffic event TrafficEvent associated with the traffic notification info TrafficNotificationInfo

Returns:

the traffic event

public Severity getSeverity ()

Gets the TrafficEvent.Severity of this traffic notification.

Returns:

The TrafficEvent.Severity of this traffic notification.

public long getTravelTime ()

Returns the free flow travel time for the road segments covered by the location of the traffic notification.

Returns:

The travel time in seconds.

public long getTravelTimeWithTraffic ()

Returns the traffic travel time for the road segments covered by the location of the traffic notification.

Returns:

The traffic travel time in seconds.

public Type getType ()

The type of the traffic notification info TrafficNotificationInfo

Returns:

type of the traffic notification info

public String toString ()

For documentation, see java.lang.Object

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.