
org.opentripplanner.gtfs.mapping.WheelchairAccessibilityMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.gtfs.mapping;
import org.opentripplanner.transit.model.basic.Accessibility;
public class WheelchairAccessibilityMapper {
static Accessibility map(int gtfsCode) {
return switch (gtfsCode) {
case 0 -> Accessibility.NO_INFORMATION;
case 1 -> Accessibility.POSSIBLE;
case 2 -> Accessibility.NOT_POSSIBLE;
default -> throw new IllegalArgumentException(
"Unknown GTFS WheelChairBoardingType: " + gtfsCode
);
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy