Skip to content

bz247/sf_abm_vis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sf_abm_vis

  • Visualisation of the shortest path between origin-destination (OD) pairs
  • Modification of the road network through screen clicking and visualising the new path based on the modified network

Preparation

  • Install python3 and required packages through, e.g., pip3 install flask
  • Install python-igraph. If you are using Mac, you can follow this SO link
  • Get an access token from Mapbox and set environment variable in the terminal with export MapboxAccessToken=[your access token]

Running

  • Start with the server python3 server.py
  • Open a browser window and navigate to 127.0.0.1:5000. It may take 1-2 seconds for the shortest paths in undisturbed network to show
  • Click on any point on the map (preferrably near an exisiting path) to simulate a local disruption. New paths will be calculated in the server and visualised in the browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published