{"openapi":"3.0.3","info":{"title":"APICK GeoJSON 면적·포함 분석","version":"1.0.0","description":"GeoJSON 의 면적·둘레·중심점·경계 상자를 계산하고, 지정한 점이 도형 안에 있는지와 단순화한 경계를 돌려줍니다. 별도 GIS 도구 없이 경계 데이터를 검증할 때 씁니다."},"servers":[{"url":"https://apick.app"}],"paths":{"/rest/geo_geojson_analyze":{"post":{"summary":"GeoJSON 면적·포함 분석","description":"GeoJSON 의 면적·둘레·중심점·경계 상자를 계산하고, 지정한 점이 도형 안에 있는지와 단순화한 경계를 돌려줍니다. 별도 GIS 도구 없이 경계 데이터를 검증할 때 씁니다.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"서비스별 성공·처리 상태 응답","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"geometryType":{"type":"string","description":"도형 종류입니다. 도형이 여러 개면 GeometryCollection입니다."},"featureCount":{"type":"integer","description":"계산한 도형 수입니다."},"area":{"type":"object","properties":{"m2":{"type":"number","description":"면적(m²)입니다."},"pyeong":{"type":"number","description":"면적(평)입니다."},"km2":{"type":"number","description":"면적(km²)입니다."}}},"perimeterM":{"type":"number","description":"둘레(m)입니다."},"centroid":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"description":"면적 중심 좌표(x 경도, y 위도)입니다. 면이 없으면 null입니다.","nullable":true},"bbox":{"type":"array","items":{"type":"number"},"description":"경계 상자 [최소 경도, 최소 위도, 최대 경도, 최대 위도]입니다. 면이 없으면 null입니다.","nullable":true},"vertexCount":{"type":"integer","description":"원본 정점 수입니다."},"simplifiedVertexCount":{"type":"integer","description":"단순화 뒤 정점 수입니다."},"simplifyToleranceM":{"type":"integer","description":"적용한 단순화 오차(m)입니다. 단순화하지 않았으면 null입니다.","nullable":true},"contained":{"type":"boolean","description":"확인할 점이 도형 안에 있으면 true입니다. 점을 보내지 않으면 필드가 없습니다."},"checkPoint":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"crs":{"type":"string"}},"description":"포함 여부를 확인한 점입니다. 점을 보내지 않으면 필드가 없습니다."},"geometry":{"type":"object","properties":{"type":{"type":"string"},"geometries":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number"}}}}}}}},"description":"단순화한 도형(GeometryCollection)입니다. includeGeometry=false면 없습니다."},"autoSimplified":{"type":"boolean","description":"simplify로 단순화했으면 true입니다. includeGeometry=false면 없습니다."}}},"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":{"simplify":{"type":"string","description":"단순화 허용 오차(m). 0 이면 단순화하지 않습니다. 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (number)","example":"5"},"point":{"type":"string","description":"포함 여부를 확인할 점 \"경도,위도\" 문자열로 보내며, 생략하면 서버 기본값이 적용되거나 해당 조건이 해제됩니다. (string)","example":"127.0276,37.5008"},"x":{"type":"string","description":"확인점 경도 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (number)"},"y":{"type":"string","description":"확인점 위도 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (number)"},"includeGeometry":{"type":"string","description":"단순화한 도형 포함 여부 (기본 true) true/false로 보내며, 생략하면 서버 기본값이 적용됩니다. true = 이 필드가 나타내는 조건이 성립한 경우, false = 성립하지 않은 경우입니다. 두 값 모두 정상 응답에 올 수 있으며, 값이 없으면 필드가 생략되거나 null일 수 있습니다. (boolean)"}}}}}}}}},"x-code-tables":[{"title":"오류와 복구","columns":["상황","HTTP","data.error","해결"],"rows":[["GeoJSON 형식 오류","400","GeoJSON을 읽지 못했습니다. 1MB 이하의 올바른 GeoJSON을 보내세요.","JSON 문법과 type·coordinates 구조를 확인합니다."],["도형 없음","400","GeoJSON에 도형이 없습니다.","Feature의 geometry나 FeatureCollection의 features가 비어 있지 않은지 확인합니다."],["요청 본문 1MB 초과","413","본문 최상위 error.code가 REQUEST_TOO_LARGE","simplify로 미리 줄이거나 도형을 나눠 보냅니다."]]}],"x-service-errors":[],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}}}