Open Maps > Tap profile icon > Visited Places > Turn off the toggle. This will stop future logging and delete existing data.