All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.model.WheelChairBoarding Maven / Gradle / Ivy

package org.opentripplanner.model;

public enum WheelChairBoarding {
    NO_INFORMATION(0),
    POSSIBLE(1),
    NOT_POSSIBLE(2);

    WheelChairBoarding(int gtfsCode) {
        this.gtfsCode = gtfsCode;
    }

    public final int gtfsCode;

    public static WheelChairBoarding valueOfGtfsCode(int gtfsCode) {
        for (WheelChairBoarding value : values()) {
            if (value.gtfsCode == gtfsCode) {
                return value;
            }
        }
        throw new IllegalArgumentException("Unknown GTFS WheelChairBoardingType: " + gtfsCode);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy