Skip to content

주변매장조회

Bomi Kim edited this page Jan 7, 2019 · 3 revisions

주변 매장 조회

메소드 경로 짧은 설명
GET /maps?latitude={latitude}&longitude={longitude} 주변 카페 조회

요청 헤더

Content-Type: application/json

QueryString 설명

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
}

주변 매장 조회 실패(GPS 좌표값이 없는 경우)

{
    "status": 400,
    "message": "GPS 좌표 없음",
    "data": null
}

INTERNAL SERVER ERROR

{
    "status": 500,
    "message": "서버 내부 에러",
    "data" : null
}

Clone this wiki locally