DEV Community

이승혁
이승혁

Posted on

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

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

Top comments (0)