Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / library / locationprovider / src / main / java / com / android / location / provider / GeocodeProvider.java

GeocodeProvider.java28 lines · 980 BRaw
1package com.android.location.provider;
2
3import android.location.Address;
4import android.location.GeocoderParams;
5import android.os.IBinder;
6
7import java.util.List;
8
9/**
10 * Compile-only stub of the platform's unbundled geocode provider base. Both onGet* methods are
11 * abstract; return null on success (results go into {@code addrs}) or an error string on failure.
12 * Do not package into an APK.
13 */
14public abstract class GeocodeProvider {
15 public abstract String onGetFromLocation(
16 double latitude, double longitude, int maxResults,
17 GeocoderParams params, List<Address> addrs);
18
19 public abstract String onGetFromLocationName(
20 String locationName,
21 double lowerLeftLatitude, double lowerLeftLongitude,
22 double upperRightLatitude, double upperRightLongitude,
23 int maxResults, GeocoderParams params, List<Address> addrs);
24
25 public IBinder getBinder() {
26 throw new RuntimeException("stub");
27 }
28}