Skip to content

Commit

Permalink
Merge pull request #45 from VallaBus/main
Browse files Browse the repository at this point in the history
Matricula e id de vehiculo
  • Loading branch information
nukeador authored May 20, 2024
2 parents 83be38a + 6fca7f8 commit fe39863
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/gtfs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit fe39863

Please sign in to comment.