33 lines
931 B
Java
33 lines
931 B
Java
package SuMoC.backend.routing.dtos;
|
|
|
|
import SuMoC.backend.carta.DirectionsRequest;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import jakarta.annotation.Nullable;
|
|
import jakarta.validation.constraints.NotNull;
|
|
import lombok.*;
|
|
|
|
import java.time.Instant;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Builder
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
@Schema(description = "This DTO represents a request for alternative routes between an origin and a destination.")
|
|
public class RoutingAlternativeRequestDTO implements DirectionsRequest {
|
|
@NotNull
|
|
private Double originLat;
|
|
@NotNull
|
|
private Double originLon;
|
|
@NotNull
|
|
private Double destinationLat;
|
|
@NotNull
|
|
private Double destinationLon;
|
|
@NotNull
|
|
private Instant arrivalTime;
|
|
@NotNull
|
|
private Instant departureTime; // We need both times to calculate duration to compare alternatives
|
|
@Nullable
|
|
private RoutingPreferencesDTO routingPreferencesDTO;
|
|
}
|