Design Pickup Address Autocomplete With Location Bias
Last updated: November 29, 2026
Quick Overview
Design the 'Where to?' and pickup autocomplete that suggests places and addresses as the rider types each character, biased toward their location, saved places, and frequent destinations.
Uber
November 29, 20260
0
0 solved
Design the 'Where to?' and pickup autocomplete that suggests places and addresses as the rider types each character, biased toward their location, saved places, and frequent destinations.
Destination entry is the first step of every Uber trip, and a wrong pickup pin costs drivers time and riders money. Interviewers check prefix search at very low latency, how location bias and personalization are blended, and how place data from many providers is deduplicated.
What the Interviewer Expects
- Use a prefix-friendly index sharded or partitioned by region
- Rank by text match, distance, popularity, and personal history
- Keep p99 latency low with debouncing and edge caching
- Return a precise pickup point, not just a place centroid
- Handle multiple languages and transliteration
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you pick the best entrance or pickup spot for a large venue like an airport?
- How would you merge duplicate places from two data providers?
- What do you cache, and where, given every user has a different location?
- How do you measure autocomplete quality?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
As the rider types, return up to 8 suggestions within ~100 ms server time. Sources: saved places (home, work), recent trips, and a global places database (POIs and addresses). Results should prefer th...
High-Level Design
- Client: debounce keystrokes (~100 ms), cancel in-flight requests, and search personal places locally first for instant results.
- Autocomplete service: receives `(prefix, lat, lng, locale, u...