HERE Android SDK Developer's Guide

routing

The package routing is a member of com.here.android.mpa.

Package Summary

routing

This package provides classes, interfaces, and enumerations for route calculation and route description (directions).

Package Details

This package provides classes, interfaces, and enumerations for route calculation and route description (directions).

To use the HERE Routing feature, your application must include the google-gson library (release 2.2.4 or a compatible version) on its class path. This library can be downloaded from the google-gson project website at https://github.com/google/gson . Attempting to use the Routing feature without adding this library causes runtime errors

Note: the RouteManager class provides access to the route calculation and positioning functionality.

To calculate a route, you need:

  • A parameter list containing at least two waypoints for the start and end of the route - this is an instance of RoutePlan
  • A set of routing options to control route calculation features - this is an instance of RouteOptions
  • An event listener for listening to RouteManager events - this is an instance of Listener

For more information on how to use the RouteManager, see the "Directions" section in the HERE SDK for Android Developer's Guide