fix extra_seconds on no waytype

This commit is contained in:
Laura Klünder 2017-12-17 01:45:49 +01:00
parent 90bd98c0fa
commit 303729a5e5

View file

@ -548,7 +548,7 @@ class RouterWayType:
duration = edge.distance / (float(self.speed_up if self.src else 1) * walk_factor)
else:
duration = edge.distance / (float(self.speed if self.src else 1) * walk_factor)
duration += self.extra_seconds
duration += self.extra_seconds if self.src else 0
return duration