add co2emissions to trip model and update tripfactory
LocationBasedServices/sumoc-backend/pipeline/pr-main Build queued...
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-06 14:07:39 +01:00
parent ce7494a95f
commit dfa5ee9559
4 changed files with 14 additions and 4 deletions
@@ -52,10 +52,13 @@ public class Trip {
private LocalDateTime endTime;
/**
* Mobilityscore for the trip. TODO determine if this needs an own data type
* Mobilityscore for the trip.
*/
@Column(nullable = false)
private float mobilityScore;
private double mobilityScore;
@Column(nullable = false)
private double co2Emissions;
@Column(nullable = true)
private float cost;