Design Location-Aware Local Answers for ChatGPT Search Queries

Last updated: November 29, 2026

Quick Overview

Design how ChatGPT search answers queries like "coffee shops open now near me" by inferring the user's approximate location, fetching nearby places, and grounding the answer with map results, while respecting privacy.

OpenAI
System Design
Software Engineer
OpenAI
November 29, 2026
Software Engineer
Onsite
System Design
Medium

0

0

0 solved


Design how ChatGPT search answers queries like "coffee shops open now near me" by inferring the user's approximate location, fetching nearby places, and grounding the answer with map results, while respecting privacy.

ChatGPT search has to compete on local intent, where answers depend on where the user is. This prompt checks geospatial indexing, fusing third-party place data with the model's answer, and handling location with care.

What the Interviewer Expects
  • Determine location from explicit text, device permission, or coarse IP geolocation, in that order
  • Detect local intent and extract the place category and constraints
  • Query a geospatial index or places provider by geohash or S2 cells
  • Rank places by distance, relevance, rating and open hours
  • Pass structured results to the model and render a map with citations
  • Minimize storage of precise location
Key Topics to Cover
geohashing
S2 cells
geospatial search
privacy
ranking
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 handle "near the Eiffel Tower" versus "near me"?
  • How do you keep open hours correct across time zones and holidays?
  • What happens in areas where your places data is sparse?
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
  • Detect local intent; produce an answer listing a handful of places with address, distance, hours and a map.
  • Location sources: named place in query, precise device location if permitted, else coars...
High-Level Design
  • Query understanding: a small classifier or the model's tool call extracts {category, constraints (open now, price), anchor}.
  • Location resolver: if an anchor is named, geocode it; else us...

Submit Your Answer
Markdown supported