Design Nearby Places Search for Bing Maps

Last updated: November 29, 2026

Quick Overview

Design the backend for 'coffee near me' on Bing Maps: given a location and a category or text query, return the closest open businesses ranked by distance and relevance.

Microsoft
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design the backend for 'coffee near me' on Bing Maps: given a location and a category or text query, return the closest open businesses ranked by distance and relevance.

A classic geospatial warm-up adapted to Bing Maps. The interviewer checks that you pick a spatial index (geohash, S2 cells or quadtree), handle ring expansion when results are sparse, and combine distance with relevance and business hours.

What the Interviewer Expects
  • Uses a spatial index (geohash, quadtree or S2 cells)
  • Expands search radius when the first cells have too few results
  • Combines text or category match with distance and quality ranking
  • Keeps business data fresh with an update pipeline
  • Handles dense cities versus rural areas
Key Topics to Cover
Geohash
S2 cells
Radius expansion
Ranking
Read-heavy caching
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you avoid missing a coffee shop just across a cell boundary?
  • How would you support 'open now'?
  • How do you handle a map viewport query instead of a point?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

About 200M places worldwide. Query: lat/long plus category or text, return top 20 within a reasonable distance, p99 under 200 ms. Business data changes daily (new places, hours). Very read heavy....

High-Level Design

Place store holds the full record (name, categories, hours, rating, coordinates). A geo index maps spatial cells to place ids, and a text/category index maps terms to place ids. The **sear...


Submit Your Answer
Markdown supported

Related Questions