Closed tahini closed 3 weeks ago
We need to define what illimited is in the API and use that.
also it's a random number constant in the code, need to be defined as a "constant variable" if we keep this.
I have the impression that the python api expects an integer. If instead of 10000 I put None, I get this error: unsupported operand type(s) for *: 'NoneType' and 'int'
Actually, I think it's a legit value, in TrRouting, a negative value will ignore the parameter, but it's not documented anywhere as such... and python will transform this -1 to -60 (minutes to seconds), it feels weird, but it's legit, so I'll just have to deal with this in Transition (new calculation functions and parameter validation)
For the unsupported operand, it was because of the multiplication (max_travel_time_minutes * 60).
the library should probably have a bit more validation on its input.
fixes #35
The returned value is 10000 minutes, which is almost 7 days, enough to represent illimited wait in terms of transit.
Also fix typo in widget names Fisrst => First