Add: json files for scenarios

This commit is contained in:
williameriksson126 2020-12-08 09:36:19 +01:00
parent d40420ad2b
commit 3d7e6cf52f
9 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"situationNumber": "RT1",
"severity":"normal",
"title":"Stannar inte på dessa hållplatser",
"affectedStopPoints":[
{
"gid": "9022014014020001",
"name": "Ekelöv västra, Kungälv"
},
{
"gid": "9022014014751001",
"name": "Guddeby, Kungälv"
}
]
}

View File

@ -0,0 +1,11 @@
{
"situationNumber": "RT2",
"severity":"normal",
"title":"Försening",
"affectedStopPoints":[
{
"gid": "9021014014225000",
"name": "Skrämmenborg, Kungälv"
}
]
}

View File

@ -0,0 +1,5 @@
{
"name":"1",
"deviceId":"1",
"location":"9022014014754001"
}

View File

@ -0,0 +1,5 @@
{
"name":"2",
"deviceId":"2",
"location":"9022014014020001"
}

View File

@ -0,0 +1,5 @@
{
"name":"3",
"deviceId":"3",
"location":"9022014014751001"
}

View File

@ -0,0 +1,5 @@
{
"name":"4",
"deviceId":"4",
"location":"9021014014225000"
}

View File

@ -12,4 +12,4 @@ class Coordinates {
}
}
export default Coordinates;
export default Coordinates;

11
src/classes/disruption.js Normal file
View File

@ -0,0 +1,11 @@
class Disruption {
constructor(situationNumber, severity, title, affectedStopPoints) {
this.situationNumber = situationNumber;
this.severity = severity;
this.title = title;
this.affectedStopPoints = affectedStopPoints;
}
}
export default User;

View File

@ -1,6 +1,7 @@
import React from 'react';
import axios from 'axios';
import AccessToken from '../classes/AccessToken'
import json5 from 'json5';
class NearbyStation extends React.Component {
state = {