update alternative routing dto structure according to meeting results
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2025-12-28 21:53:20 +01:00
parent 54c28ff83a
commit 6bd78c597f
11 changed files with 212 additions and 126 deletions
@@ -0,0 +1,29 @@
package SuMoC.backend.routing.dtos;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
@Getter
@Setter
@Schema(description = "This DTO represents a request for alternative routes between an origin and a destination.")
public class RoutingAlternativeRequestDTO {
@NotNull
private String originLat;
@NotNull
private String originLon;
@NotNull
private String destinationLat;
@NotNull
private String destinationLon;
@NotNull
private LocalDateTime arrivalTime;
@NotNull
private LocalDateTime departureTime; // We need both times to calculate duration to compare alternatives
@Nullable
private RoutingPreferencesDTO routingPreferencesDTO;
}