Taking user speed

Hello everyone, I wanna take user speed in km. How can I take ?

Taking user speed
 
 
Q