Accelerometer to measure speed

Those are a couple of the reasons it won't work, but there are other errors that are more serious, like the failure to correctly subtract out the acceleration due to gravity.

A GPS module would work very well, and have other uses too. That is a fine idea.