Closed swiss-knight closed 4 years ago
Please report an URL or at least your search parameters, where this problem exists. Thanks!
Yes, here are some randomly picked, I hope it can help;
...
I initially thought this data was coming directly from timetable.search.ch but I've noticed now that it's actually a calculated property, see also #169:
It looks like it ends up with -1 if the connection is only a walk. I think adding this should solve the problem:
$obj->transfers = max($numberOfVehicles - 1, 0);
Fixed, thanks for reporting it! ☺️
Hi,
I'm trying to learn how to to use the Transport API, but I see strange data such as this
-1
for the number of transfer for a small bus journey:What does this mean? To me, a 0 transfer journey is a single trip with a single vehicle. 1 transfer means you have to change to take a second vehicle during the journey, and so one.
Does
-1
means you don't have to take any vehicle because nothing is available and you must go by your own means, e.g. by foot basically?Thanks.