GeocodeProviderpublic abstract class GeocodeProvider extends Object Base class for geocode providers implemented as unbundled services.
Geocode providers can be implemented as services and return the result of
{@link GeocodeProvider#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. |
Fields Summary |
---|
private IGeocodeProvider.Stub | mProvider |
Methods Summary |
---|
public android.os.IBinder | getBinder()Returns the Binder interface for the geocode provider.
This is intended to be used for the onBind() method of
a service that implements a geocoder service.
return mProvider;
| public abstract java.lang.String | onGetFromLocation(double latitude, double longitude, int maxResults, android.location.GeocoderParams params, java.util.List addrs)This method is overridden to implement the
{@link android.location.Geocoder#getFromLocation(double, double, int)} method.
Classes implementing this method should not hold a reference to the params parameter.
| public abstract java.lang.String | onGetFromLocationName(java.lang.String locationName, double lowerLeftLatitude, double lowerLeftLongitude, double upperRightLatitude, double upperRightLongitude, int maxResults, android.location.GeocoderParams params, java.util.List addrs)This method is overridden to implement the
{@link android.location.Geocoder#getFromLocationName(String, int, double, double, double, double)} method.
Classes implementing this method should not hold a reference to the params parameter.
|
|