org.opentripplanner.netex.loader.mapping.TariffZoneMapper 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.netex.loader.mapping;
import org.opentripplanner.model.FeedScopedId;
import org.opentripplanner.model.FareZone;
public class TariffZoneMapper {
private final FeedScopedIdFactory idFactory;
public TariffZoneMapper(FeedScopedIdFactory idFactory) {
this.idFactory = idFactory;
}
/**
* Map Netex TariffZone to OTP TariffZone
*/
public FareZone mapTariffZone(org.rutebanken.netex.model.TariffZone tariffZone) {
FeedScopedId id = idFactory.createId(tariffZone.getId());
String name = tariffZone.getName().getValue();
return new FareZone(id, name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy