All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy