News for hackers. Stuff that matters.
Re:Live map of SF MUNI by Florin_Andrei on Wednesday April 17, 2013 @02:02PM (#5565965)
Awesome!

Now, nitpicking: When the badges move, the speed is not realistic. Of course, that's only natural, because it's just an update to its new position, it's not actual motion. But it's still jarring to see buses zooming across 3 blocks in 5 seconds. :)

Would it be possible to visualize the position update in a different way, to better suggest it's just a position update, not actual motion? I'm thinking, leave the badge in its old place temporarily, make a new badge that moves quickly to the new place, and leave a faint low-contrast or transparent "trail" connecting the two. Once the new badge is in the updated position, remove the old badge and the trail.

Basically, the whole transition should be much quicker, and clearly indicate it's an update, not actual motion.

Re:Live map of SF MUNI by luiperd on Wednesday April 17, 2013 @02:04PM (#5565984)
"But it's still jarring to see buses zooming across 3 blocks in 5 seconds."

Not far from reality with some of the bus drivers in this city.

Re:Live map of SF MUNI by chockablock on Wednesday April 17, 2013 @06:58PM (#5567878)
Related weirdness--if you leave the tab running in the background and then return to it, all the icons drift from their position when the tab was backgrounded to their latest locations. Kind of reminds me of turning on the light in the kitchen and seeing cockroaches running for cover.

It can take 10-30 seconds for the map to catch up, and in the meantime the map is not very useful.

Maybe test for how out-of-date the map is and do a 'hard refresh' of position.

Re:Live map of SF MUNI by t413 on Wednesday April 17, 2013 @02:12PM (#5566031)
Replicate the functionality of transloc (try ncsu.transloc.com) and it'll be golden. Filtering routes and visible route paths!
Re:Live map of SF MUNI by dsl on Wednesday April 17, 2013 @05:13PM (#5567298)
This is called dead reckoning[1]. Given the previous two locations you can tell the speed. Since you know the route the bus will take, you just plot it where it would be if it never stopped moving since the last update. It's pretty close 90% of the time.

1. http://en.wikipedia.org/wiki/Dead_reckoning

Re:Live map of SF MUNI by w-ll on Thursday April 18, 2013 @12:33AM (#5568906)
I'm not sure if the're using dead reckoning. I just saw one turn. To me this looks more like gps.

Also, Go Wolf Pack!

Re:Live map of SF MUNI by dsl on Thursday April 18, 2013 @01:25PM (#5571856)
As I said, if it is something like a bus where the route is known, dead reckoning is still effective.

Even with GPS you usually only get location updates every few seconds, DR fills in the "smoothness" between updates.