[FAQ] 지도/로컬 API 문의 전 꼭 읽어 주세요.
https://devtalk.kakao.com/t/faq-api/125610
GET https://dapi.kakao.com/v2/local/search/address.json?query=다대로550&analyze_type=similar
로 조회시 응답값이
{
“documents”: [
{
“address”: {
“address_name”: “부산 사하구 다대동 920-2”,
“b_code”: “2638010600”,
“h_code”: “2638060100”,
“main_address_no”: “920”,
“mountain_yn”: “N”,
“region_1depth_name”: “부산”,
“region_2depth_name”: “사하구”,
“region_3depth_h_name”: “다대1동”,
“region_3depth_name”: “다대동”,
“sub_address_no”: “2”,
“x”: “128.970744846532”,
“y”: “35.0572853070202”
},
“address_name”: “부산 사하구 다대로 550”,
“address_type”: “ROAD_ADDR”,
“road_address”: {
“address_name”: “부산 사하구 다대로 550”,
“building_name”: “”,
“main_building_no”: “550”,
“region_1depth_name”: “부산”,
“region_2depth_name”: “사하구”,
“region_3depth_name”: “다대동”,
“road_name”: “다대로”,
“sub_building_no”: “”,
“underground_yn”: “N”,
“x”: “128.970744846532”,
“y”: “35.0572853070202”,
“zone_no”: “49493”
},
“x”: “128.970744846532”,
“y”: “35.0572853070202”
}
],
“meta”: {
“is_end”: true,
“pageable_count”: 1,
“total_count”: 1
}
}
이렇게 나오고 있고, 해당 x, y좌표값으로 위치 검색을 했을시
GET https://dapi.kakao.com/v2/local/geo/coord2address.json?x=128.970744846532&y=35.0572853070202
{
“meta”: {
“total_count”: 1
},
“documents”: [
{
“road_address”: {
“address_name”: “부산광역시 사하구 다대로 지하 548”,
“region_1depth_name”: “부산”,
“region_2depth_name”: “사하구”,
“region_3depth_name”: “”,
“road_name”: “다대로”,
“underground_yn”: “Y”,
“main_building_no”: “548”,
“sub_building_no”: “”,
“building_name”: “다대포항역”,
“zone_no”: “49524”
},
“address”: {
“address_name”: “부산 사하구 다대동 909-2”,
“region_1depth_name”: “부산”,
“region_2depth_name”: “사하구”,
“region_3depth_name”: “다대동”,
“mountain_yn”: “N”,
“main_address_no”: “909”,
“sub_address_no”: “2”,
“zip_code”: “”
}
}
]
}
다른주소가 나오고있습니다.
확인부탁드립니다.
감사합니다!