add region convert module

This commit is contained in:
jaehwang committed 2025-08-19 13:51:16 +09:00
1 parent d3371fd7b6
commit 5bf283c5d4
9 files changed
+243 -23

No files matched your search

+9 -6
View File
@@ -15,18 +15,21 @@
<main>
<div class="search-section">
<textarea id="searchInput" placeholder="예: 강남역 근처 전세 2억 이하 투룸 찾아줘
서초동 30평대 아파트 매매 10억 이하
방 3개짜리 월세 100/50 이하 판교"></textarea>
<textarea id="searchInput" placeholder="예: 강남역 근처 아파트 전세 2억 이하 투룸
서초동 30평대 오피스텔 매매 10억 이하
판교 빌라 방 3개 월세 100/50
역삼동 원룸 오피스텔 전세 1억5천"></textarea>
<button id="searchBtn" onclick="parseQuery()">분석하기</button>
</div>
<div class="examples">
<h3>입력 예시:</h3>
<div class="example-chips">
<span class="chip" onclick="setExample(this)">강남 전세 3억 방 2개</span>
<span class="chip" onclick="setExample(this)">판교 30평 아파트 매매</span>
<span class="chip" onclick="setExample(this)">서초동 월세 200/100</span>
<span class="chip" onclick="setExample(this)">강남 아파트 전세 3억 방 2개</span>
<span class="chip" onclick="setExample(this)">판교 30평 오피스텔 매매</span>
<span class="chip" onclick="setExample(this)">서초동 빌라 월세 200/100</span>
<span class="chip" onclick="setExample(this)">잠실 주상복합 전세 5억</span>
<span class="chip" onclick="setExample(this)">분당 단독주택 매매 20억</span>
</div>
</div>
+15 -1
View File
@@ -48,6 +48,12 @@ function displayResults(data) {
let html = '';
if (data.property_type) {
html += `<div class="result-item">
<strong>매물 형태:</strong> ${data.property_type}
</div>`;
}
if (data.transaction_type) {
html += `<div class="result-item">
<strong>거래 유형:</strong> ${data.transaction_type}
@@ -64,6 +70,14 @@ function displayResults(data) {
html += `<div class="result-item">
<strong>위치:</strong> ${data.location}
</div>`;
// 지역 코드가 있으면 표시
if (data.region_code) {
html += `<div class="result-item">
<strong>지역 코드:</strong> ${data.region_code}
${data.region_name ? ` (${data.region_name})` : ''}
</div>`;
}
}
if (data.area) {
@@ -74,7 +88,7 @@ function displayResults(data) {
if (data.rooms) {
html += `<div class="result-item">
<strong>방 개수:</strong> ${data.rooms}
<strong>방 개수:</strong> ${data.rooms}개
</div>`;
}
+9
View File
@@ -131,6 +131,15 @@ header p {
width: 100px;
}
.result-item .code-badge {
background: #f0f0f0;
padding: 2px 8px;
border-radius: 4px;
font-family: monospace;
font-size: 0.9em;
margin-left: 10px;
}
.loading {
text-align: center;
padding: 40px;