reformat RouteDTO

This commit is contained in:
2026-02-01 19:14:29 +01:00
parent cb397e7e63
commit 6393a4a650
@@ -49,7 +49,22 @@ public class RouteDTO {
@Schema(description = "The temporal difference in minutes compared to the original route (in case alternative was requested) / the car route (when simply directions requested) .")
private double timeDifferenceSeconds;
public RouteDTO(AddressDTO startAddress, @Nullable String firstStopName, double startLat, double startLon, AddressDTO endAddress, @Nullable String lastStopName, double endLat, double endLon, Instant startDateTime, Instant endDateTime, List<StepDTO> steps, double co2Savings, double timeDifferenceSeconds, double co2Emissions) {
public RouteDTO(
AddressDTO startAddress,
@Nullable String firstStopName,
double startLat,
double startLon,
AddressDTO endAddress,
@Nullable String lastStopName,
double endLat,
double endLon,
Instant startDateTime,
Instant endDateTime,
List<StepDTO> steps,
double co2Savings,
double timeDifferenceSeconds,
double co2Emissions
) {
this.startAddress = startAddress;
this.firstStopName = firstStopName;
this.startLat = startLat;