App to measure path smoothness

Want top create an app that collects accelerometer data from a bike computer like the Edge 1030 Plus.  The 1030 gives a rating to a ride called grit.  I want to collect data from multi use paved trails in our community to give the trail segments ratings and identify particularly bad spots.  The data will be very specific to bike ridden, tire pressure, speed.  The 1030 knows the speed, and can listen to tire pressure sensors, so as long as a person rides the same bike, it should be possible.  Data output could be different colors in Garmin Connect.