reformat RouteDTO
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user