HERE Android SDK Developer's Guide

LaneInformationListener

The class LaneInformationListener is a member of com.here.android.mpa.guidance.NavigationManager.

Class Summary

public static abstract class NavigationManager.LaneInformationListener

extends java.lang.Object

LaneInformationListener provides callback of LaneInformation related events from NavigationManager .

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in LaneInformationListener
Constructors

LaneInformationListener ()

Method Summary

Table 2. Methods in LaneInformationListener
Methods

public void onLaneInformation (java.util.List <LaneInformation> lanes, RoadElement road)

Called when new information about lanes is available.

Class Details

LaneInformationListener provides callback of LaneInformation related events from NavigationManager . Used to retrieve information about the lane configuration while navigating.

No callback will be triggered if the HERE license key is invalid.

Constructor Details

LaneInformationListener ()

Method Details

public void onLaneInformation (java.util.List <LaneInformation> lanes, RoadElement road)

Called when new information about lanes is available. This method is called whenever the current available lane information changes. No available lane information is indicated by an empty List (e.g. lane information should stop being displayed).

The lanes are ordered from left (index = 0) to right (index = lanes.size( ) - 1).

Parameters:

  • lanes

    A List of LaneInformation objects. An empty List indicates that no lane information is available and lane information should stop being shown. The lanes are ordered from left (index = 0) to right (index = lanes.size( ) - 1).

  • road

    The RoadElement that the LaneInformation is associated with. null if not available or if lanes is empty.

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.