
org.opentripplanner.client.model.LegMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp-client Show documentation
Show all versions of otp-client Show documentation
Java client for the OpenTripPlanner GraphQL API
package org.opentripplanner.client.model;
import java.util.EnumSet;
import java.util.Set;
public enum LegMode {
WALK,
RAIL,
BUS,
COACH,
SUBWAY,
FERRY,
TRAM,
MONORAIL,
CARPOOL,
BICYCLE,
SCOOTER,
CAR,
TAXI,
CABLE_CAR,
AIRPLANE,
FUNICULAR,
FLEX,
GONDOLA,
TROLLEYBUS;
private static final Set NON_TRANSIT_MODES = EnumSet.of(CAR, SCOOTER, BICYCLE, WALK);
public boolean isTransit() {
return !NON_TRANSIT_MODES.contains(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy