The iPhone has a pretty decent motion sensor.

So why can't it figure out that it's not a good idea to try to connect automatically to the university wifi when I'm on a bus?