Files
sumoc-backend/src/main/java/SuMoC/backend/routing/dtos/RoutingAlternativeRequestDTO.java
T
neuhauss 52788a9c83
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
update modality names to align with android app + routingservice WIP
2026-01-02 14:29:17 +01:00

30 lines
853 B
Java

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 Double originLat;
@NotNull
private Double originLon;
@NotNull
private Double destinationLat;
@NotNull
private Double destinationLon;
@NotNull
private LocalDateTime arrivalTime;
@NotNull
private LocalDateTime departureTime; // We need both times to calculate duration to compare alternatives
@Nullable
private RoutingPreferencesDTO routingPreferencesDTO;
}