HERE Android SDK Developer's Guide

RouteIntersection

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

Class Summary

public final class RouteIntersection

extends java.lang.Object

This is the definition of the RouteIntersection class.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in RouteIntersection
Methods

public int getDistance ()

Gets the distance from the segment search started from to the intersection.

public GeoCoordinate getPosition ()

Gets the position of this intersection.

public int getRouteElementIndex ()

Gets the index of the route element before intersection

public java.util.List <RoadElement> getStreets ()

List of streets of the intersection.

Class Details

This is the definition of the RouteIntersection class. This class contains intersection on a route.

Method Details

public int getDistance ()

Gets the distance from the segment search started from to the intersection. The length of the first segment is included.

Returns:

The distance

public GeoCoordinate getPosition ()

Gets the position of this intersection.

Returns:

The position

public int getRouteElementIndex ()

Gets the index of the route element before intersection

Returns:

The index of the route element

public java.util.List <RoadElement> getStreets ()

List of streets of the intersection. Streets which belongs to the route are not included.

Returns:

The list of RoadElement objects