-
Notifications
You must be signed in to change notification settings - Fork 3
주변매장조회
Bomi Kim edited this page Jan 7, 2019
·
3 revisions
| 메소드 | 경로 | 짧은 설명 |
|---|---|---|
| GET | /maps?latitude={latitude}&longitude={longitude} | 주변 카페 조회 |
Content-Type: application/json| Parameter | 설명 | 예시 |
|---|---|---|
| latitude | 위도 | latitude=37.495426 |
| longitude | 경도 | longitude=127.038843 |
{
"status": 200,
"message": "주변 매장 조회 성공",
"data": [
{
"storeIdx": 5,
"storeName": "던킨도너츠 역삼 4호점",
"latitude": 37.495573,
"longitude": 127.039073,
"distance": "26.0"
},
{
"storeIdx": 6,
"storeName": "탐앤탐스커피 역삼2호점",
"latitude": 37.495408,
"longitude": 127.039743,
"distance": "79.0"
},
{
"storeIdx": 7,
"storeName": "스타벅스 구역삼사거리점",
"latitude": 37.495899,
"longitude": 127.038924,
"distance": "53.0"
},
{
"storeIdx": 8,
"storeName": "투썸플레이스 역삼점",
"latitude": 37.502401,
"longitude": 127.038016,
"distance": "779.0"
},
{
"storeIdx": 9,
"storeName": "카페브링 (마루180)",
"latitude": 37.495426,
"longitude": 127.038843,
"distance": "0.0"
}
]
}{
"status": 200,
"message": "주변 매장 조회 성공",
"data": null
}{
"status": 400,
"message": "GPS 좌표 없음",
"data": null
}{
"status": 500,
"message": "서버 내부 에러",
"data" : null
}