Use sensor.average_active_pace to measure driving speed?

Is this a stupid way of measuring driving speed? If its possible?

Better solution?