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


public interface LocationCallback

Used as an argument for the getLocations() method in Geocoder.getLocations(String, LocationCallback).


Method Summary
 void onFailure(int statusCode)
          Called when the geocoding service fails.
 void onSuccess(com.google.gwt.core.client.JsArray<Placemark> locations)
          Called when the geocoding service returns a result successfully.
 

Method Detail

onFailure

void onFailure(int statusCode)
Called when the geocoding service fails.

Parameters:
statusCode - a value defined in StatusCodes

onSuccess

void onSuccess(com.google.gwt.core.client.JsArray<Placemark> locations)
Called when the geocoding service returns a result successfully.

Parameters:
locations - an array of Placemarks that match the query.