Merge pull request #5 from thefeli73/we-json-examples
Add: json files for scenarios
This commit is contained in:
commit
75b4ecc4ed
15
src/APIexamples/disruption1.json
Normal file
15
src/APIexamples/disruption1.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
11
src/APIexamples/disruption2.json
Normal file
11
src/APIexamples/disruption2.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"situationNumber": "RT2",
|
||||||
|
"severity":"normal",
|
||||||
|
"title":"Försening",
|
||||||
|
"affectedStopPoints":[
|
||||||
|
{
|
||||||
|
"gid": "9021014014225000",
|
||||||
|
"name": "Skrämmenborg, Kungälv"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
5
src/APIexamples/user1.json
Normal file
5
src/APIexamples/user1.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name":"1",
|
||||||
|
"deviceId":"1",
|
||||||
|
"location":"9022014014754001"
|
||||||
|
}
|
5
src/APIexamples/user2.json
Normal file
5
src/APIexamples/user2.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name":"2",
|
||||||
|
"deviceId":"2",
|
||||||
|
"location":"9022014014020001"
|
||||||
|
}
|
5
src/APIexamples/user3.json
Normal file
5
src/APIexamples/user3.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name":"3",
|
||||||
|
"deviceId":"3",
|
||||||
|
"location":"9022014014751001"
|
||||||
|
}
|
5
src/APIexamples/user4.json
Normal file
5
src/APIexamples/user4.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name":"4",
|
||||||
|
"deviceId":"4",
|
||||||
|
"location":"9021014014225000"
|
||||||
|
}
|
@ -12,4 +12,4 @@ class Coordinates {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Coordinates;
|
export default Coordinates;
|
||||||
|
11
src/classes/disruption.js
Normal file
11
src/classes/disruption.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user