The INS measures accelerations North/South and accelerations East/West which go through two integrations to give distance travelled North/South and East/West.   From initial position and distances travelled North/South and East/West it computes present position and from change of position it computes track and ground speed.