Usually, it's not a good idea to calculate displacement by using accelerometer data because of many types of error that exist in acceleration signals. For a moving car, especially, GPS is the better option. But if you really need to use accelerometers, try to calibrate it first, and get velocity and displacement signals by integrating accelerations. You may need to do some signal processing to clean up your signals.