HERE Android SDK Developer's Guide

Listener

The interface Listener is a member of com.here.android.mpa.routing.CoreRouter.

Interface Summary

public static abstract interface CoreRouter.Listener

   extends com.here.android.mpa.routing.Router.Listener

Represents a listener to provide information about route calculation events.

[For complete information, see the section Interface Details]

See also:

calculateRoute(RoutePlan, Listener<List<RouteResult>, RoutingError>)

Method Summary

Table 1. Methods in Listener
Methods

public abstract void onCalculateRouteFinished (java.util.List <RouteResult> results, RoutingError error)

A callback indicating that a route calculation operation has finished.

Interface Details

Represents a listener to provide information about route calculation events.

See also:

calculateRoute(RoutePlan, Listener<List<RouteResult>, RoutingError>)

Method Details

public abstract void onCalculateRouteFinished (java.util.List <RouteResult> results, RoutingError error)

A callback indicating that a route calculation operation has finished. In the case of VIOLATES_OPTIONS, one or more RouteResult in the returned list contains a list of violated RouteOptions. For other RoutingError, the list size of RouteResult will be 0. You may also receive an error in the offline case where only cached data (not downloaded map data) is available. There is no guarantee that a route is returned in this case. Only one result will be returned for routes with more than two RouteWaypoint.

Parameters:

See also:

getViolatedOptions()