HERE Android SDK Developer's Guide

RouteElement

The class RouteElement is a member of com.here.android.mpa.routing .

Class Summary

public final class RouteElement

extends java.lang.Object

Represents an element within a Route.

[For complete information, see the section Class Details]

See also:

Route

Maneuver

Nested Class Summary

Table 1. Nested Classes in RouteElement
Nested Classes

public static final enumeration RouteElement.Type

Represents values describing the possible types of a RouteElement.

Method Summary

Table 2. Methods in RouteElement
Methods

public java.util.List <GeoCoordinate> getGeometry ()

Returns the geometry of the route element.

public RoadElement getRoadElement ()

Returns the RoadElement associated with this RouteElement.

public TransitRouteElement getTransitElement ()

Returns the TransitRouteElement associated with this RouteElement

public Type getType ()

Gets the type of the RouteElement

Class Details

Represents an element within a Route. Please note that RouteElements are also associated with Maneuver instances within a Route .

See also:

Route

Maneuver

Method Details

public java.util.List <GeoCoordinate> getGeometry ()

Returns the geometry of the route element. The geometry is a returned as a list of GeoCoordinate that can be used to create a polyline.

Returns:

a list of GeoCoordinate

public RoadElement getRoadElement ()

Returns the RoadElement associated with this RouteElement. Each route element has an associated road element.

Returns:

the associated RoadElement.

public TransitRouteElement getTransitElement ()

Returns the TransitRouteElement associated with this RouteElement

Returns:

the associated TransitRouteElement. null if getType() is not TRANSIT

public Type getType ()

Gets the type of the RouteElement

Returns:

type of the RouteElement