Urban Public Transport Analysis.
This repository hosts a Jupyter notebook along with all requisite libraries to conduct analyses similar to those showcased on the CityChrone platform. It also includes resources necessary to integrate new cities into the CityChrone platform.
Explore the demo notebook featuring an analysis for the city of Turin.
To utilize this repository, ensure you have the following installed:
For calculating the "Sociality Score", you'll need the city's population distribution. This data can be sourced from SEDAC or for Europe, from EUROSTAT. Our notebook automatically projects the population onto a specified tessellation, summing populations of overlapping sections proportionally to their overlapping areas. The population data must be stored in a MongoDB collection with each element being a Feature of geojson, containing a Polygon geometry in the "geometry" field, and the population value in a sub-field of the "properties" field.
jupyter-notebook
and open the public-transport-analysis notebook.city = 'Turin' # name of the city
urlMongoDb = "mongodb://localhost:27017/"; # URL of the MongoDB database
directoryGTFS = './gtfs/'+ city+ '/' # directory of the GTFS files
day = "20170607" # YYYYMMDD format [date validity of GTFS files]
dayName = "wednesday" # name of the corresponding day
If you utilize this repository for your research, please cite the following paper:
Biazzo Indaco, Monechi Bernardo, and Loreto Vittorio. "General scores for accessibility and inequality measures in urban areas." R. Soc. open sci.6 (2019): 190979. DOI: 10.1098/rsos.190979.