A Method for the Measurement of the Distance of Radio Stars