GPS

GPS receivers use global positioning satellites to fix the camera’s location and embed this in the photo’s metadata. You can look this up later and many programs can show the location the photo was taken on a map. Only a few cameras have GPS built in, but it’s standard on smartphones.