System Design · Module 18
Location, maps and matching systems
- Lessons
- 10
- Free
- 0
- Reading
- ~4 h
Your progress
0 / 10 lessons done
Sign in to trackLessons
- Proximity search: finding nearby placesPickup locations, nearby restaurants and driver discovery all need spatial filtering. Understanding the filtering mechanism helps you build searches that stay correct at boundaries and remain affordable as traffic grows.
- Geohash: encoding locations as short stringsGeohash lets you group locations using ordinary string keys. Understanding its boundaries prevents nearby searches from silently hiding valid results.
- Spatial grids: geohash, S2 and H3 comparedLocation services use grids to reduce search work and group events. Choosing one requires understanding boundary behavior, not just comparing cell shapes.
- Redis geospatial queries for low latencyNearby searches often sit on a user-facing request path. You need to bound their work without confusing fast location lookup with fresh availability or safe assignment.
- Geofencing: checking if a point is inside a regionDelivery eligibility, service areas and arrival alerts all depend on region membership. Correct geometry alone is not enough: boundary rules, location uncertainty and changing region definitions affect what customers see.
- Real-time location trackingDelivery maps and vehicle dashboards must handle uncertain measurements and unreliable connections. A useful tracking system shows what it knows, how old that knowledge is, and when it can no longer claim a position is current.
- Deduplication: filtering already-seen itemsNearby search, feeds and recommendation lists often retrieve the same item through several paths. Correct filtering needs more than a set: you must decide what counts as the same item and what happens when requests race or retry.
- Matching algorithms: pairing riders, drivers and itemsDispatch, delivery and marketplace systems allocate scarce supply to competing requests. A good allocation must account for shared choices, then survive concurrent workers, rejected offers and retries.
- Design: a nearby restaurants serviceNearby search combines location, changing business rules and pagination. A fast distance query is not enough if customers see closed restaurants, missing choices or repeated results.
- Design: ride matching like UberMatching systems turn changing recommendations into exclusive commitments. The same problem appears in courier dispatch, job allocation and inventory reservations.
Practise with
Terms this module teaches 21
Open glossaryAssignment problem
An optimization problem that pairs members of two sets under exclusivity constraints, usually to minimize a total cost.
Bipartite graph
A graph with two separate sets of vertices, where each edge connects a vertex from one set to a vertex from the other.
Bounding box
A rectangular region that encloses an object or search area in a chosen coordinate space.
Candidate generation
Reducing a large collection to a smaller set of possible matches before detailed filtering or ranking.
Cell resolution
The scale of cells within a particular grid system; finer resolutions represent smaller regions.
Conservative covering
A collection of cells whose union contains an entire search region, possibly including extra territory.
Dispatch offer
A request for a driver to accept one specific job before a deadline.
Dynamic programming
Solving a problem by keeping reusable answers to smaller subproblems instead of solving the same subproblem repeatedly.
Geofence
A defined geographic region used to classify locations or detect movement into and out of an area.
Geohash
A string that identifies a rectangular geographic cell by alternating longitude and latitude subdivisions. Longer strings identify smaller nested cells.
Hysteresis
Using different conditions to enter and leave a state, reducing repeated changes near a threshold.
Location accuracy
A location provider’s estimate of uncertainty around a reported position.
Location freshness
How recently the observation behind a displayed position was acquired, rather than how recently a message arrived.
Matching
A set of graph edges in which no two edges share a vertex.
Point-in-polygon test
A geometric test that classifies a point against a polygon’s interior, boundary and exterior.
Proximity search
Finding places near a supplied location according to a defined distance rule.
R-tree
A spatial tree that groups entries within nested bounding regions so queries can skip irrelevant branches.
Redis geospatial index
A Redis sorted set whose member scores encode geographic positions for nearby searches.
Reservation
A recorded claim that temporarily prevents competing work from using the same resource.
Spatial grid
A division of a geographic surface into named cells, used to group locations or narrow a search.
Spatial index
An index that narrows spatial queries by organizing objects according to where they are.