Skip to main content

detect_trips

Function detect_trips 

Source
pub fn detect_trips(
    conn: &Connection,
    home: Option<&(String, String, f64, f64)>,
) -> Vec<DetectedSuggestion>
Expand description

Detect complete journeys rather than independent city visits.

A trip starts when the timeline leaves the inferred home city and ends on a return home or a long gap. A short quiet stretch may remain connected when the same people appear on both sides. City changes inside that interval become ordered stops, so a two-week Jaipur -> Jodhpur -> Udaipur journey is proposed as one album. Once the dated envelope is known, photos without GPS are included as well.