Developed as part of the CITWIN research project, this Python-based API implements a computational pipeline for the accessibility analysis of public transport stops. The framework combines origin–destination data with NetAScore bikeability and walkability indices to assess and quantify active mobility accessibility in urban environments.
Run the API locally (.env.local)
python main.pyRun the API with Docker (.env.docker)
docker compose up --builddocker compose down --volumesDeploy: clone / pull repository to project directory, configure nginx, start the API in a Docker container (.env.deploy.*)
sh deploy.sh prodsh deploy.sh stagingsh deploy.sh devUndeploy: stop and remove containers, delete project directory, unconfigure nginx
sh undeploy.sh prodsh undeploy.sh stagingsh undeploy.sh devLocal (.env.local)
python tests/test_run_pipeline_access.pypython tests/test_run_pipeline_access.py --upload-netascoreLocal (.env.local)
python tests/test_api_pipeline_access.py --base-url http://localhost:8000 --no-downloadpython tests/test_api_pipeline_access.py --base-url http://localhost:8000 --no-download --upload-netascoreRemote – Production (.env.local)
python tests/test_api_pipeline_access.py --base-url http://zgis228.geo.sbg.ac.at/api/citwin-prod --no-downloadpython tests/test_api_pipeline_access.py --base-url http://zgis228.geo.sbg.ac.at/api/citwin-prod --no-download --upload-netascoreRemote – Staging (.env.local)
python tests/test_api_pipeline_access.py --base-url http://zgis228.geo.sbg.ac.at/api/citwin-staging --no-downloadpython tests/test_api_pipeline_access.py --base-url http://zgis228.geo.sbg.ac.at/api/citwin-staging --no-download --upload-netascoreRemote – Development (.env.local)
python tests/test_api_pipeline_access.py --base-url http://zgis228.geo.sbg.ac.at/api/citwin-dev --no-downloadpython tests/test_api_pipeline_access.py --base-url http://zgis228.geo.sbg.ac.at/api/citwin-dev --no-download --upload-netascore