(<?php echo $json['channel']['items'][0]['point_y']?>, <-- 이렇게 해주면 안되던데요.
이부분 수정을 해주어야 ㅎ나요??
{ "channel": { "totalCount": "1", "link": "http://developers.daum.net/services", "result": "1", "generator": "Daum Open API", "pageCount": "1", "lastBuildDate": "", "item": [ { "mountain": "", "mainAddress": "242", "point_wx": "400166", "point_wy": "-11708", "isNewAddress": "Y", "buildingAddress": "카카오스페이스닷원", "title": "제주특별자치도 제주시 첨단로 242", "placeName": "Not avaliable", "zipcode": "690140", "newAddress": "영평동 2181", "localName_2": "제주시", "localName_3": "첨단로", "localName_1": "제주특별자치도", "lat": 33.4506803453, "point_x": 126.5704935278, "lng": 126.5704935278, "zone_no": "63309", "subAddress": "0", "id": "N30664967", "point_y": 33.4506803453 } ], "title": "Search Daum Open API", "description": "Daum Open API search result" }}
답변 2개 / 댓글 2개
echo $json->channel->item[0]->point_y;
답변에 대한 댓글 1개
print_r($json);
경도 -> ing
위도 -> lat
답변에 대한 댓글 1개
혹시 print_r($json); 해도 아무런 값이 나오지 않는데요..
https://sir.kr/qa/197562 <-- 무슨 문제인지 팁이나 도움말씀 주시면 감사드립니다.
답변을 작성하려면 로그인이 필요합니다.
답변주셔서 감사드립니다.