From 83677894aa44d63a08d11b5166df39240ff11556 Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Sun, 20 Oct 2024 03:31:38 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20chore:=20kakao=20map=20?= =?UTF-8?q?api=20=ED=86=B5=EC=8B=A0=20=EC=9C=84=ED=95=9C=20=ED=83=80?= =?UTF-8?q?=EC=9E=85=20=EC=A0=95=EC=9D=98=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/api/map.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/types/api/map.ts diff --git a/src/types/api/map.ts b/src/types/api/map.ts new file mode 100644 index 00000000..0cadbc73 --- /dev/null +++ b/src/types/api/map.ts @@ -0,0 +1,20 @@ +export type GeoDocument = { + region_type: 'B' | 'H'; // 'B'와 'H'만 가능한 것으로 가정 + address_name: string; + region_1depth_name: string; + region_2depth_name: string; + region_3depth_name: string; + region_4depth_name: string; + code: string; + x: number; + y: number; +}; + +export type GeoApiResponse = { + documents: GeoDocument[]; +}; + +export type GeoPosition = { + lon: number; + lat: number; +};