Commit graph

11 commits

Author SHA1 Message Date
Eugene Burmakin
88ae7c43c6 Adjust calculate_duration_in_minutes to only count continuous presence within cities, excluding long gaps. 2026-01-04 17:12:39 +01:00
Evgenii Burmakin
9e933aff9c
Fix/stats cache invalidation (#2072)
* Fix family layer toggle in Map v2 settings for non-selfhosted env

* Invalidate cache

* Remove comments

* Remove comment
2025-12-27 13:33:54 +01:00
Evgenii Burmakin
1c9843dde7
Consider MIN_MINUTES_SPENT_IN_CITY during stats calculation (#2018)
* Consider MIN_MINUTES_SPENT_IN_CITY during stats calculation

* Remove raw data from visited cities api endpoint
2025-12-08 21:38:56 +01:00
Eugene Burmakin
f1720b859b Store distance in meters in the database and convert to user's preferred unit on the fly. 2025-07-08 18:10:10 +02:00
Eugene Burmakin
15be46b604 Fix tests 2025-07-04 20:55:05 +02:00
Eugene Burmakin
605ceee820 Add modal to show countries and cities visited in a year 2025-05-18 00:15:25 +02:00
Eugene Burmakin
15b20fd2c3 Fix spec 2025-05-17 22:12:35 +02:00
Eugene Burmakin
06aee05602 Move distance unit settings to user settings 2025-05-17 20:35:38 +02:00
Eugene Burmakin
4fa3c35fb8 Calculate distance using PostGIS ST_Distance with LAG 2025-02-22 00:02:13 +01:00
Eugene Burmakin
d9eac91834 Introduce latlon to Points and use it instead of latitude and longitude. 2025-02-21 23:45:36 +01:00
Eugene Burmakin
b7e4a017b8 Calculate only necessary stats 2024-12-06 16:52:36 +01:00
Renamed from spec/services/stats/calculate_spec.rb (Browse further)