There is a large exception to this rule: Smartphones. The process for adding the geolocation data either requires specialized add on hardware, or post processing with software on the desktop after the pictures are taken. However, most modern digital cameras do not automatically add geolocation (Latitude and Longitude) metadata to pictures. Want to remember exactly where you took those photographs while on vacation? This information is for you. This data is stored inside if the metadata is JPEG images and is useful for tying the photograph to a location.
The storage of location based data, in the form of Latitude and Longitude inside of images is called Geotagging essentially tagging your photograph with the geographic location.