fix extra_seconds on no waytype
This commit is contained in:
parent
90bd98c0fa
commit
303729a5e5
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ class RouterWayType:
|
||||||
duration = edge.distance / (float(self.speed_up if self.src else 1) * walk_factor)
|
duration = edge.distance / (float(self.speed_up if self.src else 1) * walk_factor)
|
||||||
else:
|
else:
|
||||||
duration = edge.distance / (float(self.speed if self.src else 1) * walk_factor)
|
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
|
return duration
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue