Skip to content
모두의 공간
개발자 공간
사용자 공간
최근글
로그인
접속유지
회원가입
ID/PW 찾기
모두의 공간
새로운 소식
새로운 게임/앱
개발자 공간
개발자 게시판
개발자 질문/답변
개발자 정보
구인/구직/의뢰
행사/세미나/교육
(구)질문/답변
사용자 공간
앱 정보/후기
게임 정보/후기
기기 정보/후기
잡담/유머/창작
개발자 질문/답변 게시판이 새로운 공간으로 이전되었습니다.
안드로이드 개발 질문/답변 (글 수
45,052
)
전체보기
앱개발 질문
플랫폼 질문
JAVA 질문
기타 질문
자주하는 질문
구글맵에서 한 좌표를 받아와서 그 주변의 주요지명을 받아올수 있나요?
블로
https://www.androidpub.com/android_dev_qna/631240
2010.08.05
14:59:12
3484
1
앱개발 질문
구글맵에서 위도와 경도를 얻어와서 그 위도경도에 대해 주변에 주요지명을 받아 올 수 있나요?
외국말고 우리나라로 하고싶은데 좀 알려주세요
이 게시물을
목록
2010.08.05
15:30:36
ginipark
Geocoder _Geocoder = new Geocoder(this);
try {
Iterator<Address> _Addresses = _Geocoder.getFromLocation(ALatitude, ALongitude, 3).iterator();
if (_Addresses != null) {
while (_Addresses.hasNext()) {
Address namedLoc = _Addresses.next();
String placeName = namedLoc.getLocality();
String featureName = namedLoc.getFeatureName();
String country = namedLoc.getCountryName();
String road = namedLoc.getThoroughfare();
_Result += String.format("\n[%s][%s][%s][%s]", placeName, featureName, road, country);
int addIdx = namedLoc.getMaxAddressLineIndex();
for (int idx = 0; idx <= addIdx; idx++){
String addLine = namedLoc.getAddressLine(idx);
_Result += String.format("\nLine %d: %s", idx, addLine);
}
}
}
return _Result;
} catch (IOException e) {
return "Error";
}
Close Login Layer
XE Login
아이디
비밀번호
로그인 유지
OpenID Login
Open ID
회원가입
ID/PW 찾기
인증메일 재발송
OpenID
OpenID
Close Login Layer
try {
Iterator<Address> _Addresses = _Geocoder.getFromLocation(ALatitude, ALongitude, 3).iterator();
if (_Addresses != null) {
while (_Addresses.hasNext()) {
Address namedLoc = _Addresses.next();
String placeName = namedLoc.getLocality();
String featureName = namedLoc.getFeatureName();
String country = namedLoc.getCountryName();
String road = namedLoc.getThoroughfare();
_Result += String.format("\n[%s][%s][%s][%s]", placeName, featureName, road, country);
int addIdx = namedLoc.getMaxAddressLineIndex();
for (int idx = 0; idx <= addIdx; idx++){
String addLine = namedLoc.getAddressLine(idx);
_Result += String.format("\nLine %d: %s", idx, addLine);
}
}
}
return _Result;
} catch (IOException e) {
return "Error";
}