I need to calculate Speed with which the user is moving. So we need two things to calculate speed which are GPS and Accelerometer.
GPS
Accelerometer
An implementation, based on the GPS, is available at this link