Real-time UK Bus Data Ruby Gem
github.com
github.com
From what I've been told they don't provide this data because they don't want people to figure out how late their services run, and that information could also be used by local councils to do performance analysis (since local council subsidies their services massively, making competition impossible, assuming competition could get a licence at all).
Basically the local bus company acts in a selfish way and we all get to stand in the rain for an extra ten minutes as a direct result of that.
Either way, the local council could have forced them to.
What are the ethics surrounding scraping unsuspecting websites, these days? Have you seen the proper TfL APIs? (http://www.tfl.gov.uk/assets/downloads/businessandpartners/t...)
One thing to note, is that I can't see whether the Gem handles the source being 403/404'd for example, is that something that is handled by the source?
And it was great reading the code, I'm new to Ruby and currently writing my first Gem, it looks like a highly viable route for bus tracking (no pun intended!), very pretty code!
http://www.tfl.gov.uk/businessandpartners/syndication/defaul...
No they would not. They will give the data to anyone. They didn't even want my name before they gave me test access of up to 1000 API hits a day (which would be sufficient for the personal usage you describe). The data itself is provided under the open government licence which allows you to do pretty much anything you want with it. As far as I can tell, there are no restrictions beyond this on what applications are allowed to use the API. Really, you should email them and ask them. I got a very quick response.