From ee3a8ce0b285d7531d455225aec1264f7869bca6 Mon Sep 17 00:00:00 2001 From: Sin Ye Rin <91180366+nyeroni@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:05:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A7=9B=EC=A7=91=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=20=EC=9C=84=EB=8F=84=20=EA=B2=BD=EB=8F=84=20=EB=B0=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yerong/wedle/category/restaurant/dto/KakaoApiDocument.java | 2 ++ .../wedle/category/restaurant/dto/RestaurantResponse.java | 2 ++ .../category/restaurant/service/KakaoSearchApiService.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/main/java/yerong/wedle/category/restaurant/dto/KakaoApiDocument.java b/src/main/java/yerong/wedle/category/restaurant/dto/KakaoApiDocument.java index e56ce46..246c979 100644 --- a/src/main/java/yerong/wedle/category/restaurant/dto/KakaoApiDocument.java +++ b/src/main/java/yerong/wedle/category/restaurant/dto/KakaoApiDocument.java @@ -10,4 +10,6 @@ public class KakaoApiDocument { private String phone; private String category_name; private String place_url; + private Double x; + private Double y; } diff --git a/src/main/java/yerong/wedle/category/restaurant/dto/RestaurantResponse.java b/src/main/java/yerong/wedle/category/restaurant/dto/RestaurantResponse.java index c05e23f..70fc8e9 100644 --- a/src/main/java/yerong/wedle/category/restaurant/dto/RestaurantResponse.java +++ b/src/main/java/yerong/wedle/category/restaurant/dto/RestaurantResponse.java @@ -17,4 +17,6 @@ public class RestaurantResponse { private String phone; private String categoryName; private String placeUrl; + private Double x; + private Double y; } diff --git a/src/main/java/yerong/wedle/category/restaurant/service/KakaoSearchApiService.java b/src/main/java/yerong/wedle/category/restaurant/service/KakaoSearchApiService.java index 277ed8b..a84b56d 100644 --- a/src/main/java/yerong/wedle/category/restaurant/service/KakaoSearchApiService.java +++ b/src/main/java/yerong/wedle/category/restaurant/service/KakaoSearchApiService.java @@ -53,6 +53,8 @@ public List searchRestaurant(String query) { .categoryName(lastCategory) .phone(document.getPhone()) .placeUrl(document.getPlace_url()) + .x(document.getX()) + .y(document.getY()) .build()); } }