Skip to content

Store and display Waze alerts on a Heatmap (SQLite, OpenStreetMap)

Notifications You must be signed in to change notification settings

Cxmrykk/Waze-Heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Waze Heatmap

Figure 1: Police reports in Sydney, Australia

Dependencies

Server (Rust/Cargo)

  • Diesel (Dependencies required, see below)

By default diesel CLI depends on the following client libraries:

  • libpq for the PostgreSQL backend
  • libmysqlclient for the Mysql backend
  • libsqlite3 for the SQLite backend

Installation

# Clone the project directory
git clone https://github.com/Cxmrykk/Waze-Heatmap.git
cd Waze-Heatmap/

Server

# Run Diesel setup (Make sure cargo is in $PATH for Diesel to work)
cd server/
cargo install diesel_cli
diesel setup

# Modify Config.toml (Alternative editors: nano, code, etc)
vim Config.toml
cd ../ # Exit server directory

Client

cd client/
npm install
cd ../ # Exit client directory

Execution (Using screen)

#!/bin/bash
export HEATPATH=/path/to/project/source
screen -dmS heatmap-client bash -c 'cd $HEATPATH/client && exec node server.js'
screen -dmS heatmap-server bash -c 'cd $HEATPATH/server && exec cargo run'

Configuration (Config.toml)

  • Alert: POLICE by default (Inspect element on waze.com and reverse engineer the geolocation API response in the network tab)
  • Top/Bottom: Longitude range (South)
  • Left/Right: Latitude range (East)
alert = "POLICE"
interval = 1200
top = -10.683
bottom = -43.633
left = 113.15
right = 153.633

About

Store and display Waze alerts on a Heatmap (SQLite, OpenStreetMap)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published