
org.opentripplanner.netex.mapping.DirectionMapper 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
package org.opentripplanner.netex.mapping;
import org.opentripplanner.transit.model.timetable.Direction;
import org.rutebanken.netex.model.DirectionTypeEnumeration;
class DirectionMapper {
static Direction map(DirectionTypeEnumeration direction) {
if (direction == null) {
return Direction.UNKNOWN;
}
return switch (direction) {
case INBOUND -> Direction.INBOUND;
case OUTBOUND -> Direction.OUTBOUND;
case CLOCKWISE -> Direction.CLOCKWISE;
case ANTICLOCKWISE -> Direction.ANTICLOCKWISE;
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy