use of org.opentripplanner.model.Operator in project OpenTripPlanner by opentripplanner.
the class NetexLoaderSmokeTest method assertOperators.
private void assertOperators(Collection<Operator> operators) {
assertEquals(1, operators.size());
Operator o = list(operators).get(0);
assertEquals("RUT:Operator:130c", o.getId().getId());
assertEquals("Ruter", o.getName());
assertNull(o.getUrl());
assertNull(o.getPhone());
}
use of org.opentripplanner.model.Operator in project OpenTripPlanner by opentripplanner.
the class OperatorToAgencyMapper method mapOperator.
Operator mapOperator(org.rutebanken.netex.model.Operator source) {
Operator target = new Operator();
target.setId(idFactory.createId(source.getId()));
target.setName(source.getName().getValue());
mapContactDetails(source.getContactDetails(), target);
return target;
}
Aggregations