Find the 20 nearest restaurants within 5km, fast, for millions of users. A naive distance scan over every place is hopeless. The design centers on spatial indexing, geohash or quadtree partitioning, and coping with dense cities versus empty regions. Here is how proximity search works.
← System Design for AI in Production / 106
Design a geo-proximity service that finds the nearest places to a user, like Yelp or store locators.
Find the 20 nearest restaurants within 5km, fast, for millions of users. A naive distance scan over every place is hopeless. The design centers on spatial indexing, geohash or quadtree partitioning, and coping with dense cities versus empty regions. Here is how proximity search works.
Updated Sep 2026 · Grounded in real GenAI, LLM, and AI/ML engineering interview loops and written to a senior-engineer editorial bar.
Unlock the other 847 answers · ₹2,000 / $25Your progress and mastery stay saved · 6 months · one payment · no auto-renew
UP NEXT ON YOUR JOURNEY
Next in this trackDesign an idempotent job queue that processes background tasks exactly once despite retries and crashes.Next in this trackDesign an ad exchange that runs a real-time auction across many bidders within a 100ms budget.Next in this trackDesign a private LLM deployment for a regulated enterprise where nothing, not even telemetry, may leave the network.
DISCUSSION · 0
No comments yet — be the first to share your approach.
