A closer look at Doppler shift
Relative motion along the line of sight changes the observed wavelengths of light.
At ordinary stellar speeds, the fractional wavelength shift gives a direct measure of radial speed once the laboratory wavelength is known.
A line normally at 500.0 nanometers seen at 500.5 nanometers implies recession of about 300 kilometers per second in the low-speed approximation. Radial velocity is the part of a source’s motion directed along the line of sight.
OpenStax · Astronomy 2e · 5.6 The Doppler Effect · Using the Doppler Shift to Find Exoplanets · NASA · Doppler Shift of a Star's Spectrum
Want to learn more about Doppler shift? Doppler effect on Wikipedia.

