Skip to content

drwoj/mobility_data_warehouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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