add minimum score to consider a way valid (#292)

This commit is contained in:
Willem Melching
2019-05-06 21:16:38 +02:00
parent c04ca640bf
commit aa482a199a
+4
View File
@@ -192,6 +192,10 @@ class Way:
closest_way = way
best_score = score
# Normal score is < 5
if best_score > 50:
return None
return closest_way
def __str__(self):