Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source-group1
/
animal-Info
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Eunsu486
2021-05-25 21:28:17 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
43999cd58e4478e495214d4e8ff0f9467f58c41a
43999cd5
1 parent
0195f5cf
modify category.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
routes/category.js
routes/category.js
View file @
43999cd
...
...
@@ -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
user
Location
;
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=
${
user
Location
}
`
;
request
({
url
:
institute_url
+
qs
,
...
...
Please
register
or
login
to post a comment