public class GeocodingTask
extends android.os.AsyncTask<java.lang.Object,java.lang.Void,java.util.List<android.location.Address>>
Modifier and Type | Class and Description |
---|---|
static interface |
GeocodingTask.ResultListener |
Constructor and Description |
---|
GeocodingTask(android.content.Context context,
double lowerLeftLat,
double lowerLeftLon,
double upperRightLat,
double upperRightLon) |
GeocodingTask(android.content.Context context,
double lowerLeftLat,
double lowerLeftLon,
double upperRightLat,
double upperRightLon,
boolean toastOnFail) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<android.location.Address> |
doInBackground(java.lang.Object... params) |
java.lang.String |
getHumanAddress() |
GeoPoint |
getPoint() |
protected void |
onPostExecute(java.util.List<android.location.Address> foundAddresses) |
void |
setOnResultListener(GeocodingTask.ResultListener rl) |
public GeocodingTask(android.content.Context context, double lowerLeftLat, double lowerLeftLon, double upperRightLat, double upperRightLon, boolean toastOnFail)
public GeocodingTask(android.content.Context context, double lowerLeftLat, double lowerLeftLon, double upperRightLat, double upperRightLon)
public void setOnResultListener(GeocodingTask.ResultListener rl)
public java.lang.String getHumanAddress()
public GeoPoint getPoint()
protected java.util.List<android.location.Address> doInBackground(java.lang.Object... params)
doInBackground
in class android.os.AsyncTask<java.lang.Object,java.lang.Void,java.util.List<android.location.Address>>
protected void onPostExecute(java.util.List<android.location.Address> foundAddresses)
onPostExecute
in class android.os.AsyncTask<java.lang.Object,java.lang.Void,java.util.List<android.location.Address>>