You'd replace the speedometer gear in the transmission with a sending unit. Autometer and a number of other companies sell them. Big advantage of an electric speedometer is that it's very easily calibrated with just a bit of button pushing!