Skip to content

jens-ox/fog-of-war

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fog of war

Screenshot

Convert data from different sources to a fog of war-style map. It generates four layers:

  • Points: all points from your sources, rounded to 10m and deduplicated.
  • 50m radius circles: draws a circle with 50m radius around all points and dissolves them. Holes with a surface smaller than a circle with 50m radius are removed.
  • 500m radius circles: same as the 50m circles.
  • Heatmap: non-deduplicated points rendered as a heatmap.

Data

Currently supported:

  • Strava (.gpx, .gpx.gz, .fit.gz)
  • Google Timeline (location-history.json)

Usage

First, prepare the data:

  1. Collect all data and put it in the data directory.
  2. Install tippecanoe (e.g. brew install tippecanoe).
  3. Clone the repo.
  4. Run cargo run -r.

Second, render the data. Inside the ui directory, do:

  1. bun install
  2. bun run dev

You should now be able to see an interactive map on http://localhost:5173.

About

Generate a fog of war map based on timeline and activity data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors