Geocoder _Geocoder = new Geocoder(this);

String _Result = "";

try {

Iterator<Address> _Addresses = _Geocoder.getFromLocation(37.602264,

126.965561, 1).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);

}

}

}

} catch (IOException e) {

}


WRITTEN BY
블로blow
iOS 개발자 생활이야기

트랙백  2 , 댓글  1개가 달렸습니다.
  1. 노동은 생활의 꽃이요, 삶의 보람이요, 마음의 기쁨이다.Topics related articles:


    http://copyrightyoon.tistory.com/643 新建文章 9

    http://1004home.tistory.com/118 新建文章 4

    http://mineez.tistory.com/?page=114 新建文章 11

    http://kor77.tistory.com/359 新建文章 9
secret