-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi all, how are you? There's a OpenStreetMap meetup in Glasgow this Tuesday 17th Feb - 7pm at the Saramago Bar, CCA arts centre, Sauciehall Street.
Be great if you can make it.
Also hope you can make the next cyclehack event in Glasgow: June 19-21st 2015
I've been working on some things, namely a package in R which rates bicycle infrastructure from data taken from openstreetmap. This a more formalised version of the code I used in the cyclehack. But I've hosted the code on 'Open CPU' which means you don't need to know R to use it, you can call the functions or data when you need them as a web service e.g. https://fozy81.ocpu.io/bikr/data/scotlandAmsterdam/csv - this is the raw data
or use the R function from the terminal using curl: curl https://fozy81.ocpu.io/bikr/R/bicycleStatus/json -d "x=scotlandAmsterdam" - this takes the raw data and rates it against cycle infrastructure in Amsterdam
You can read the documentation in your web browser too:
https://fozy81.ocpu.io/bikr/man/bicycleStatus/text
or using the https://www.opencpu.org/jslib.html javascript library.
The openstreetmap data is now held in a database rather than as xml. It's on my local machine, but hopefully get access to proper server soon. Creating the raw data takes about 20mins. So I think this will always need to be pre-calculated (daily or hourly etc).
So the general idea is make the underlying stats and functions available to any website that wants to make use of them. It's all still under development and not pinned down yet, but be really good to talk to you all about the best way to engineer this.
But just for demo (and helping me test out things). I've created this website:
https://opendata.shinyapps.io/shinyapp/
But this is crappy demo, but I'm hoping we can pull in the stats into an updated VeloScape website along with MSP contact details, postcode lookup etc...
But we could also aim to go global...be interesting to see if we can rate all the countries in the world for their cycle infrastructure...
Cheers,
Tim