public interface IGeocodingCallback
CoordinateHelper
should implement this interface.Modifier and Type | Method and Description |
---|---|
void |
onError(int why,
java.lang.String reason)
This method will be called if the Geocoding API can't satisfy the request for whatever reason.
|
void |
onLocationsFound(Location[] locations,
java.lang.String fromAddress)
This method will be called when
findLocationsBy() returns. |
void |
onPlacesFound(Placemark[] places,
Location atLocation)
This method will be called when
findPlacesBy() returns. |
void onPlacesFound(Placemark[] places, Location atLocation)
findPlacesBy()
returns.places
- an array of Placemark objects that represent places found at or near the original Location.atLocation
- the original Location that was used when this request was made.void onLocationsFound(Location[] locations, java.lang.String fromAddress)
findLocationsBy()
returns.locations
- an array of Locations that fit the original address String that was given.fromAddress
- the original address String that was used when this request was made.void onError(int why, java.lang.String reason)
why
- an integer code indicating a reason why the error happened. Corresponds to values given in ILocationManager
.reason
- a String with further information about what happened.