30 lines
853 B
Java
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;
|
|
}
|