org.opentripplanner.api.mapping.BikeAccessMapper 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.api.mapping;
import org.opentripplanner.model.BikeAccess;
public class BikeAccessMapper {
public static int mapToApi(BikeAccess bikeAccess) {
switch (bikeAccess) {
case ALLOWED:
return 1;
case NOT_ALLOWED:
return 2;
default:
return 0;
}
}
}