News for hackers. Stuff that matters.
Re:Show HN: Twin Cities Transit "Where's My Bus?" by Bluem00 on Thursday June 21, 2012 @01:48PM (#4143265)
Thanks for posting! I live in Minneapolis and rely on the bus system for transport. So far it's easier to use than the NextTrip website on my phone.

For my usual trip each day there are several buses that work for me, and what I was hoping for is a site that centers a map on my location (from my phone gps) and shows me all buses in my general vicinity. I would use this to select a route.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by pwenzel on Thursday June 21, 2012 @02:08PM (#4143368)
That's definitely something I've been thinking about. It adds another level of complexity though, so I'm taking my time with it.

Do I add some type of "sign-in" functionality to save bookmarks to a profile? Or just let people save bookmarks to a cookie? (by bookmarks, I mean stops)

Re:Show HN: Twin Cities Transit "Where's My Bus?" by godisdad on Thursday June 21, 2012 @02:38PM (#4143533)
While this is far from perfect, it's my attempt at doing geo-location: http://mtransit.herokuapp.com/geo

Ideally it'd plot on a Google Map all germane results.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by godisdad on Thursday June 21, 2012 @11:37AM (#4142504)
I've made a similar app with slightly different navigation using the same Nextrip API: http://mtransit.herokuapp.com/schedule/17900

I need to tweak my full-text search and general layout. But your addition of maps is a nice touch. Adding the location of the stop with a separate icon may be a nice addition.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by pwenzel on Thursday June 21, 2012 @11:49AM (#4142571)
Nice to see what other developers are doing with the Nextrip API. I think the market for transit data is going to get pretty busy in the near future!

As an aside, stops are marked with a red marker icon, and buses with a bus icon. This is consistent with the regular "stop" map displayed by default on departure listings. The map icons need a little love, and I'm open to suggestions.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by godisdad on Thursday June 21, 2012 @11:59AM (#4142626)
Ah, I understand the map now. I'm bleary-eyed and missed that.

My grand vision was to do a comet-style app where you see the buses "move" towards your position/stop on a Google Map -- but I haven't been able to sit down and design that yet.

They've added a few more endpoints recently:

http://svc.metrotransit.org/NexTrip/help

Although, I am annoyed because:

NexTrip/{ROUTE}/{DIRECTION}/{STOP}

does not accept the same kind of IDs as the main endpoint 'NexTrip/{STOPID}' and also there are not valid {STOP} ids for every stop on a route.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by pwenzel on Thursday June 21, 2012 @12:16PM (#4142711)
It's true. I've also caught a stop ID with a space in it, which seemed kind of non-standard. It caused an error that I was able to fix.

Otherwise the API is a nice service. Previous versions of TCTransit relied on scraping. Dirty, but it still performed nicely.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by badhairday on Thursday June 21, 2012 @01:45PM (#4143241)
I wish Philadelphia provided easy access to real-time transit information. I think the city is finally starting to release that information publicly via APIs. Hopefully we'll have something soon.
Re:Show HN: Twin Cities Transit "Where's My Bus?" by bharad on Thursday June 21, 2012 @12:43PM (#4142854)
Very nice app. Nice UI. Just made me realize how much I miss Minneapolis.

Where do u get the data for location of the bus? Is there someway, I can zoom out on the map?

Re:Show HN: Twin Cities Transit "Where's My Bus?" by pwenzel on Thursday June 21, 2012 @01:16PM (#4143088)
Data comes from Metrotransit's API, updated at 30-second intervals.

Presently the maps are static images, as the site is designed first for mobile devices (desktop traffic represents less than 1% of my traffic).

I plan to have interactive maps for desktop users in the future.

You can click on the maps to see your stop in Google Maps, or the Google Maps app on your mobile device.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by mattee on Thursday June 21, 2012 @01:47PM (#4143258)
Nice. This is much better than Metrotransit's mobile website.
Re:Show HN: Twin Cities Transit "Where's My Bus?" by desigooner on Thursday June 21, 2012 @01:18PM (#4143097)
Nice effort.

I use nextbus.com here in Boston and used it back at school at Rutgers. While their mobile website is pretty nifty, the web UI needs quite some work.

Re:Show HN: Twin Cities Transit "Where's My Bus?" by rsanchez1 on Thursday June 21, 2012 @09:51PM (#4145054)
We have a really nice bus tracking system here in Gainesville. It is located here:

http://ufl.transloc.com/

The desktop website uses flash, but the mobile website uses Javascript. What's really nice is how it uses Google Maps and overlays bus positions in real time. The bus positions are accurate to within a few seconds, so I can decide exactly when to leave for the bus stop and which bus to take.