GPS Speedometer: How It Measures Real-Time Speed
A GPS speedometer uses satellite positioning data to calculate how fast something is moving. Unlike wheel-sensor speedometers, a GPS speedometer works for any vehicle — train, car, bus, or boat — with no physical connection to the vehicle's drivetrain.
How GPS Speed Measurement Works
Position-Based Speed (Haversine Method)
GPS receivers report latitude and longitude at regular intervals (typically once per second). By comparing two consecutive positions, the distance between them can be calculated using the Haversine formula — which accounts for the curvature of the Earth's surface.
Dividing this distance by the elapsed time gives speed in metres per second, which is then converted to whatever unit the user prefers (km/h, mph, m/s, or knots).
Doppler-Based Speed
Modern GPS chipsets also measure velocity by analysing the Doppler shift of satellite signals. This method is faster-updating and more accurate at high speeds than position-based calculation. Most smartphone GPS chipsets report Doppler velocity through the browser Geolocation API as coords.speed. TrainSpeedTest.net uses this value when available.
Signal Filtering
Raw GPS data is noisy. Buildings, trees, and atmospheric conditions all affect signal quality. A well-designed GPS speedometer applies filtering to smooth noise while preserving genuine speed changes. TrainSpeedTest.net uses exponential moving average (EMA) smoothing with acceleration limiting and accuracy-based sample rejection.
GPS Speedometer vs Traditional Speedometer
| Feature | GPS Speedometer | Mechanical/Electronic Speedometer |
|---|---|---|
| Works in tunnels | No | Yes |
| Works without vehicle connection | Yes | No |
| Reports heading and altitude | Yes | No |
| Accuracy at high speed | ±1–5 km/h typical | ±1–2% typically |
| Affected by signal conditions | Yes | No |
Try the GPS Speedometer
Start a speed test to see a GPS speedometer in action. Choose from 12 design styles and track your journey in real time.
Related: How It Works · GPS Accuracy · Speed Calculator