GPS is used in photography to record the latitude and longitude of the location when an image is taken. This GPS data can later be used to pinpoint the location on a map. Some cameras have a built-in GPS function, while others may have it available as an optional accessory.
GPS is stored as part of an images EXIF data that can be read by various software programs.