<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 이승혁</title>
    <description>The latest articles on DEV Community by 이승혁 (@_07d6ee843eef0ec2fe89c).</description>
    <link>https://dev.to/_07d6ee843eef0ec2fe89c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4251621%2F921029d5-6674-4b9d-93b0-72d2e83e7897.png</url>
      <title>DEV Community: 이승혁</title>
      <link>https://dev.to/_07d6ee843eef0ec2fe89c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_07d6ee843eef0ec2fe89c"/>
    <language>en</language>
    <item>
      <title>How I built 'open now + real walking time' search as a high schooler (FastAPI, Valhalla, Korean public data)</title>
      <dc:creator>이승혁</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:26:57 +0000</pubDate>
      <link>https://dev.to/_07d6ee843eef0ec2fe89c/how-i-built-open-now-real-walking-time-search-as-a-high-schooler-fastapi-valhalla-korean-4iaj</link>
      <guid>https://dev.to/_07d6ee843eef0ec2fe89c/how-i-built-open-now-real-walking-time-search-as-a-high-schooler-fastapi-valhalla-korean-4iaj</guid>
      <description>&lt;p&gt;I'm an 11th grader in Korea, and for the past year I've been building &lt;strong&gt;OWN SHARK&lt;/strong&gt; on my own: an assistant where you say &lt;em&gt;"somewhere open right now that sells painkillers"&lt;/em&gt; and it answers with places that are &lt;strong&gt;open now&lt;/strong&gt;, ranked by &lt;strong&gt;real walking time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here's how it works under the hood, and the bugs that cost me the most time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Map apps answer "what's near me". At 11pm I needed "what's open, and how many minutes on foot". The closest pharmacy on the map was closed; the next one had shut down months ago.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;FastAPI&lt;/strong&gt; (Python 3.13) for the API&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SQLite with an R*Tree index&lt;/strong&gt; for "places within N metres" queries&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Valhalla + OSRM&lt;/strong&gt;, self-hosted, for real pedestrian routes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Capacitor&lt;/strong&gt; Android app (a WebView over the API)&lt;/li&gt;
&lt;li&gt;One &lt;strong&gt;CPU pod on RunPod&lt;/strong&gt; runs all of it: API, Valhalla and OSRM in a single container&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Ranking by walking time, not distance
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The R*Tree pulls candidates in a 1.5 km box. If nothing is open there, it widens to 3 km, then 5 km, and the reply says that it widened.&lt;/li&gt;
&lt;li&gt;Shops that are closed or shut down get filtered out (more on that below).&lt;/li&gt;
&lt;li&gt;The survivors go to the routing engine for actual walking minutes, and the list is sorted by that.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Straight-line distance is misleading next to rivers, rail lines and big apartment blocks. A shop 300 m away can be a 12-minute walk.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Open now" is harder than it looks
&lt;/h2&gt;

&lt;p&gt;Korean public data is great but patchy. Lots of places have &lt;strong&gt;no opening hours at all&lt;/strong&gt;. So the rule is simple: if we don't have the hours, the app never says "open". It says the hours aren't confirmed and suggests calling first.&lt;/p&gt;

&lt;p&gt;Shops that vanish from the weekly government business list aren't deleted. They're marked &lt;code&gt;closed&lt;/code&gt; with a &lt;code&gt;gone_since&lt;/code&gt; date, so other tables that reference them don't break.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 255 m bug
&lt;/h2&gt;

&lt;p&gt;Seoul's licensing datasets give coordinates in a Korean TM projection. I read them as &lt;strong&gt;EPSG:2097&lt;/strong&gt;, and every vet clinic landed about &lt;strong&gt;255 m&lt;/strong&gt; from where it really was. Close enough to look right on a map, wrong enough to send someone down the wrong street. The correct CRS for that data is &lt;strong&gt;EPSG:5174&lt;/strong&gt;. Now it's pinned in code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making the AI say "I don't know"
&lt;/h2&gt;

&lt;p&gt;This was the hardest part. Every reply goes through one exit function that checks for claims we can't back up: "open" without hours, a place name that isn't in our data, and so on. If the bot can't find something, it says &lt;em&gt;"I couldn't find it"&lt;/em&gt; instead of inventing a similar-sounding place.&lt;/p&gt;

&lt;p&gt;Anything involving money (payments, bookings, cancellations) stops at a screen with the details filled in. The user presses the last button.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it is now
&lt;/h2&gt;

&lt;p&gt;Pre-launch, covering Seoul and Gyeonggi. I'd love feedback from other devs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Would you trust an assistant more if it often says "not confirmed"?&lt;/li&gt;
&lt;li&gt;Any tips for keeping self-hosted Valhalla + OSRM light on one CPU box?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Waitlist (the page is in Korean; 1 month free at launch): &lt;a href="https://kqts5p68vrcer3-8000.proxy.runpod.net/pre?src=devto" rel="noopener noreferrer"&gt;https://kqts5p68vrcer3-8000.proxy.runpod.net/pre?src=devto&lt;/a&gt;&lt;/p&gt;

</description>
      <category>backend</category>
      <category>fastapi</category>
      <category>mobile</category>
      <category>python</category>
    </item>
  </channel>
</rss>
