This commit is contained in:
zakhy 2025-03-18 14:18:44 +07:00
parent b9bb025012
commit 1c1d7a9f55

View File

@ -16,7 +16,7 @@ def get_realistic_coords(center_coords: tuple, current_coords: tuple = None,
direction = random.uniform(0, 2 * 3.14159)
speed_degrees = current_speed * DEGREES_PER_KM * (
speed_degrees = float(current_speed) * DEGREES_PER_KM * (
30 / 3600)
lat_offset = speed_degrees * random.uniform(0.8, 1.2) * math.cos(
direction)