Your phone can tell you how fast the train is going
Your iPhone has GPS built in. A GPS speedometer app works out your speed from how your position changes, so on a commuter train or a high-speed train you can see your current speed just by riding. Nothing needs to be attached to the train.
Sit by the window
GPS works by receiving signals from satellites. The roof and walls of a train car block a lot of that signal, so the reading is steadiest if you:
- take a window seat if you can
- hold the phone toward the window, or rest it on the window-side tray
On some trains the window glass itself weakens the signal, even right next to it.
Tunnels and underground sections
In tunnels, underground stations and on subways, the satellite signal doesn't reach you. The number freezes, or jumps once you're back outside. A few seconds to a few tens of seconds after the tunnel, it settles again. On lines that run underground for long stretches, you won't get a reading there. More on this in how accurate GPS speed is.
Want the top speed? Start before you leave
Many apps also show the top speed, the average speed and the distance while you measure. Start measuring before the train leaves the station and you'll see the trip's top speed when you arrive. Rail operators publish the maximum speed for each line, so you can compare it with what you measured.
Battery, and the people around you
The screen stays on while you measure, and GPS keeps running, so the battery drains faster than usual. On a long trip, start with a full charge or bring a power bank. Keep the sound off so you don't bother anyone.
GPS speed is a guide
Treat the number as an estimate. Even under open sky, phone GPS is off by a few metres, so it won't always match the speed the railway announces. It isn't the train's own speedometer. Enjoy it as a number for fun.