drwoj / mobility_data_warehouse

A data warehouse that integrates mobility data from Beijing and Hannover with context data (weather, economics etc.)

Home Page:https://kepler.gl/demo/map?mapUrl=https://dl.dropboxusercontent.com/scl/fi/aaip593aum12ozjn43l3r/keplergl_rydemw.json?rlkey=6jdtlipmwsqflbomj5hj5upbn&dl=0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mobility Data Warehouse

A data warehouse that integrates mobility data from various sources with corresponding context data such as weather conditions, economics, etc. The main subjects are trajectories from Beijing and Hannover. The visual layer allows analyzing trajectories on the interactive world map with various filters. It's also possible to analyze data with PostgreSQL queries.

Tech Stack

  • Postgresql (with PostGIS and MobilityDB)
  • Python (mainly GeoPandas)

Data Model

The data warehouse follows Kimball's star schema with the main table trajectory as fact connected to dimension tables. Trajectory Data Warehouse

Fact constellation schema would allow more in-depth analysis, but conducted tests have shown that the star schema performs much better and provides sufficient analytic possibilities. performance comparison

Data Sources

mobility data:

context data:

Visualization

Interactive map created with Kepler GL:

https://kepler.gl/demo/map?mapUrl=https://dl.dropboxusercontent.com/scl/fi/aaip593aum12ozjn43l3r/keplergl_rydemw.json?rlkey=6jdtlipmwsqflbomj5hj5upbn&dl=0

(after clicking on the link don't close 'Add data to map' panel but wait a bit for data to load)

Usage examples:

trajectory district