lit*_*til 8 android location geolocation google-geocoder
在我的Android应用程序中,用户可以输入一个地址来设置他的位置.为此,我使用Geocoder和getFromLocationName方法.
当我寻找基本城市时,一切都运转良好,但一旦我寻找不明确的位置,例如法国的Villefranche(法国有超过10个城市称为Villefranche),GeoCoder仅返回1个结果.
以下是我调用该方法的方法:
resultReverseGeo = geoCoder.getFromLocationName(name, 5);
Log.d(TAG, "Size " + resultReverseGeo.size()); // size is always = 1
Run Code Online (Sandbox Code Playgroud)
任何的想法?
| 归档时间: |
|
| 查看次数: |
852 次 |
| 最近记录: |