de.monarchy.guideme.routing
Interface RoutingListener

All Known Implementing Classes:
PersonalLocation

public interface RoutingListener

The interface RoutingListener provides a method for callback functions. When a RoutingComponent receives an asynchronous call for a route, it expects a RouteListener to call back. After the route is calculated, it calls the onRouteCalculated method to inform the callback component.

Author:
dstuerze

Method Summary
 void onError(int code)
          This method is called if an error occured while calculating the route.
 void onRouteCalculated(RoutePoint[] points)
          Delivers a route to the Listener.
 

Method Detail

onRouteCalculated

void onRouteCalculated(RoutePoint[] points)
Delivers a route to the Listener.

Parameters:
points - RoutePoint[] with turning points

onError

void onError(int code)
This method is called if an error occured while calculating the route.

Parameters:
code - a constant value from RoutingComponent indicating the type of error