Skip to content

rafapolo/swissviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwissViz

Interactive map of Swiss companies built with Open Data



Data & Pipeline

  1. Download — company data fetched from opendata.swiss, one CSV per canton (26 total)
  2. Geocodescripts/geocode.py queries the Mapbox Geocoding API, building each query as "{street}, {postal_code} {locality}, Switzerland"; a local cache (geocode_cache.json) makes runs resumable; rate and mode are controlled via flags (--sleep, --append, --canton, …)
  3. Chunk & compress — geocoded rows serialised to JSON arrays and gzip-compressed into numbered chunks; a <CANTON>.json metadata file records the chunk count ({"_chunks": N})
  4. Render — static files only, no backend; browser fetches chunks on demand, decompresses with pako, and renders with deck.gl on a MapLibre GL basemap using CartoDB Dark Matter tiles (OSM data, no token required)

About

Interactive map of all Swiss companies

Resources

Stars

Watchers

Forks

Contributors