diff --git a/lib/gtfs/index.js b/lib/gtfs/index.js index 54c8e3c..11b1549 100644 --- a/lib/gtfs/index.js +++ b/lib/gtfs/index.js @@ -407,6 +407,8 @@ const getRTStopTimes = async ({ stopTimes, route }) => { const hasVehiclePosition = vehiclePosition && vehiclePosition.length > 0; return { trip_id: rtSt.trip_id, + vehicleId: hasVehiclePosition ? vehiclePosition[0].vehicleId : null, + matricula: hasVehiclePosition ? vehiclePosition[0].matricula : null, llegada: arrivalTime, tiempoRestante: getRemainingMinutes(arrivalTime), desfase: calculateTimeShift({ scheduledStop, rtSt }), @@ -505,6 +507,7 @@ const gtfsGetBusPosition = async (tripId) => { velocidad: position.speed, tripId: position.trip_id, vehicleId: position.vehicle_id, + matricula: position.vehicle_license_plate, ocupacion: position.occupancy_status, timestamp: position.timestamp, isUpdated: position.isUpdated,