1. A method comprising: identifying a plurality of sets of metadata associated with a plurality of photos, at least one set of metadata being associated with a respective one of the plurality of photos and including at least geographical information related to a location where the respective photo was captured; and determining, by using a processor, photo trip patterns from the plurality of photos based at least in part on the plurality of sets of metadata, at least one photo trip pattern being representative of a set of visited locations and associated transition times, in which the set of visited locations is segmented into different trips based on a calculated gap between events, the gap between events being calculated according to a function of a transition time gap between consecutive locations, a location gap between consecutive locations, and a parameter to balance an effect on the gap between events attributable to the transition time gap and an effect on the gap between events attributable to the location gap, such that: a first value of the parameter results in a first calculated gap between events; a second value of the parameter value, different from the first value of the parameter, results in a second calculated gap between events, different from the first calculated gap between events; the calculated gap between events represents no change of trips when the calculated gap between events is less than a threshold value; and the calculated gap between events represents a change of trips when the calculated gap between events is greater than a threshold value.