Accelerometer to track relative position in space

An accelerometer can't tell the difference between sitting upright on the surface and upside-down in the air accelerating toward the earth at 2 g's. To get a position you will need to know the orientation of the accelerometer relative to the local gravity vector and the exact magnitude of the gravity vector so you can null it out. Otherwise your calculations are going to be showing your accelerometer accelerating toward the center of the earth at 1 g.