跳到正文
DEV Community· 이승혁·· 20 小時前AI 評分35

OWN SHARK 開發日誌 #2:全韓國資料、防錯字搜尋與延遲兩小時的地鐵推薦問題

Dev log #2: nationwide data, typo-proof search, and a subway bug that picked a train 2 hours later

AI 導讀

韓國一名高中生獨自開發的 OWN SHARK,在最近三天修正地鐵路線推薦錯誤,並把地點及地址資料擴展至全韓國。系統會比較三種地鐵搜尋結果,按實際到站時間選出最早抵達的路線;商戶停業資料則須與政府牌照資料中的建築物及名稱吻合。產品仍未推出,現支援日文、中文、越南文、韓文及英文回答。

正文

이승혁

A follow-up to my first post. I'm an 11th grader in Korea building OWN SHARK solo: an assistant that tells you what's open near you, ranked by real walking time. Here's what landed in the last three days.

The subway bug: answering with a train 2 hours later

For subway legs I call Seoul Metro's shortest-path API. I only asked for the "shortest travel time" search type. Sometimes the shortest ride was a train leaving two hours from now, so the app proudly recommended it.

The fix: ask all three search types (duration, fewest transfers, distance) for the time you'd actually reach the station, then keep whichever arrives first. Wait time for the first train is added in, and if it's over 10 minutes the reply says so. If the API has no answer, the app says the ride time isn't confirmed instead of guessing.

From Seoul to the whole country

Places, place names and addresses now cover all of Korea. The government business list is fetched per province every week, with a checkpoint per page so a dropped connection resumes where it stopped. A run that comes back with less than half the previous rows is refused rather than wiping data.

Typo-proof name search

SQLite FTS5 trigram indexes over place names. A one-syllable typo still finds the school, and you can type only the initial consonants (초성, e.g. "ㄱㄴㅇ"). Exact matches always rank above fuzzy ones. The big indexes are built by a startup job, never inside a request.

Closing shops that shut down

Shop records are matched to the government business-licence data, but only when the building and the name both match. If the licence says closed, the shop is closed. If more than 5% of one category would flip in a single run, nothing changes and the run is flagged for a human.

For visitors

  • Answers in Japanese, Chinese and Vietnamese, not only Korean and English
  • Incheon Airport: taxi stands, airport buses, gates, and live departure-hall queues from the airport's own API
  • A paperwork-deadline helper for foreign residents, built from the immigration statute text; every answer cites the article and points to the official 1345 hotline

Smaller things

  • A 3D walking view: three.js buildings and a route ribbon inside MapLibre
  • "Text mom I'm running late" opens the SMS screen with the text filled in. The user presses send
  • A per-user monthly AI cost cap. Past it, the assistant falls back to rule-based answers

Biggest lesson this round: don't take one API's answer as the truth. Both the subway bug and the closed shops were fixed by checking against a second source.

Still pre-launch. Feedback very welcome.

Waitlist (Korean page, 1 month free at launch): https://kqts5p68vrcer3-8000.proxy.runpod.net/pre?src=devto2

來源:DEV Community · dev.to