org.opentripplanner.gtfs.mapping.AgencyAndIdMapper 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.gtfs.mapping;
import org.opentripplanner.model.FeedScopedId;
/** Responsible for mapping GTFS AgencyAndId into the OTP model. */
public class AgencyAndIdMapper {
/** Map from GTFS to OTP model, {@code null} safe. */
public static FeedScopedId mapAgencyAndId(org.onebusaway.gtfs.model.AgencyAndId id) {
return id == null ? null : new FeedScopedId(id.getAgencyId(), id.getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy