28 lines
1.0 KiB
Java
28 lines
1.0 KiB
Java
package SuMoC.backend.routing.dtos;
|
|
|
|
import SuMoC.backend.carta.DirectionsRequest;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import jakarta.annotation.Nullable;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import java.time.Instant;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Schema(description = "DTO representing a request for routing directions between two points. Points can be specified either by coordinates or addresses." +
|
|
"If both provided, coordinates are preferred.")
|
|
public class RoutingDirectionsRequestDTO implements DirectionsRequest {
|
|
private Double originLat;
|
|
private Double originLon;
|
|
private Double destinationLat;
|
|
private Double destinationLon;
|
|
private String originAddress;
|
|
private String destinationAddress;
|
|
private Instant arrivalTime;
|
|
private Instant departureTime;
|
|
@Nullable
|
|
@Schema(description = "Routing preferences to customize the routing behavior. If null, will search for stored user preferences, if not found, use default.")
|
|
private RoutingPreferencesDTO routingPreferencesDTO;
|
|
}
|