Skip to content
Philipp Wilimzig edited this page May 4, 2021 · 1 revision

Schema

type ConstructionSite = {  
  category?: string;  
  cause?: string;  
  description?: string;  
  direction?: string;  
  endDate?: string;  
  imageUri?: string;  
  location?: {  
    lat: number;  
    lon: number;  
  };  
  locationDescription?: string;  
  restrictions?: string[];  
  startDate: string;  
  title: string;  
};

Beispiel

[  
  {  
    "title": "Brückenarbeiten an der Weihnachts-Silvester-Brücke",  
    "startDate": "2020-12-28 12:00",  
    "endDate": "2020-12-28 19:00"  
  },  
  {  
    "imageUri": "https://cdn.icon-icons.com/icons2/1465/PNG/512/556cookie_100740.png",  
    "title": "Unfall in der Keksfabrik des Weihnachtsmanns",  
    "startDate": "2020-12-24",  
    "endDate": "2020-12-26",  
    "category": "Unfallstelle",  
    "description": "Angrenzende Straßen sind mit Keksen bedeckt.",  
    "direction": "Süden",  
    "cause": "Unfall in der Keksfabrik",  
    "location": {  
      "lat": 90,  
      "lon": 0  
    },  
    "locationDescription": "Nordpol, an der Keksfabrik",  
    "restrictions": [  
      "Geschwindigkeitsbeschränkung Kfz : 5 km/h"  
    ]  
  }  
]
Clone this wiki locally