The result
Aggregation pipelines and GeoPandas visualizations over Santa Barbara business and boundary data.
Business data explored through aggregation and geography
Academic project

Connected business records with geographic questions through 30 MongoDB queries, indexed spatial searches and map-based inspection.
From the repository
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.
businesses, reviews, tips, users.$match, $group, $split, $unwind, and $sort produce category-level counts, average ratings, and user-activity metrics (distinct businesses reviewed, total reviews).$lookup combines businesses with their reviews to summarize positive vs. negative review volume per business.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 limits | Nearest to Stearns Wharf | Around SB Airport |
|---|---|---|
![]() | ![]() | ![]() |
MongoDB · PyMongo · pandas · GeoPandas · Shapely · matplotlib · Jupyter
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
# 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
Continue exploring · 34 projects

Fullstack

ML & AI

ML & AI

ML & AI
Distributed Systems

Fullstack

ML & AI
Distributed Systems

Distributed Systems
Distributed Systems
Distributed Systems

Data Engineering
Data Engineering

Data Engineering

Data EngineeringViewing

Data Engineering

ML & AI
ML & AI
Data Engineering

Fullstack

Fullstack
Fullstack

Fullstack

Fullstack
Data Engineering
Computing Foundations

Fullstack

Fullstack
ML & AI
ML & AI

ML & AI
ML & AI
ML & AI
ML & AI