AR Heat Map

How do I trace a map on the floor as the user walks through their house, like a trail or heatmap, and then save this trail to CoreData

Would it be possible to load and view this map later in the same spot? Or rescan the trail in the same area?