FileDocCategorySizeDatePackage
GeocodeProvider.javaAPI DocAndroid 5.1 API3440Thu Mar 12 22:22:30 GMT 2015com.android.location.provider

GeocodeProvider

public 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
Constructors Summary
Methods Summary
public android.os.IBindergetBinder()
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
the IBinder instance for the provider


                                  
            
               

                                     
        
               
                 
               

                                          
       
        return mProvider;
    
public abstract java.lang.StringonGetFromLocation(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.StringonGetFromLocationName(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.