{"openapi":"3.0.3","info":{"title":"APICK 주변 생활시설 분석","version":"1.0.0","description":"기준 주소·좌표 반경 안의 편의점·지하철역·학교·병원·약국 등을 분류별로 찾아 가까운 순서와 평균 거리로 요약합니다. 상권·입지 후보를 빠르게 비교할 때 씁니다."},"servers":[{"url":"https://apick.app"}],"paths":{"/rest/geo_neighborhood":{"post":{"summary":"주변 생활시설 분석","description":"기준 주소·좌표 반경 안의 편의점·지하철역·학교·병원·약국 등을 분류별로 찾아 가까운 순서와 평균 거리로 요약합니다. 상권·입지 후보를 빠르게 비교할 때 씁니다.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"서비스별 성공·처리 상태 응답","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"center":{"type":"object","properties":{"x":{"type":"number","description":"기준점 경도입니다."},"y":{"type":"number","description":"기준점 위도입니다."},"crs":{"type":"string"}}},"label":{"type":"string","description":"기준점의 동네(읍면동, 없으면 시군구) 이름입니다. 확인하지 못하면 빈 문자열입니다."},"radius":{"type":"integer","description":"적용한 반경(m)입니다."},"summary":{"type":"object","properties":{"categories":{"type":"integer","description":"분석한 분류 수입니다."},"total":{"type":"integer","description":"반경 안에서 찾은 시설 수의 합입니다."},"partial":{"type":"boolean","description":"시간 초과로 일부 분류를 분석하지 못했으면 true입니다. 그 분류는 count 0입니다."}}},"categories":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"분류 이름입니다."},"count":{"type":"integer","description":"반경 안 시설 수입니다."},"nearest":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"시설 이름입니다."},"category":{"type":"string","description":"시설 분류 전체 표기입니다."},"address":{"type":"string","description":"시설 주소입니다. 도로명 주소가 없으면 지번 주소입니다."},"point":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"crs":{"type":"string"}},"description":"시설 좌표입니다."},"distanceM":{"type":"number","description":"기준점과의 거리(m)입니다."}}},"description":"가까운 시설 목록(최대 limit개)입니다."},"averageDistanceM":{"type":"number","description":"반경 안 시설의 평균 거리(m)입니다. 없으면 null입니다.","nullable":true}}}}}},"api":{"type":"object","properties":{"cost":{"type":"integer","description":"차감된 포인트입니다. 실패한 응답은 0입니다."},"success":{"type":"boolean"},"ms":{"type":"integer","description":"처리 시간(밀리초)입니다."}}}}}}}},"default":{"description":"HTTP 상태 및 서비스 오류코드 확인","content":{"application/json":{"schema":{"type":"object"}}}}},"requestBody":{"required":false,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"기준 주소. 좌표와 둘 중 하나는 필요합니다. 문자열로 보내며, 생략하면 서버 기본값이 적용되거나 해당 조건이 해제됩니다. (string)","example":"서울특별시 강남구 역삼동 808"},"x":{"type":"string","description":"기준점 경도 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (number)"},"y":{"type":"string","description":"기준점 위도 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (number)"},"point":{"type":"string","description":"기준점 \"경도,위도\" 문자열로 보내며, 생략하면 서버 기본값이 적용되거나 해당 조건이 해제됩니다. (string)"},"radius":{"type":"string","description":"반경(m). 기본 500 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (number)","example":"800"},"limit":{"type":"string","description":"분류별 가까운 시설 수 (기본 5, 최대 10) 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (integer)","example":"1"},"addrType":{"type":"string","description":"주소 유형입니다. 기본 auto입니다. 아래 addrType 허용값 표의 값을 씁니다. 주소로 조회할 때만 적용됩니다. (string)"}}}}}}}}},"x-code-tables":[{"title":"addrType 허용값","columns":["값","의미"],"rows":[["auto","지번·도로명을 알아서 판단합니다 (기본값)."],["parcel (또는 jibun·지번)","지번 주소로만 찾습니다."],["road (또는 도로명)","도로명 주소로만 찾습니다."]]},{"title":"오류와 복구","columns":["상황","HTTP","data.error","해결"],"rows":[["주소·좌표 누락","400","주소 또는 좌표가 필요합니다.","address 또는 범위 안의 좌표를 보냅니다."],["반경 범위 오류","400","반경은 100~2000m 입니다.","radius를 100~2000 사이로 보냅니다."],["분류 누락","400","분류 이름이 필요합니다.","categories를 비워 보내지 말고 생략하거나 이름을 넣습니다."],["분류 수 초과","400","분류는 6개까지 분석합니다.","6개 이하로 나눠 요청합니다."],["주소 길이 초과","400","주소가 너무 깁니다.","주소를 200자 이내로 줄입니다."],["addrType 값 오류","400","주소 유형이 잘못됐습니다.","auto·parcel·road 중 하나로 보내거나 생략합니다."],["처리 시간 초과","408","처리 시간이 초과됐습니다. 범위를 줄여 다시 시도해 주세요.","목록 건수·반경·분류 수를 줄여 다시 요청합니다."],["일시적 조회 실패","424","공간정보를 일시적으로 가져오지 못했습니다. 잠시 후 다시 시도해 주세요.","잠시 후 같은 요청을 다시 보냅니다."]]}],"x-service-errors":[],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}}}