| 1 | import { ApiProperty } from '@nestjs/swagger'; |
| 2 | import { IsNumber, Min |
| 3 | import { Type } |
| 4 | |
| 5 | export class GetFlightsBoundsDTO |
| 6 | @ApiProperty({ |
| 7 | description: 'Minimum latitude of the bounding box', |
| 8 | example: 40.0, |
| 9 | minimum: -90, |
| 10 | maximum: 90, |
| 11 | }) |
| 12 | @Type(() => |
| 13 | @IsNumber() |
| 14 | @Min(-90) |
| 15 | @Max(90) |
| 16 | minLat: number; |
| 17 | |
| 18 | @ApiProperty({ |
| 19 | description: 'Maximum latitude of the bounding box', |
| 20 | example: 50.0, |
| 21 | minimum: -90, |
| 22 | maximum: 90, |
| 23 | }) |
| 24 | @Type(() => |
| 25 | @IsNumber() |
| 26 | @Min(-90) |
| 27 | @Max(90) |
| 28 | maxLat: number; |
| 29 | |
| 30 | @ApiProperty({ |
| 31 | description: 'Minimum longitude of the bounding box', |
| 32 | example: -10.0, |
| 33 | minimum: -180, |
| 34 | maximum: 180, |
| 35 | }) |
| 36 | @Type(() => |
| 37 | @IsNumber() |
| 38 | @Min(-180) |
| 39 | @Max(180) |
| 40 | minLng: number; |
| 41 | |
| 42 | @ApiProperty({ |
| 43 | description: 'Maximum longitude of the bounding box', |
| 44 | example: 10.0, |
| 45 | minimum: -180, |
| 46 | maximum: 180, |
| 47 | }) |
| 48 | @Type(() => |
| 49 | @IsNumber() |
| 50 | @Min(-180) |
| 51 | @Max(180) |
| 52 | maxLng: number; |
| 53 | } |