operate :id - Andrewyg/unmanned-car GitHub Wiki
Request method: GET
Path: /operate/:id
Parameters:
-
Replace
:idin URI to the database UUID of the intersection you want to use. Protocol supports usingcurrentin the:idto use the current database. Using/operate/currentis the same by visiting/statusfirst then copy the UUID return from it to:id. -
Set query after the URL with following parameters.
{
left: "The time it takes to run the left turning action",
straight: "Same as left just for straight".
right: "Same as left just for right",
car: "The time it takes for a car to run through the length of a car",
LightHS: "The time length of straight going light of a horizontal street",
LightHL: "The time length of left turning light of a horizontal street",
LightVS: "The time length of straight going light of a vertical street",
LightVL: "The time length of left turning light of a vertical street"
}
Returning data:
{
"input": "Same as intersection database structure",
"output": {
"result": [
{
"allow": [
{
"position": "bottom",
"direction": "straight"
}
],
"delay": 25
}
],
"refCIns": "Database UUID of intersection it's using",
"refCompare": "Database UUID of the compare result it's related to"
}
}