hafas-client icon indicating copy to clipboard operation
hafas-client copied to clipboard

journeys(): support multiple via points

Open yu-re-ka opened this issue 2 years ago • 3 comments

I don't know the api format needed for this, but it should be possible to enter multiple via points

yu-re-ka avatar Dec 24 '21 13:12 yu-re-ka

We could change the code to handle opt.via being an array. This is the current implementation:

https://github.com/public-transport/hafas-client/blob/9c10a1765fbc737c58b4bbed237a22394a0cf0fb/index.js#L144

derhuerst avatar Dec 24 '21 14:12 derhuerst

should multiple via points in an array handled as AND (the journey has to go through all via points) or OR (Journeys can go through either point)

fightforlife avatar Oct 03 '22 07:10 fightforlife

Note sure! Do we know if HAFAS supports both? Would be great if someone could investigate this!

derhuerst avatar Oct 05 '22 17:10 derhuerst