In more detail
Phones usually write GPS coordinates into the EXIF of every photo unless location tagging is switched off. Coordinates are stored as degrees, minutes and seconds and can pin a picture to within metres. Shared files that keep their geotag can reveal where someone lives, works or travels.