mikhail and Paolo_Montero are correct here. By using spectroscopic analysis of the star after it’s been classified, and once such things as the absorption of light in space have been taken into account, you can easily work out it’s distance away. By working out the distance and then the speed of...