Skip to content

Commit

Permalink
trimet rt use id for the label
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Sep 18, 2024
1 parent 1807356 commit bfaf9ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aspen/import_alpenrose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ pub async fn new_rt_data(
timestamp: vehicle_pos.timestamp,
vehicle: vehicle_pos.vehicle.as_ref().map(|vehicle| AspenisedVehicleDescriptor {
id: vehicle.id.clone(),
label: vehicle.label.clone(),
label: match realtime_feed_id.as_str() {
"f-trimet~rt" => vehicle.id.clone(),
_ => vehicle.label.clone()
},
license_plate: vehicle.license_plate.clone(),
wheelchair_accessible: vehicle.wheelchair_accessible,
}),
Expand Down

0 comments on commit bfaf9ff

Please sign in to comment.