HERE Android SDK Developer's Guide

OnRouteListener

The interface OnRouteListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnRouteListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

Route object is available event interface.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnRouteListener
Methods

public abstract void onComplete (Error error, Route preferredRoute, java.util.List <Place> preferredRoutePlaces, String startingPointName, java.util.List <Route> routes)

A callback with the preferred calculated route, the list of Routes to all destinations, and the list of Places.

public abstract void onStart ()

A callback when start calculating route.

Interface Details

Route object is available event interface.

Method Details

public abstract void onComplete (Error error, Route preferredRoute, java.util.List <Place> preferredRoutePlaces, String startingPointName, java.util.List <Route> routes)

A callback with the preferred calculated route, the list of Routes to all destinations, and the list of Places. e.g. "Create a route from Vancouver to Seattle" When the callback is received, the application is responsible for displaying the route results, if desired.

Parameters:

  • error

    Error status for routing

  • preferredRoute

    The preferred Route from among the list of Routes to all found destinations

  • preferredRoutePlaces

    Array of Places included into the preferred route, excluding the starting point.

  • startingPointName

    The starting point name

  • routes

    The list of Routes to all found destinations, including the preferred route.

public abstract void onStart ()

A callback when start calculating route. e.g. "Create a route from Vancouver to Seattle"