Design Local Business Ranking for Google Maps Search Results
Last updated: November 29, 2026
Quick Overview
Design the ranking system for queries like 'coffee near me' or 'plumber' in Google Maps, which must combine relevance, distance and prominence for each local business.
0
0
0 solved
Design the ranking system for queries like 'coffee near me' or 'plumber' in Google Maps, which must combine relevance, distance and prominence for each local business.
Local search is a distinct ranking problem at Google because distance and real-world quality interact with text relevance. Interviewers want a clear breakdown of signals, label sources and how intent varies between 'near me' and named searches.
What the Interviewer Expects
- Separate relevance, distance and prominence signals
- Parse query intent including category and attributes like 'open now'
- Use implicit feedback (directions, calls, website visits) as labels
- Handle the map viewport versus user location
- Address spam listings and fake reviews as quality signals
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How does ranking change when the user pans the map to another city?
- How would you rank a great restaurant 3 km away against an average one 300 m away?
- How do you keep a newly opened business from being invisible?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Queries: category ('pizza'), attribute ('vegan pizza open now'), chain ('Starbucks') or specific name. Context: user location, map viewport, time, travel mode. Output: ranked list and pins in under 20...
High-Level Design
- Query understanding: map text to categories and attributes; classify intent (category browse versus named lookup).
- Geo retrieval: fetch businesses in the viewport or radius with an S2 ce...