diff --git a/CHANGELOG.md b/CHANGELOG.md index 5315fb1e..0f059a19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [0.12.0] — 2024-08-25 -The visit suggestion release. +### The visit suggestion release 1. With this release deployment, data migration will work, starting visits suggestion process for all users. 2. After initial visit suggestion process, new suggestions will be calculated every 24 hours, based on points for last 24 hours. diff --git a/app/services/visits/prepare.rb b/app/services/visits/prepare.rb index f22aa44e..21f8f753 100644 --- a/app/services/visits/prepare.rb +++ b/app/services/visits/prepare.rb @@ -29,7 +29,7 @@ class Visits::Prepare def calculate_radius(center_point, group) max_distance = group.map { |point| center_point.distance_to(point) }.max - max_distance.to_f.ceil + (max_distance / 10.0).ceil * 10 end def prepare_day_result(grouped_points)