Closed PaulIvanov closed 3 years ago
@fpurcell
Hey Paul,
Talked to @binh-dam-ibigroup ... we're not sure an existing utility exists that addresses your need. The otp-rr code, as far as we know, is simply using the human readable mode strings from the config.
So not sure we've got a ready solution. That said, if you can point us toward the otp-rr code you're thinking about, please do.
Take care, Frank
I've picked up the baton on the work in trimet.org that prompted this issue and was able to use the itinerary
module in core-utils
to put together something that isn't overly complicated works pretty well, so going to go a head and close this
Currently the OTP Settings Panel has the ability to convert modes from the config into buttons with human readable labels, It would be great to be able to utilize that logic as a utility function for other places in the application as well.
inputting
MICROMOBILITY_RENT
into the function will returnTransit + E-Scooter
inputtingBICYCLE
will returnBike Only
when no transit options are chosen. Will returnTransit + Bike
when transit options are chosen.If there are only transitModes in the selected List, return
Transit
I attempted to build a somewhat working version of this but it doesnt handle all edges very well