org.opentripplanner.api.mapping.TransferMapper 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.api.model.ApiTransfer;
import org.opentripplanner.model.PathTransfer;
public class TransferMapper {
public static ApiTransfer mapToApi(PathTransfer domain) {
if (domain == null) {
return null;
}
ApiTransfer api = new ApiTransfer();
api.toStopId = FeedScopedIdMapper.mapToApi(domain.to.getId());
api.distance = domain.getDistanceMeters();
return api;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy