resPositions function

Find the location where the tag spent most time per day