News for hackers. Stuff that matters.
Re:Real-time UK Bus Data Ruby Gem by csmattryder on Sunday May 19, 2013 @10:48AM (#5732974)
This looks pretty neat, could see some good applications being built with this over the Google Maps API!

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!

Re:Real-time UK Bus Data Ruby Gem by dave1010uk on Sunday May 19, 2013 @11:35AM (#5733137)
http://transportapi.com/ has real time public transport data available everywhere it's provided in the UK, with a much simpler API than other sources (eg SIRI XML feeds from network operators).
Re:Real-time UK Bus Data Ruby Gem by maxehmookau on Sunday May 19, 2013 @11:53AM (#5733202)
Which is awesome. Except if you want to hack on the code yourself. Plus there's a cost involved.
Re:Real-time UK Bus Data Ruby Gem by maxehmookau on Sunday May 19, 2013 @10:50AM (#5732980)
Currently not no. The data is scraped from a site and not read from a nicely formatted API. This is definitely a todo though. Add an issue or better yet, add a pull request :)
Re:Real-time UK Bus Data Ruby Gem by blocking_io on Sunday May 19, 2013 @01:26PM (#5733601)
You should use the official API.

http://travelinedata.org.uk/nextbuses.htm

Re:Real-time UK Bus Data Ruby Gem by coob on Sunday May 19, 2013 @11:01AM (#5733018)
Re:Real-time UK Bus Data Ruby Gem by maxehmookau on Sunday May 19, 2013 @11:15AM (#5733054)
Only for London. While that may appeal to many people, most people in the UK don't live in TFL's area. Traveline are much harder to get API data out of.
Re:Real-time UK Bus Data Ruby Gem by blocking_io on Sunday May 19, 2013 @01:15PM (#5733543)
You can email them to ask for a test API key up to 1000 hits a day. If you sign a contract you can use 180,000 API hits every six month period for free. Beyond that there is a cost of £1.50 per 1000 API hits.