public abstract class GeocodeProvider extends Object
Geocode providers can be implemented as services and return the result of
getBinder()
in its getBinder() method.
IMPORTANT: This class is effectively a public API for unbundled applications, and must remain API stable. See README.txt in the root of this package for more information.
Constructor and Description |
---|
GeocodeProvider() |
Modifier and Type | Method and Description |
---|---|
IBinder |
getBinder()
Returns the Binder interface for the geocode provider.
|
abstract String |
onGetFromLocation(double latitude,
double longitude,
int maxResults,
GeocoderParams params,
List<Address> addrs)
This method is overridden to implement the
Geocoder.getFromLocation(double, double, int) method. |
abstract String |
onGetFromLocationName(String locationName,
double lowerLeftLatitude,
double lowerLeftLongitude,
double upperRightLatitude,
double upperRightLongitude,
int maxResults,
GeocoderParams params,
List<Address> addrs)
This method is overridden to implement the
Geocoder.getFromLocationName(String, int, double, double, double, double) method. |
public abstract String onGetFromLocation(double latitude, double longitude, int maxResults, GeocoderParams params, List<Address> addrs)
Geocoder.getFromLocation(double, double, int)
method.
Classes implementing this method should not hold a reference to the params parameter.public abstract String onGetFromLocationName(String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude, int maxResults, GeocoderParams params, List<Address> addrs)
Geocoder.getFromLocationName(String, int, double, double, double, double)
method.
Classes implementing this method should not hold a reference to the params parameter.public IBinder getBinder()