Yes, your iPhone knows everywhere you have been!
There is a hidden map in your iPhone that track every single details of the places you have been.
This map traces the timing also.
According to apple, this data only belongs to your phone.
If you have not found it already, check this steps to find it!
GO TO YOUR SETTINGS AND CLICK ON PRIVACY
CLICK ”LOCATION SERVICES”, AND SCROLL DOWN TO ”SYSTEM SERVICES”
SCROLL DOWN AGAIN AND CLICK ON ”FREQUENT LOCATIONS”
YOU CAN TOGGLE THIS FEATURE ON AND OFF
CLICK ON A CITY TO OPEN THE MAP WHICH LIST YOUR RECENT VISITED PLACES
CLICK ON LOCATIONS TO KNOW MORE ABOUT THE TRAVEL DETAILS
ITS PRETTY ACCURATE AND MIGHT SEEM A LITTLE BIT CREEPY
BUT YOU CAN ALWAYS OFF AND DELETE YOUR HISTORY