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

Note: the CoreRouter class provides access to the route calculation 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 CoreRouter events - this is an instance of CoreRouter.Listener

Note that to use transit and truck route calculation 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 http://code.google.com/p/google-gson/. Attempting to use to use transit and truck route calculation features without adding this library will cause runtime errors.

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