Skip to content

dcorreab/bike-correlations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bike-correlations

Calculates matrices of both correlations and distances between all pairs of bicycle hire stations (London and NYC). Distances are routed with routino, using the weightings for bicycle travel specified in /data/routino-profiles.xml. Routing requires an OSM File which is then converted with the routino planetsplitter command to make a bunch of .mem files with a designated prefix (here, lo or ny). If these files don't exist, then planetsplitter is called by getStDists.py.

Note that splitting a .osm.bz2 does not work, even through it is supposed to with routino.

getDists.py reads the station_latlons.txt file and calculates all inter-station distances. This takes a really long time! For example, London has ~750 stations, and if each routing takes ~2s (actually slightly faster), this amounts to 156 hours.

Correlations are based on ride data downloaded from repositories for the respective cities.

About

Calculates correlation matrix between all pairs of bicycle hire stations (London and NYC)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 49.8%
  • Python 28.9%
  • C++ 20.1%
  • Other 1.2%