A GPS unit can usually also calculate its current speed. Cheap ones like in a mobile phone do this by comparing present position with recent position. Expensive ones like in an airliner use the Doppler effect and are very accurate.