-1
내 질문은 거리, 랜드 마크, 위치, 도시 등의 여러 EditText 활동이 있습니다. 위치 EditText에 현재 사용자 위치를 가져오고 사용자 주소를 채우는 단추를 넣습니다. 각 EditText. 참고 : 나는 성공적으로 내 현재 위치를 가져 오기 및 내 위치 글고 전체를 채울하지만 난현재 위치 감지 및 내 활동 채우기
내 질문은 거리, 랜드 마크, 위치, 도시 등의 여러 EditText 활동이 있습니다. 위치 EditText에 현재 사용자 위치를 가져오고 사용자 주소를 채우는 단추를 넣습니다. 각 EditText. 참고 : 나는 성공적으로 내 현재 위치를 가져 오기 및 내 위치 글고 전체를 채울하지만 난현재 위치 감지 및 내 활동 채우기
당신은 시작에 대한 Official Documentation를 사용하고 많은 예를 찾을 수 있습니다 도시 글고 치기 등의 거리 글고, 도시에서 거리 번호를 추가 할 이 같은 '역 지오 코딩 "
Geocoder geocoder;
List<Address> addresses;
geocoder = new Geocoder(this, Locale.getDefault());
addresses = geocoder.getFromLocation(latitude, longitude, 1); // Here 1 represent max location result to returned, by documents it recommended 1 to 5
String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()
String city = addresses.get(0).getLocality();
String state = addresses.get(0).getAdminArea();
String country = addresses.get(0).getCountryName();
String postalCode = addresses.get(0).getPostalCode();
String knownName = addresses.get(0).getFeatureName(); //
에서