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;
}
Aggregations