This commit is contained in:
Siarhei Fedartsou 2024-05-28 13:38:43 +02:00
parent c2c0fb2dbb
commit e13eddbae2

View File

@ -32,7 +32,7 @@ class OSRMTasks(TaskSet):
@task
def get_table(self):
num_coords = random.randint(3, 50)
num_coords = random.randint(3, 100)
selected_coords = random.sample(self.coordinates, num_coords)
coords_str = ";".join([f"{coord[1]:.6f},{coord[0]:.6f}" for coord in selected_coords])
@ -40,7 +40,7 @@ class OSRMTasks(TaskSet):
@task
def get_match(self):
num_coords = random.randint(20, 50)
num_coords = random.randint(50, 100)
track_id = random.choice(self.track_ids)
track_coords = self.tracks[track_id][:num_coords]
coords_str = ";".join([f"{coord[1]:.6f},{coord[0]:.6f}" for coord in track_coords])