org.opentripplanner.gtfs.mapping.AgencyAndIdMapper Maven / Gradle / Ivy
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());
}
}