Menu

How I built 'open now + real walking time' search as a high schooler (FastAPI, Valhalla, Korean public data)
📰

How I built 'open now + real walking time' search as a high schooler (FastAPI, Valhalla, Korean public data)

DEV Community: fastapi·이승혁·about 3 hours ago
#HDAipdxq
#devtofastapi#devto#dev#open#says
Long article (513 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm an 11th grader in Korea, and for the past year I've been building OWN SHARK on my own: an assistant where you say "somewhere open right now that sells painkillers" and it answers with places that are open now , ranked by real walking time .

Here's how it works under the hood, and the bugs that cost me the most time.

The problem

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.

Stack

FastAPI (Python 3.13) for the API

SQLite with an R*Tree index for "places within N metres" queries

Valhalla + OSRM , self-hosted, for real pedestrian routes

Capacitor Android app (a WebView over the API)

One CPU pod on RunPod runs all of it: API, Valhalla and OSRM in a single container

Ranking by walking time, not distance

The R*Tree pulls candidates in a 1.5 km box.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.