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.