de.monarchy.guideme.routing
Interface GeoCodingListener

All Known Implementing Classes:
RoutingActivity

public interface GeoCodingListener

The interface GeoCodingListener provides a method for callback functions. When a GeoCodingComponent receives an asynchronous call for places, it expects a GeoCodingListener to call back. After the places are found, it calls the onPlacesFound method to inform the callback component.

Author:
dstuerze

Method Summary
 void onError(int code)
          This method is called if an error occured while finding geocoded places.
 void onPlacesFound(java.lang.String search, PointOfInterest... places)
          Delivers an array of places which fit a certain criteria around a specified position.
 

Method Detail

onPlacesFound

void onPlacesFound(java.lang.String search,
                   PointOfInterest... places)
Delivers an array of places which fit a certain criteria around a specified position.

Parameters:
places - array of possible matches for the search
search - the search string

onError

void onError(int code)
This method is called if an error occured while finding geocoded places.

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