Design Pickup Point Search Within a Radius at Checkout

Last updated: November 29, 2026

Quick Overview

At checkout, show the customer the nearest Amazon Lockers and Counter pickup locations within a few miles of their address, filtered by package size and current capacity.

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

0

0

0 solved


At checkout, show the customer the nearest Amazon Lockers and Counter pickup locations within a few miles of their address, filtered by package size and current capacity.

A geo-indexing warm-up used in Amazon screens. The interviewer wants to see that you know how to index points for radius search (geohash, S2, or quadtree), combine it with filters, and keep capacity fresh without re-indexing.

What the Interviewer Expects
  • Pick a spatial index and justify it
  • Explain the radius query: covering cells, then exact distance filter
  • Keep static location data separate from changing capacity
  • Rank results by distance and availability
  • Estimate data size and query rate
Key Topics to Cover
Geohash
S2 cells
Radius search
Capacity filtering
Haversine distance
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 a search near a geohash cell boundary?
  • How would you add opening hours as a filter?
  • What if a locker fills up between the search and the order?
  • How would you scale this to every marketplace?
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

Inputs: customer latitude and longitude (geocoded from the address), package dimensions. Output: up to 10 pickup points within 5 miles, with distance, hours and whether the package fits. Scale: about ...

High-Level Design
  • Location index: each pickup point is stored with its geohash (precision 6, roughly 1.2 km by 0.6 km cells). An index maps geohash prefix to point IDs. At 50k points this fits in memory on every ...

Submit Your Answer
Markdown supported