class-validator#IsLatitude TypeScript Examples
The following examples show how to use
class-validator#IsLatitude.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: create-survey-point.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 12.4344 })
@IsOptional()
@IsLatitude()
readonly latitude?: number;
Example #2
Source File: update-survey-point.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 1.21123 })
@IsOptional()
@IsLatitude()
readonly latitude?: number;
Example #3
Source File: create-site.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 13.21651 })
@IsLatitude()
readonly latitude: number;
Example #4
Source File: update-site.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 15.5416 })
@IsLatitude()
readonly latitude: number;
Example #5
Source File: place.model.ts From life-helper-backend with MIT License | 5 votes |
/** 纬度,浮点数,范围为-90~90,负数表示南纬。使用 gcj02 国测局坐标系 */
@IsLatitude()
latitude: number