@@ -10,57 +10,7 @@ let ANIMAL_INFO_API_KEY = process.env.REACT_APP_API_KEY;
letgu_select;
//동물병원
// router.post('/hospital', function (req, res) {
// //gu 받아오기
// var body = req.body;
// var gu_select = body.user_gu;
// var menu = '동물병원';
// // encoding for url
// var menu_encode = urlencode(menu);
// var gu_select_encode = urlencode(gu_select);
// //api
// let pet_url = `http://api.kcisa.kr/openapi/service/rest/convergence2019/getConver03?serviceKey=${ANIMAL_INFO_API_KEY}&numOfRows=200&pageNo=1&keyword=${menu_encode}&where=${gu_select_encode}`;
// request(pet_url, function (err, response, body) {
// if (err) {
// console.log(`err => ${err}`)
// }
// else {
// if (res.statusCode == 200) {
// var hospital_list = [];
// var titles = '';
// var result = convert.xml2json(body, { compact: true, spaces: 4 });
// var petJson = JSON.parse(result);
// var itemList = petJson.response.body.items;
// var numRows = petJson.response.body.totalCount._text; //개수