HERE Android SDK Developer's Guide

UMRoute

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

Class Summary

public final class UMRoute

extends com.here.android.mpa.routing.Route, java.lang.Object

Route extension with Urban Mobility specifics like ticketing information or real-time data.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in UMRoute
Methods

public Arrival getArrival ()

Get information about this route's arrival.

public int getChangesCount ()

Get number of public transport changes (transfers) to make along this route.

public Departure getDeparture ()

Get information about this route's departure.

public long getDuration ()

Get the expected duration of this route in seconds.

public String getId ()

Get route ID which is unique within same UMCalculateResult.

public java.util.List <Maneuver> getManeuvers ()

Returns an empty list in an Urban Mobility route calculation.

public java.util.List <RouteSection> getSections ()

Get List of RouteSection objects which represent parts of this route with different means of transit.

public java.util.List <Tariff> getTariffs ()

Get List of Tariff objects each of which represent a different collection/alternative of Fares to cover this route.

Class Details

Route extension with Urban Mobility specifics like ticketing information or real-time data. Represents a single route/connection within UMRouteResult.

IMPORTANT: Urban Mobility routing is a Beta feature. The related classes are subject to change without notice.

Method Details

public Arrival getArrival ()

Get information about this route's arrival. See Arrival for details.

Returns:

information about arrival

public int getChangesCount ()

Get number of public transport changes (transfers) to make along this route.

Returns:

number of changes, or -1 if not available

public Departure getDeparture ()

Get information about this route's departure. See Departure for details.

Returns:

information about departure

public long getDuration ()

Get the expected duration of this route in seconds.

Returns:

duration in seconds, or -1 if not available

public String getId ()

Get route ID which is unique within same UMCalculateResult.

Returns:

route ID, or null if not available

public java.util.List <Maneuver> getManeuvers ()

Returns an empty list in an Urban Mobility route calculation. Use getManeuvers() instead.

public java.util.List <RouteSection> getSections ()

Get List of RouteSection objects which represent parts of this route with different means of transit.

Returns:

list of route sections

public java.util.List <Tariff> getTariffs ()

Get List of Tariff objects each of which represent a different collection/alternative of Fares to cover this route.

Returns:

list of alternative tariffs