fix zooming in map matcher

This commit is contained in:
Alex Bezdieniezhnykh
2025-07-08 19:33:22 +03:00
parent 6229ca8a03
commit 938fd36aec
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ public class Constants
public static readonly GpsDeniedConfig DefaultGpsDeniedConfig = new()
{
MinKeyPoints = 15
MinKeyPoints = 11
};
# endregion
+2 -2
View File
@@ -24,7 +24,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient,
private readonly DirectoriesConfig _dirConfig = dirConfig.Value;
private const int ZOOM_LEVEL = 18;
private const int POINTS_COUNT = 10;
private const int DISTANCE_BETWEEN_POINTS_M = 120;
private const int DISTANCE_BETWEEN_POINTS_M = 140;
private const double SATELLITE_RADIUS_M = DISTANCE_BETWEEN_POINTS_M * (POINTS_COUNT + 1);
private const int MAX_AVG_POINTS = 2;
@@ -88,7 +88,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient,
_currentIndex = _currentRouteImages[result.Image];
_currentRouteImages.Remove(result.Image);
if (result.KeyPoints > gpsDeniedConfig.Value.MinKeyPoints)
if (result.KeyPoints >= gpsDeniedConfig.Value.MinKeyPoints)
{
var direction = _lastGeoPoint.DirectionTo(result.GeoPoint);
_directions.Enqueue(direction);