Search in sources :

Example 1 with NetexMapper

use of org.opentripplanner.netex.loader.mapping.NetexMapper in project OpenTripPlanner by opentripplanner.

the class NetexBundle method loadBundle.

/**
 * load the bundle, map it to the OTP transit model and return
 */
public OtpTransitServiceBuilder loadBundle(Deduplicator deduplicator, DataImportIssueStore issueStore) {
    LOG.info("Reading {}", hierarchy.description());
    // Store result in a mutable OTP Transit Model
    OtpTransitServiceBuilder transitBuilder = new OtpTransitServiceBuilder();
    // init parser and mapper
    xmlParser = new NetexXmlParser();
    otpMapper = new NetexMapper(transitBuilder, netexFeedId, deduplicator, issueStore);
    // Load data
    loadZipFileEntries();
    return transitBuilder;
}
Also used : OtpTransitServiceBuilder(org.opentripplanner.model.impl.OtpTransitServiceBuilder) NetexMapper(org.opentripplanner.netex.loader.mapping.NetexMapper)

Aggregations

OtpTransitServiceBuilder (org.opentripplanner.model.impl.OtpTransitServiceBuilder)1 NetexMapper (org.opentripplanner.netex.loader.mapping.NetexMapper)1