Skip to content
Snippets Groups Projects

GeoJSON data to database

Merged Ghost User requested to merge GeoJSON2 into Development
4 files
+ 24
4
Compare changes
  • Side-by-side
  • Inline
Files
4
import { IsString, IsDateString } from 'class-validator';
import { IsString, IsJSON } from 'class-validator';
import { Timestamp } from 'typeorm';
/*
 
DTO: MapMarker
 
- represents servers data handling.
 
*/
 
export class MapMarkerDTO {
export class MapMarkerDTO {
@IsString()
@IsString()
@@ -10,4 +14,6 @@ export class MapMarkerDTO {
@@ -10,4 +14,6 @@ export class MapMarkerDTO {
longitude: string;
longitude: string;
@IsString()
@IsString()
timestamp: string;
timestamp: string;
 
@IsJSON()
 
features: JSON;
}
}
 
\ No newline at end of file
Loading