diff --git a/CHANGELOG.md b/CHANGELOG.md index efb9f1e..61fd2a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ --- +## 2026-06-16 + +### ๐บ๏ธ ์๋น ์์ธ ์ง๋ ๋งํฌ ๊ตญ๋ด/ํด์ธ ๋ถ๊ธฐ (v0.1.51) +- ์ขํ ๊ธฐ๋ฐ ํ๊ตญ ํ์ (WGS84 KR bbox 33~38.7ยฐN, 124~132ยฐE) +- ๊ตญ๋ด: ๋ค์ด๋ฒ ์ง๋ primary + Google Maps ๋ณด์กฐ (๋ค์ด๋ฒ URL์ ์ ๋๋ฉ์ธ /p/search/) +- ํด์ธ: Google Maps ๋จ๋ +- ์ขํ ์์ผ๋ฉด region ์ฒซ ํ ํฐ fallback (๊ตฌ ๋ฐ์ดํฐ ํธํ) +- frontend-only ๋ฐฐํฌ + ## 2026-06-15 ### ๐ ์บ์นํ ์ด๋ธ URL ํจํด ์์ (v0.1.50) diff --git a/frontend/src/components/RestaurantDetail.tsx b/frontend/src/components/RestaurantDetail.tsx index 06b28d6..790df49 100644 --- a/frontend/src/components/RestaurantDetail.tsx +++ b/frontend/src/components/RestaurantDetail.tsx @@ -24,6 +24,15 @@ function buildSearchQuery(r: Restaurant): string { return r.name; } +// ์ขํ ๊ธฐ๋ฐ ํ๊ตญ ํ์ (WGS84). KR bbox ๋๋ต 33~38.7ยฐN, 124~132ยฐE. +// ์ขํ ์์ผ๋ฉด region ์ฒซ ํ ํฐ์ผ๋ก fallback (๊ตฌ ๋ฐ์ดํฐ ํธํ). +function isKoreaRestaurant(r: Restaurant): boolean { + if (r.latitude != null && r.longitude != null) { + return r.latitude >= 33 && r.latitude <= 38.7 && r.longitude >= 124 && r.longitude <= 132; + } + return !r.region || r.region.split("|")[0] === "ํ๊ตญ"; +} + export default function RestaurantDetail({ restaurant, onClose, @@ -138,22 +147,33 @@ export default function RestaurantDetail({ )} {restaurant.google_place_id && (
- - Google Maps์์ ๋ณด๊ธฐ - - {(!restaurant.region || restaurant.region.split("|")[0] === "ํ๊ตญ") && ( + {isKoreaRestaurant(restaurant) ? ( + <> + + ๋ค์ด๋ฒ ์ง๋์์ ๋ณด๊ธฐ + + + Google Maps + + > + ) : ( - ๋ค์ด๋ฒ ์ง๋์์ ๋ณด๊ธฐ + Google Maps์์ ๋ณด๊ธฐ )}