反向地理编码:地址未显示给印度

时间:2012-09-28 09:34:29

标签: android gps reverse-geocoding

Geocoder gcd = new Geocoder(this, Locale.getDefault());
            List<Address> addresses = gcd.getFromLocation(lat, lng, 100);
            StringBuilder result = new StringBuilder();
                                     if (addresses.size() > 0) {
                              Address address = addresses.get(0);
                for (int i = 0; i < address.getMaxAddressLineIndex(); i++)
                    result.append(address.getAddressLine(i)).append("\n");
                result.append(address.getLocality()).append("\n");
                result.append(address.getPostalCode()).append("\n");
                result.append(address.getCountryName()); }

我正在尝试撤销地理编码并获取地址,我能够获得美国的地址,但不能获得印度的地址。知道如何解决这个问题吗?

0 个答案:

没有答案