Skip to content

About

Project for 2025 Hacklytics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Storescope

A retail location scoring tool built at Hacklytics 2025. Given any Georgia street address, Storescope rates how visible the storefront is to passing traffic — combining computer vision analysis of the actual street view with real road traffic data.

How it works

Address
  └─ Geocode (Google Maps)
       └─ Snap to nearest road (Google Roads API)
            ├─ Distance & bearing (store → road)
            ├─ Street View image from road looking at store (Google Street View)
            │    └─ Object detection (Google Cloud Vision)
            │         └─ Obstruction % (cars, people, trees, signs, bushes)
            └─ Traffic volume (OpenStreetMap road segment lookup)
                 └─ Visibility Score × Traffic Volume = Final Score

Visibility Score = distance_factor × angle_factor × obstruction_factor

Factor Formula Meaning
Distance exp(-0.1 × km) Closer to road = more visible
Angle cos(deviation from perpendicular) Store facing road head-on scores highest
Obstruction 1 - blocked% Less blocked view = higher score

Setup

1. Clone and install dependencies

pip install -r req.txt

2. Create a .env file with your Google Maps API key

GOOGLE_API_KEY=your_key_here
GOOGLE_APPLICATION_CREDENTIALS=path/to/service_account.json

The Maps API key needs Geocoding API, Roads API, and Street View Static API enabled.
The service account needs Cloud Vision API enabled.

3. Add traffic data

Place traffic_data_sample.parquet in a traffic_data/ folder, then run traffic_data.ipynb to generate the cleaned cleaned_data/traffic_data_sample_filtered.parquet. The dataset used is Georgia road segment trip data from OpenStreetMap (March 2023).

Run

Streamlit UI (recommended)

streamlit run app.py

Jupyter notebook

jupyter notebook initial.ipynb

Tech stack

UI Streamlit
Street imagery Google Street View Static API
Object detection Google Cloud Vision API
Geocoding & road snap Google Maps Geocoding + Roads API
Road geometry OpenStreetMap via Overpass API
Traffic data OSM road segment trip volumes (Parquet)
Data processing Pandas, PyArrow

Project structure

app.py                          # Streamlit UI
initial.py                      # Standalone Python script
initial.ipynb                   # Development notebook
traffic_data.ipynb              # Data cleaning notebook
cleaned_data/
  traffic_data_sample_filtered.parquet
req.txt

About

Project for 2025 Hacklytics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages