com.google.gwt.maps.client.geocode
Interface DirectionsCallback


public interface DirectionsCallback

An interface containing methods used to return results from a Directions query.


Method Summary
 void onFailure(int statusCode)
          Called when a Directions load() method fails.
 void onSuccess(DirectionResults result)
          Called when a Directions.load() query returns successfully.
 

Method Detail

onFailure

void onFailure(int statusCode)
Called when a Directions load() method fails.

Parameters:
statusCode - A numeric value from the StatusCodes class.

onSuccess

void onSuccess(DirectionResults result)
Called when a Directions.load() query returns successfully.

Parameters:
result - represents the set of results from the last successfully loaded query. These results are valid until the next load() request is made on the associated Directions object.