Android Geocoder类,缺少城镇和邮政编码

Android Geocoder类,缺少城镇和邮政编码,android,android-maps,Android,Android Maps,我对android设备上的地理编码有问题 Geocoder c = new Geocoder(this, Locale.getDefault()); List<Address> l = c.getFromLocation(lat, lon, 1); for (Address a: l) { Log.i("GeocoderResult", "Locality " + a.getLocality() + " poscode " + a.getPostcode()); } 在文本

我对android设备上的地理编码有问题

Geocoder c = new Geocoder(this, Locale.getDefault());
List<Address> l = c.getFromLocation(lat, lon, 1);
for (Address a: l) {
    Log.i("GeocoderResult", "Locality " + a.getLocality() + " poscode " + a.getPostcode());
}
在文本和对象字段中使用城镇和邮政编码进行地理编码:

50.74967518;-1.99207054:
Address text: "17 Gough Crescent, Poole, BH17, GB"
locality = null
postcode = null
Address[addressLines=[0:"17 Gough Crescent",1:"Poole",2:"BH17",3:"UK"],feature=17,admin=Poole,sub-admin=Poole,locality=null,thoroughfare=Gough Crescent,postalCode=null,countryCode=GB,countryName=United Kingdom,hasLatitude=true,latitude=50.7498262,hasLongitude=true,longitude=-1.992054,phone=null,url=null,extras=null]
50.74966423;-1.99205967
Address text: 2-6 Gough Crescent, Poole BH17, GB
locality = Poole
postalCode=BH17
Address[addressLines=[0:"2-6 Gough Crescent",1:"Poole BH17",2:"UK"],feature=2-6,admin=null,sub-admin=null,locality=Poole,thoroughfare=Gough Crescent,postalCode=BH17,countryCode=GB,countryName=United Kingdom,hasLatitude=true,latitude=50.7496887,hasLongitude=true,longitude=-1.9917892,phone=null,url=null,extras=null]
我们是否遗漏了一些东西,并且可以使用Android Geocoder按原样检索缺失的城镇和邮政编码数据?或者,如果“Location”为空,那么猜测哪些字段可能包含城镇数据并尝试解析邮政编码的地址文本是唯一的方法