HERE Android SDK Developer's Guide

TrafficEventObject

The class TrafficEventObject is a member of com.here.android.mpa.mapping .

Class Summary

public final class TrafficEventObject

extends com.here.android.mpa.mapping.MapProxyObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Encapsulates information about a traffic event on a map.

[For complete information, see the section Class Details]

See also:

TrafficEvent

Method Summary

Table 1. Methods in TrafficEventObject
Methods

public GeoCoordinate getCoordinate ()

Gets the GeoCoordinate representing the position of the traffic event icon on the map.

public TrafficEvent getTrafficEvent ()

Gets the TrafficEvent associated with the TrafficEventObject .

Class Details

Encapsulates information about a traffic event on a map.

A TrafficEventObject represents a specialized MapProxyObject .User can retrieve an instance of this object by calling getSelectedObjects(PointF) or getSelectedObjects(ViewRect) with the location where a traffic event is located.

See also:

TrafficEvent

Method Details

public GeoCoordinate getCoordinate ()

Gets the GeoCoordinate representing the position of the traffic event icon on the map.

Returns:

The GeoCoordinate

public TrafficEvent getTrafficEvent ()

Gets the TrafficEvent associated with the TrafficEventObject . A TrafficEvent instance contains detailed information about a traffic event.

Returns:

The TrafficEvent.