-
Notifications
You must be signed in to change notification settings - Fork 4
근처카페조회
KIMSOYEON edited this page Jan 22, 2019
·
9 revisions
소연
메소드 | 경로 | 설명 |
---|---|---|
POST | /cafe/nearbycafe | 반경 1KM 주변카페 조회 |
Content-Type: application/json
Authorization: token
{
"cafe_latitude": "37.55048",
"cafe_longitude": "126.9036",
"cafe_id" : 220, //카페 아이디
"is_cafe_detail" : 0 // 카페 DetailView 밑에 주변 카페조회 하려면 값 1 / 지도탭에서 사용할 경우 값 0 혹은 null
}
{
"status": 200,
"message": "가까운 카페 리스트 찾기 성공",
"data": [
{
"cafe_id": 220,
"cafe_latitude": 37.553724,
"cafe_longitude": 126.903388,
"cafe_name": "지능계발",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "361m"
},
{
"cafe_id": 215,
"cafe_latitude": 37.554522,
"cafe_longitude": 126.905498,
"cafe_name": "비바쌀롱",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "479m"
},
{
"cafe_id": 219,
"cafe_latitude": 37.555152,
"cafe_longitude": 126.905854,
"cafe_name": "자판기",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "556m"
},
{
"cafe_id": 5,
"cafe_latitude": 37.55609,
"cafe_longitude": 126.9036,
"cafe_name": "커피가게 동경",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "623m"
},
{
"cafe_id": 204,
"cafe_latitude": 37.5507,
"cafe_longitude": 126.910904,
"cafe_name": "밤부",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "644m"
},
{
"cafe_id": 7,
"cafe_latitude": 37.55195,
"cafe_longitude": 126.9111,
"cafe_name": "포비 베이직",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "681m"
},
{
"cafe_id": 216,
"cafe_latitude": 37.556659,
"cafe_longitude": 126.906503,
"cafe_name": "소셜클럽서울",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "733m"
},
{
"cafe_id": 200,
"cafe_latitude": 37.55235,
"cafe_longitude": 126.914059,
"cafe_name": "빌리프커피로스터스",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "945m"
}
]
}
{
"status": 200,
"message": "가까운 카페 리스트 찾기 성공",
"data": [
{
"cafe_id": 215,
"cafe_latitude": 37.554522,
"cafe_longitude": 126.905498,
"cafe_name": "비바쌀롱",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "479m"
},
{
"cafe_id": 219,
"cafe_latitude": 37.555152,
"cafe_longitude": 126.905854,
"cafe_name": "자판기",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "556m"
},
{
"cafe_id": 5,
"cafe_latitude": 37.55609,
"cafe_longitude": 126.9036,
"cafe_name": "커피가게 동경",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "623m"
},
{
"cafe_id": 204,
"cafe_latitude": 37.5507,
"cafe_longitude": 126.910904,
"cafe_name": "밤부",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "644m"
},
{
"cafe_id": 7,
"cafe_latitude": 37.55195,
"cafe_longitude": 126.9111,
"cafe_name": "포비 베이직",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "681m"
},
{
"cafe_id": 216,
"cafe_latitude": 37.556659,
"cafe_longitude": 126.906503,
"cafe_name": "소셜클럽서울",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "733m"
},
{
"cafe_id": 200,
"cafe_latitude": 37.55235,
"cafe_longitude": 126.914059,
"cafe_name": "빌리프커피로스터스",
"cafe_img_url": null,
"address_district_name": "서울 마포구",
"cafe_rating_avg": 0,
"distance": "945m"
}
]
}
{
"status": 204,
"message": "가까운 카페를 찾을 수 없습니다",
"data": null
}
INTERNAL SERVER ERROR
{
"status" : 500,
"message" : "서버 내부 에러",
"data" : null
}