Eunsu486

modify category.js

......@@ -6,22 +6,17 @@ require('dotenv').config();
/* GET home page. */
let GU_CODE;
let ANIMAL_INFO_API_KEY = process.env.ANIMAL_API_KEY;
let user_gu;
let userLocation;
let user_latitude;
let user_longitude;
user_gu = 강북구;
/*
http://api.kcisa.kr/openapi/service/rest/convergence2019/getConver03
?serviceKey=88dc66a7-9143-4af3-9f7b-098355b2c7f8&numOfRows=10&pageNo=1&keyword=동물병원
&where=강북구
userLocation = 강북구;
System.out.println(Arrays.toString(hospitals));
/* System.out.println(Arrays.toString(hospitals));*/
*/
router.get('/hospital', function (req, res) {
let institute_url = 'http://api.kcisa.kr/openapi/service/rest/convergence2019/getConver03';
let qs = `?serviceKey=${ANIMAL_INFO_API_KEY}&numOfRows=10&pageNo=2&keyword=동물병원
&where=${user_gu}`;
&where=${userLocation}`;
request({
url: institute_url + qs,
......