Skip to main content

Routes Configuration

Routes let you define a sequence of turnout operations that execute together as a single action. Instead of throwing each turnout individually, you define a route once and activate it with one tap. Routes can be triggered from the Throttle app, the Cloud app, or programmatically through the server.

Routes list view

Route List

The main routes view (/routes) displays your defined routes as a list of cards. Each card shows the route name and provides a clickable interface to navigate to the edit form. An "Add" tile at the beginning of the list lets you create new routes.

Creating a Route

Navigate to /routes/new or click the Add tile. The route form has three main areas: metadata, turnout sequence, and display options.

Route Metadata

FieldDescriptionRequired
NameA display name for the route (e.g., "Main Line to Yard")Yes
Point 1The starting location or track identifierNo
Point 2The ending location or track identifierNo

The Point 1 and Point 2 fields are free-text identifiers that describe the route's endpoints on your layout. They are also used to auto-generate the route's ID when creating a new route.

Turnout Sequence

The core of a route is its turnout sequence. The Turnouts card displays the currently assigned turnouts as a row of interactive chips. Each chip shows:

  • A directional icon (fork icon for turnouts) color-coded green (thrown) or red (straight)
  • The turnout name
  • A delete button to remove the turnout from the sequence
  • A state toggle indicator showing the turnout's current live state

Adding Turnouts to a Route

Click the + button on the Turnouts card to open the turnout selector dialog. This shows all turnouts defined in your layout. Select the turnouts you want to include in the route and confirm. Duplicate entries are automatically deduplicated.

Setting Turnout State

Each turnout in the route has a configurable target state (straight or thrown). Click the state icon on a chip to toggle whether the turnout should be set to straight or thrown when the route executes. The green/red color indicates the target state:

  • Green -- The turnout will be set to thrown (divergent) when the route runs.
  • Red -- The turnout will be set to straight (closed) when the route runs.

Removing Turnouts

Click the delete icon on any turnout chip to remove it from the route sequence.

Route form with turnout sequence

Testing a Route

While editing, you can click the Run Route button to immediately execute the route without saving -- every turnout in the sequence throws right away.

This is useful for verifying that a route works correctly before saving it.

Display Options

  • Color -- Click the color picker button to choose a display color for the route card in the UI. A color picker dialog lets you select from a full palette.
  • Tags -- Assign tags to the route for filtering and organization. Tags are shared across the layout.

Editing a Route

Click any route card in the list to navigate to /routes/:routeId. The edit form is identical to the create form, pre-populated with the route's existing data. The header displays "Edit Route" instead of "Add Route". Modify any fields and click Submit to save, or Close to discard changes.

Deleting a Route

Route deletion is handled through the route edit form.

How Routes Execute

When a route is activated, its turnouts throw in sequence rather than all at once -- there's a brief delay between each successive throw.