{
    "$meta": {
        "description": "A `trafficNet` object can be obtained by using [include_lib](#GENERAL_INCLUDE_LIB). The `classID` used for this object is `\"TrafficNet\"`."
    },
    "camera_link_system": {
        "description": "Accesses the traffic camera system, opening a window with controls to switch between different cameras. If the window opens successfully, this method returns a `number` with the value one. In case of an error, it returns a `string` with details.",
        "example": [
            "libTraffic = include_lib(\"/lib/libtrafficnet.so\")",
            "linkSystemResult = libTraffic.camera_link_system",
            "if linkSystemResult == 1 then",
            "    print(\"Initiated camera broadcast!\")",
            "end if"
        ]
    },
    "locate_vehicle": {
        "description": "Performs a search for the specified license plate to locate the vehicle. If the vehicle is visible on any camera, the viewer will switch to the camera currently displaying it and return a `number` with the value one. If the vehicle cannot be located or the license plate is incorrect, a `string` indicating the error is returned. If any of the provided values deviates from the defined types in the method signature, this method will return `null`.",
        "example": [
            "libTraffic = include_lib(\"/lib/libtrafficnet.so\")",
            "libTraffic.camera_link_system",
            "vehicleSearchResult = libTraffic.locate_vehicle(\"1L2M3N\", \"pass\")",
            "if vehicleSearchResult == 1 then",
            "    print(\"Found vehicle!\")",
            "end if"
        ]
    },
    "get_credentials_info": {
        "description": "Returns string which contains job and name of a NPC. If an error occurs, a `string` with details is returned.",
        "example": [
            "libTraffic = include_lib(\"/lib/libtrafficnet.so\")",
            "print(libTraffic.get_credentials_info)"
        ]
    }
}
