PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Meta

Design a location-based radius top-K search

Last updated: May 28, 2026

Quick Overview

This question evaluates system-design and backend engineering skills, focusing on geospatial data modeling, indexing and query strategies, sharding and partitioning, handling static versus dynamic location updates, and high-level capacity and latency estimation for throughput-sensitive services.

  • easy
  • Meta
  • System Design
  • Software Engineer

Design a location-based radius top-K search

Company: Meta

Role: Software Engineer

Category: System Design

Difficulty: easy

Interview Round: Onsite

Design a location-based search service. Input: - `latitude`, `longitude` - `radius` (meters) - `K` Output: - The top K locations within the radius. The term “location” is generic and can represent: - **Static** locations (e.g., businesses/POIs like a Yelp listing) - **Dynamic** locations (e.g., nearby drivers in a ride-hailing app) that update frequently Discuss: - Data model and APIs - How to index/query efficiently (e.g., geohash, quadtree, or alternatives) - Trade-offs for static vs dynamic data - Sharding strategy (including hybrid approaches) - How you would estimate memory/throughput at a high level Assume global scale and low-latency queries.

Quick Answer: This question evaluates system-design and backend engineering skills, focusing on geospatial data modeling, indexing and query strategies, sharding and partitioning, handling static versus dynamic location updates, and high-level capacity and latency estimation for throughput-sensitive services.

Related Interview Questions

  • Design Top-K, Crawler, and Chess Systems - Meta (hard)
  • Design Search And Web Crawling Systems - Meta (medium)
  • Design an Instagram-Style Social Feed - Meta (medium)
  • Design an Online Game Leaderboard - Meta (hard)
  • Design an On-Demand Delivery Platform - Meta (medium)
Meta logo
Meta
Mar 11, 2026, 12:00 AM
Software Engineer
Onsite
System Design
27
0

Design a location-based search service.

Input:

  • latitude , longitude
  • radius (meters)
  • K

Output:

  • The top K locations within the radius.

The term “location” is generic and can represent:

  • Static locations (e.g., businesses/POIs like a Yelp listing)
  • Dynamic locations (e.g., nearby drivers in a ride-hailing app) that update frequently

Discuss:

  • Data model and APIs
  • How to index/query efficiently (e.g., geohash, quadtree, or alternatives)
  • Trade-offs for static vs dynamic data
  • Sharding strategy (including hybrid approaches)
  • How you would estimate memory/throughput at a high level

Assume global scale and low-latency queries.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Meta•More Software Engineer•Meta Software Engineer•Meta System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.