use of org.onebusaway.admin.util.VehicleDetailBuilder in project onebusaway-application-modules by camsys.
the class VehicleStatusServiceImpl method getVehicleDetail.
@Override
public VehicleDetail getVehicleDetail(String vehicleId) {
VehicleDetailBuilder builder = new VehicleDetailBuilder();
VehicleLastKnownRecord lastKnownRecord = getLastKnownRecordData(vehicleId);
if (lastKnownRecord != null) {
VehiclePullout pullout = getPulloutData(vehicleId);
String headSign = getHeadSign(lastKnownRecord.getDestinationSignCode());
String inferredHeadSign = getHeadSign(lastKnownRecord.getInferredDSC());
return builder.buildVehicleDetail(pullout, lastKnownRecord, headSign, inferredHeadSign);
}
return null;
}
Aggregations