在 Google 地图中显示地址的位置。怎么可能..我如何在谷歌地图上获得地址..
显示覆盖区域的位置....帮帮我....我尝试了代码但不适合我....
Geocoder coder = new Geocoder(this);
List<Address> address;
try {
address = coder.getFromLocationName(strAddress,7);
if (address == null) {
return null;
}
Address location = address.get(1);
location.getLatitude();
location.getLongitude();
geo1 = new GeoPoint((int) (location.getLatitude() * 1E6),
(int) (location.getLongitude() * 1E6));
return geo1;
}