How lyesprojet/veliboptim works
This is a Python command-line generator for an interactive map of Vélib’ stations and their Delaunay neighborhood network. The workflow loads the station snapshot, computes graph links and station-spacing metrics, then generates an HTML map for a browser. The README documents clustering and selectable map backgrounds; the excerpts show map-layer, popup, and interface code, but omit some implementation details, so uncertain internal wiring is left out.
Main entry points: carte.py Generation workflow · maCarte.html Generated map · station_information.json Station snapshot
Components 17
Network analysis
- Generation workflow
carte.py - Station snapshot
station_information.json - Station loader
carte.py - SciPy Delaunay
- Adjacency graph
carte.py - Link distances
carte.py - Spacing index
carte.py
Map presentation
- Map assembly
carte.py - Colored links
carte.py - Clustered stations
carte.py - Station popups
carte.py - Map backgrounds
carte.py - Legend and panel
carte.py
Map output
- Generated map
maCarte.html
Other components
- Script operator
- Esri map tiles
- Map viewer
Connections 18
- Script operator → Generation workflow: runs
- Generation workflow → Station loader: calls
- Station loader → Station snapshot: reads
- Station loader → Generation workflow: returns stations
- Generation workflow → SciPy Delaunay: triangulates
- Generation workflow → Adjacency graph: builds
- Adjacency graph → Generation workflow: returns neighbors
- Generation workflow → Link distances: calculates links
- Generation workflow → Spacing index: calculates indices
- Generation workflow → Map assembly: creates map
- Map assembly → Colored links: adds links
- Map assembly → Clustered stations: adds stations
- Clustered stations → Station popups: creates popup content
- Map assembly → Map backgrounds: adds backgrounds
- Map backgrounds → Esri map tiles: requests tiles
- Map assembly → Legend and panel: adds interface
- Map assembly → Generated map: generates
- Generated map → Map viewer: opens in