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()

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.