Position from gyro and accel

Hi I want to know the position of an object.
I know how to get gyro and accel from OSC in CHOP through zig sim installed in a smartphone but is there any way to get or calculate the position?