HERE Android SDK Developer's Guide

Router<T, S extends Enum<?>>

The interface Router<T, S extends Enum<?>> is a member of com.here.android.mpa.routing .

Type Parameters:

  • T
  • S

Interface Summary

public abstract interface Router

Base interface for route calculation class.

[For complete information, see the section Interface Details]

Nested Class Summary

Table 1. Nested Classes in Router<T, S extends Enum<?>>
Nested Classes

public static abstract interface Router.Listener

Method Summary

Table 2. Methods in Router<T, S extends Enum<?>>
Methods

public abstract void calculateRoute (RoutePlan routePlan, Listener<T, > listener)

Invokes an asynchronous route calculation.

public abstract void cancel ()

Cancels the current route calculation.

public abstract boolean isBusy ()

Query whether the route calculation is ongoing.

Interface Details

Base interface for route calculation class. Represents controls for performing a type of routing request. It defines routing type specific operations and listeners.

Method Details

public abstract void calculateRoute (RoutePlan routePlan, Listener<T, > listener)

Invokes an asynchronous route calculation.

Parameters:

  • routePlan
  • listener

    A Listener for the route calculation request.

public abstract void cancel ()

Cancels the current route calculation. Note that this API is asynchronous as it takes some time cancel all underlying operations. Use #isBusy() to check whether calculation is still ongoing or not.

public abstract boolean isBusy ()

Query whether the route calculation is ongoing.

Returns:

true if a route calculation is ongoing, false otherwise.

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.