Motivos:
- Alguien me llamó el otro día acerca de mi modelo para lograr un óptimo equilibrio de carga para los sistemas de bicicletas públicas como Bicing, casi gratis, sin emisiones, y creando ingresos para los más pobres.
- Otra persona se quejó de que nunca hay bicis en la estación de Torrent de les Flors, y yo quería saber más.
- Me interesaba mirar que pasaría con Google Spreadsheets al acercarse a su límite de 200,000 celdas.
En teoría esta tabla (rollover filas para número/hora) se actualizará cada 6 minutos con nuevos datos de Citybik.es durante poco más de un año. Sería sencillo poner todas las estaciones y unos gráficos bonitos, pero hoy quedan asuntos importantes de pizza y pelota para resolver.
Update
Google Spreadsheets + Zend broke down after only a few thousand iterations, so I restarted using a text file, which for the period of a year with a 6-minute sampling frequency gave a mean availability of 3.46 bikes and a 34.36% probability of finding no bikes at all.
Similar posts
Back soon
You don’t mention that if there is one bike left it is usually broken. If you actually go and check I think you’ll find that global availability of at least one functional bike is probably less than 50%.
Jaja they will put more bicicyles there when they hear this!
@ANun: You also can’t take out bikes between 2 and 5, so the relatively high availability then skews the real overall picture.
@Dude I’ll do something sometime to track that.
Haha, that didn’t take very long – the write script using Zend runs out of memory at 3668 rows or around 200kB spreadsheet size
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 30720 bytes) in /home/oreneta/ZendGdata/library/Zend/Validate/Hostname/Com.php on line 96
Ha ha, the bastards changed the station ID from 221 to 227. It’ll show up when I do some proper diachronic charting, meanwhile 227 is now the number followed.