Skip to content
This repository was archived by the owner on Nov 13, 2022. It is now read-only.

operate :id

Andrew@TW edited this page Apr 7, 2019 · 1 revision

Request method: GET

Path: /operate/:id

Parameters:

  • Replace :id in URI to the database UUID of the intersection you want to use. Protocol supports using current in the :id to use the current database. Using /operate/current is the same by visiting /status first 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"
    }
}

Clone this wiki locally