← InfraDraft

Geospatial

Design a Proximity Service (Yelp / Nearby Places)

A location-based discovery service returning ranked nearby points of interest within a radius, backed by a spatial index for fast range queries.

Open and Simulate this Architecture in InfraDraft

Core Architectural Components

Geospatial Index

Geohash or quadtree structure enabling efficient radius queries.

Business/POI Catalog Store

Structured data for every listed place.

Radius/Range Query Service

Answers "what's within N km of this point" quickly at scale.

Ranking Service

Orders results by a mix of rating, distance, and relevance.

Review & Rating Aggregation Service

Rolls up individual reviews into the score used for ranking.

Search/Filter Service

Category, price range, and hours-of-operation filtering.

Geocoding Service

Converts between addresses and coordinates for both listings and search.