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()); } }