HERE Android SDK Developer's Guide

RouteSection

The class RouteSection is a member of com.here.android.mpa.urbanmobility .

Class Summary

public final class RouteSection

extends java.lang.Object

Represents information about a single section/segment of a UMRoute which is covered by a single TransportType or is a pedestrian walk.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in RouteSection
Methods

public boolean equals (Object o)

public java.util.Collection <Alert> getAlerts ()

Gets collection of associated Alerts.

public Arrival getArrival ()

Get information about this route section arrival.

public Departure getDeparture ()

Get information about this route section departure.

public int getDistance ()

Get distance in meters covered by this route section.

public long getDuration ()

Get expected duration in seconds to cover this route section.

public java.util.Collection <Fare> getFares ()

Get the Fares which cover this particular route section.

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

Get the geometry of this route section.

public String getId ()

Gets unique id for this section.

public java.util.List <IntermediateStop> getIntermediateStops ()

Get all IntermediateStops of this route section.

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

Get list of Maneuvers for this route section, or empty list if not available.

public java.util.Collection <Link> getOperatorDisclaimers ()

Gets collection of associated operator disclaimer Links.

public TransportType getTransportType ()

Get TransportType which is used on this route section.

public int hashCode ()

public boolean isTimeUncertain ()

Indicate if departure/arrival times are uncertain.

Class Details

Represents information about a single section/segment of a UMRoute which is covered by a single TransportType or is a pedestrian walk.

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

Method Details

public boolean equals (Object o)

Parameters:

  • o

public java.util.Collection <Alert> getAlerts ()

Gets collection of associated Alerts.

Returns:

collection of Alerts

public Arrival getArrival ()

Get information about this route section arrival. See Arrival for details.

Returns:

information about arrival

public Departure getDeparture ()

Get information about this route section departure. See Departure for details.

Returns:

information about departure

public int getDistance ()

Get distance in meters covered by this route section.

Returns:

distances in meters

public long getDuration ()

Get expected duration in seconds to cover this route section.

Returns:

duration in seconds

public java.util.Collection <Fare> getFares ()

Get the Fares which cover this particular route section.

Returns:

collection of fares

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

Get the geometry of this route section.

Returns:

geometry as list of GeoCoordinate objects

public String getId ()

Gets unique id for this section.

Returns:

unique section id

public java.util.List <IntermediateStop> getIntermediateStops ()

Get all IntermediateStops of this route section. Will return empty list in case of walking section or when intermediate stops are not available for given route.

Returns:

list of intermediate stops

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

Get list of Maneuvers for this route section, or empty list if not available.

Returns:

list of maneuvers

public java.util.Collection <Link> getOperatorDisclaimers ()

Gets collection of associated operator disclaimer Links.

Returns:

collection of Links

public TransportType getTransportType ()

Get TransportType which is used on this route section. Returns null if this it is a walking section.

Returns:

transport type of this section or null if it is a walking section

public int hashCode ()

public boolean isTimeUncertain ()

Indicate if departure/arrival times are uncertain. It is true for estimated values and false if it comes from real time or time table data.

Returns:

true if departure/arrival time is uncertain (i.e. value is estimated), false otherwise (i.e. value is from time table or real time)

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.