Skip to content
Vibhrav Jha.Let’s talk
All projectsData Engineering

Yelp Geospatial Analytics

Business data explored through aggregation and geography

My contributionMongoDB query implementation and geographic visualization.

FieldData Engineering

View repository

Academic project

Yelp Geospatial Analytics project image

The work
behind the interface.

Connected business records with geographic questions through 30 MongoDB queries, indexed spatial searches and map-based inspection.

  • MongoDB
  • PyMongo
  • GeoPandas
  • Python
  • Docker

The result

Aggregation pipelines and GeoPandas visualizations over Santa Barbara business and boundary data.

The problem

Implemented 30 MongoDB queries connecting business information with geographic questions.

A decision worth examining

Use a 2dsphere index for containment, nearest-neighbor and radius searches, with map overlays for inspection.

Read the README.

View original README
READMEArchitecture, setup and usage

Yelp Business Analytics with MongoDB

Loads a Yelp business dataset into MongoDB and analyzes it with the MongoDB Query Language: filters and projections, aggregation pipelines, cross-collection joins, and geospatial queries that are plotted on maps of Santa Barbara, CA.

Highlights

  • Ingestion: newline-delimited JSON goes into four collections: businesses, reviews, tips, users.
  • Querying: filters on city, star rating, category (regex), postal code, and nested attributes such as wheelchair accessibility, with projections, sorting, and limits.
  • Aggregation pipelines: $match, $group, $split, $unwind, and $sort produce category-level counts, average ratings, and user-activity metrics (distinct businesses reviewed, total reviews).
  • Joins: $lookup combines businesses with their reviews to summarize positive vs. negative review volume per business.
  • Geospatial: a 2dsphere index backs three map queries:
    • $geoWithin against the Santa Barbara city boundary (GeoJSON polygon)
    • $near the Stearns Wharf pier
    • $centerSphere around Santa Barbara Airport
Businesses inside city limitsNearest to Stearns WharfAround SB Airport
Santa BarbaraStearns WharfAirport

Tech stack

MongoDB · PyMongo · pandas · GeoPandas · Shapely · matplotlib · Jupyter

Project structure

Yelp-MongoDB-Geospatial-Analytics/
├── yelp_mongodb_analysis.ipynb     # all queries, pipelines, and maps
├── santa_barbara_limits.geojson    # city boundary polygon
├── map_*.png                       # rendered geospatial query results
└── requirements.txt

Running locally

# 1. MongoDB
docker run --name mongodb -d -p 127.0.0.1:27017:27017 mongo

# 2. Python deps
pip install -r requirements.txt

# 3. Data: put the Yelp sample JSON files (businesses/reviews/tips/users)
#    in ./yelp_ca_sample/  (a California subset of the Yelp Open Dataset)

jupyter lab yelp_mongodb_analysis.ipynb

The raw Yelp data isn't committed; see the Yelp Open Dataset and its terms.


Date finished: March 2, 2026

E-Commerce Semantic Search Engine

  1. Aranyaka wildlife-image application interface

    Fullstack

    Aranyaka

  2. DermaNet hackathon prototype showing classification output and a generated explanation

    ML & AI

    DermaNet

  3. AI-generated concept illustration of source documents connected to retrieved evidence and an answer

    ML & AI

    Private-Data RAG

  4. Before It Breaks dashboard separating real weather from synthetic equipment telemetry and estimated costs

    ML & AI

    Before It Breaks

  5. Architecture diagram of simulated stock records flowing through Kafka to HDFS

    Distributed Systems

    Stock Streaming Engine

  6. Vyaya dashboard with clearly labeled synthetic demonstration data

    Fullstack

    Vyaya

  7. Study assistant interface with retrieved source context

    ML & AI

    Fine-Tuning vs. RAG

  8. Architecture diagram of NOAA data, a Cassandra cluster and a query service

    Distributed Systems

    Distributed Weather Data System

  9. Distributed Property Lookup Service project image

    Distributed Systems

    Distributed Property Lookup Service

  10. Architecture diagram connecting MySQL, a gRPC service and HDFS storage

    Distributed Systems

    HDFS & SQL Pipeline

  11. Architecture diagram of Spark processing, SQL and analysis

    Distributed Systems

    Spark Analytics

  12. Multi-Source ELT Pipeline project image

    Data Engineering

    Multi-Source ELT Pipeline

  13. Wisconsin schools in their geographic context — explanatory architecture diagram

    Data Engineering

    GCP Geospatial Pipeline

  14. Chinook Music Store SQL Analytics project image

    Data Engineering

    Chinook Music Store SQL Analytics

  15. Yelp Geospatial Analytics project image

    Data EngineeringViewing

    Yelp Geospatial Analytics

  16. E-Commerce Semantic Search Engine project image

    Data Engineering

    E-Commerce Semantic Search Engine

  17. Retail Sales Forecasting project image

    ML & AI

    Retail Sales Forecasting

  18. Making tool dependencies inspectable — explanatory architecture diagram

    ML & AI

    AI Agent Tool Dependency Graph

  19. From public records to operational questions — explanatory architecture diagram

    Data Engineering

    Palantir Foundry and AIP Build Challenge

  20. StudyFlow study-session dashboard

    Fullstack

    StudyFlow

  21. Habit Command Center planning dashboard

    Fullstack

    Habit Command Center

  22. Interfaces across web and mobile — explanatory architecture diagram

    Fullstack

    React Web & Mobile

  23. Startup Scout project image

    Fullstack

    Startup Scout

  24. Inventory-Based Recipe Planner project image

    Fullstack

    Inventory-Based Recipe Planner

  25. Concurrent Word Count and Performance Benchmarking project image

    Data Engineering

    Concurrent Word Count

  26. Data structures matched to their assumptions — explanatory architecture diagram

    Computing Foundations

    Algorithm Design

  27. Campus Navigator project image

    Fullstack

    Campus Navigator

  28. i-Songly: Song Management Engine project image

    Fullstack

    i-Songly

  29. An experiment that can resume — explanatory architecture diagram

    ML & AI

    CIFAR-100 with LeNet

  30. Fashion-MNIST Neural Network Classifier project image

    ML & AI

    Fashion-MNIST Classifier

  31. PCA Eigenfaces and Image Reconstruction project image

    ML & AI

    PCA Eigenfaces

  32. Two routes to the same regression objective — explanatory architecture diagram

    ML & AI

    Lake Mendota Ice Regression

  33. Bayesian Language Detection project image

    ML & AI

    Bayesian Language Detection

  34. Explanatory diagram of the video-fingerprint benchmark: 25 sources, 75 transformed variants and 1,875 comparisons.

    ML & AI

    Video-Fingerprint Benchmark

All projects