Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / locationprovider / src / main / java / com / android / location / provider / GeocodeProvider.java
GeocodeProvider.java28 lines · 980 BRaw
| 1 | package com.android.location.provider; |
| 2 | |
| 3 | import android.location.Address; |
| 4 | import android.location.GeocoderParams; |
| 5 | import android.os.IBinder; |
| 6 | |
| 7 | import 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 | */ |
| 14 | public 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 | } |