Skip to main content

detect_home_city

Function detect_home_city 

Source
pub fn detect_home_city(
    conn: &Connection,
    override_city: Option<&str>,
) -> Option<(String, String, f64, f64)>
Expand description

Determine the user’s “home city” — the city with the most distinct photo-weeks. Returns (city, country, centroid_lat, centroid_lng) or None.