Get Train Station

Gets a list of all train stations.

Similar

Resource

Endpoint

Game Thread

Description

Stations

getDroneStation

No

Gets a list of all drone stations.

Stations

getTruckStation

No

Gets a list of all truck stations.

Response Body

Name Type Description

ID

String

Unique ID of the Train Station.

Name

String

Name of the Train Station.

ClassName

String

ClassName of the Train Station.

ColorSlot

Object

Color/Decoration information about the Actor.

  PrimaryColor

String

Hex Code of Primary Color

  SecondaryColor

String

Hex Code of Secondary Color

BoundingBox

Object

Bounding Box information about the Actor.

  min

Object

The minimum boundary of the bounding box in the corresponding axis.

    x

Float

Value along the X-axis.

    y

Float

Value along the Y-axis.

    z

Float

Value along the Z-axis.

  max

Object

The maximum boundary of the bounding box in the corresponding axis.

    x

Float

Value along the X-axis.

    y

Float

Value along the Y-axis.

    z

Float

Value along the Z-axis.

location

Object

Location details of the Train Station.

  x

Float

X Location in the World.

  y

Float

Y Location in the World.

  z

Float

Z Location in the World.

  rotation

Float

Rotation of the Actor (0 - 359, 0 = North, 90 = East, 180 = South, 270 = West).

TransferRate

Float

Rate of solid items transferring at the station

InflowRate

Float

Rate of fluids incoming to the station

OutflowRate

FLoat

Rate of fluids outgoing from the station

CargoInventory

Object

Train Loading/Unloading Platforms and Stations

  ID

String

Unique ID of the Train Station.

  Name

String

Name of the Train Station.

  ClassName

String

ClassName of the Train Station.

  TransferRate

String

Load/Unload Mode Set

  InflowRate

String

Idle/Loading/Unloading

  OutflowRate

String

Status of Station (Idle/Loading/Unloading)

  LoadMode

String

Load/Unload Mode Set

  LoadingStatus

String

Idle/Loading/Unloading

  DockingStatus

String

Status of Station (Idle/Loading/Unloading)

  PowerInfo

Object

Power Information Object.

    CircuitGroupID

Integer

The group this circuit belongs too. (-1 = not connected)

    CircuitID

Integer

This circuit’s unique identifier. (-1 = not connected)

    FuseTriggered

Boolean

Has the fuse tripped?

    PowerConsumed

Float

Current power consumption.

    MaxPowerConsumed

Float

Current maximum power consumption.

  Inventory

Object

Train Loading/Unloading Platforms and Stations Inventory

    Name

String

Name of the item.

    ClassName

String

Class Name of the item.

    Amount

Integer

Amount of the item.

    MaxAmount

Integer

Stack size of the item.

PowerInfo

Object

Power Information Object.

  CircuitGroupID

Integer

The group this circuit belongs too. (-1 = not connected)

  CircuitID

Integer

This circuit’s unique identifier. (-1 = not connected)

  FuseTriggered

Boolean

Has the fuse tripped?

  PowerConsumed

Float

Current power consumption.

  MaxPowerConsumed

Float

Current maximum power consumption.

features

Object

An object with actor coordinates and name information.

  properties

Object

Name information about the actor.

    name

String

Display Name of the Actor.

    type

String

Type of the Object.

  geometry

Object

Geometry information about the Actor.

    coordinates

Object

The Actor coordinates.

      x

Float

X Location of the Actor.

      y

Float

Y Location of the Actor.

      z

Float

Z Location of the Actor.

    type

String

It’s always "Point".

Example Response

[
  {
    "ID": "Build_TrainStation_C_2147110294",
    "Name": "Yokohama",
    "ClassName": "Build_TrainStation_C",
    "location": {
      "x": 141900,
      "y": 222200,
      "z": -4899.98275421746,
      "rotation": 180
    },
    "BoundingBox": {
      "min": {
        "x": 141100,
        "y": 220500,
        "z": -4899.98275421746
      },
      "max": {
        "x": 142700,
        "y": 223900,
        "z": -2799.98275421746
      }
    },
    "ColorSlot": {
      "PrimaryColor": "FA954900",
      "SecondaryColor": "5F668C00"
    },
    "TransferRate": 0,
    "InflowRate": 9.46994018554688,
    "OutflowRate": 0,
    "CargoInventory": [
      {
        "ID": "Build_TrainDockingStation_C_2147110032",
        "Name": "Freight Platform",
        "ClassName": "Build_TrainDockingStation_C",
        "location": {
          "x": 141900,
          "y": 223800,
          "z": -4900,
          "rotation": 0
        },
        "BoundingBox": {
          "min": {
            "x": 141100,
            "y": 222100,
            "z": -4900
          },
          "max": {
            "x": 142700,
            "y": 225500,
            "z": -2900
          }
        },
        "ColorSlot": {
          "PrimaryColor": "FA954900",
          "SecondaryColor": "5F668C00"
        },
        "PowerInfo": {
          "CircuitGroupID": 0,
          "CircuitID": 5,
          "FuseTriggered": false,
          "PowerConsumed": 0.100000001490116,
          "MaxPowerConsumed": 50
        },
        "TransferRate": 0,
        "InflowRate": 0,
        "OutflowRate": 0,
        "LoadingMode": "Loading",
        "LoadingStatus": "Idle",
        "DockingStatus": "None",
        "Inventory": [
          {
            "Name": "Modular Frame",
            "ClassName": "Desc_ModularFrame_C",
            "Amount": 40,
            "MaxAmount": 50
          },
          {
            "Name": "Iron Plate",
            "ClassName": "Desc_IronPlate_C",
            "Amount": 6,
            "MaxAmount": 200
          },
          {
            "Name": "Radio Control Unit",
            "ClassName": "Desc_ModularFrameLightweight_C",
            "Amount": 46,
            "MaxAmount": 50
          },
          {
            "Name": "Computer",
            "ClassName": "Desc_Computer_C",
            "Amount": 50,
            "MaxAmount": 50
          }
        ]
      },
      {
        "ID": "Build_TrainDockingStationLiquid_C_2147109692",
        "Name": "Fluid Freight Platform",
        "ClassName": "Build_TrainDockingStationLiquid_C",
        "location": {
          "x": 141900,
          "y": 225400,
          "z": -4900,
          "rotation": 180
        },
        "BoundingBox": {
          "min": {
            "x": 141100,
            "y": 223700,
            "z": -4900
          },
          "max": {
            "x": 142700,
            "y": 227100,
            "z": -2900
          }
        },
        "ColorSlot": {
          "PrimaryColor": "FA954900",
          "SecondaryColor": "5F668C00"
        },
        "PowerInfo": {
          "CircuitGroupID": 0,
          "CircuitID": 5,
          "FuseTriggered": false,
          "PowerConsumed": 0.100000001490116,
          "MaxPowerConsumed": 50
        },
        "TransferRate": 0,
        "InflowRate": 9.46994018554688,
        "OutflowRate": 0,
        "LoadingMode": "Loading",
        "LoadingStatus": "Idle",
        "DockingStatus": "None",
        "Inventory": [
          {
            "Name": "Nitrogen Gas",
            "ClassName": "Desc_NitrogenGas_C",
            "Amount": 878.619995117188,
            "MaxAmount": 50
          }
        ]
      }
    ],
    "features": {
      "properties": {
        "name": "Yokohama",
        "type": "Train Station"
      },
      "geometry": {
        "coordinates": {
          "x": 0,
          "y": 0,
          "z": 0
        },
        "type": "Point"
      }
    },
    "PowerInfo": {
      "CircuitGroupID": 0,
      "CircuitID": 5,
      "FuseTriggered": false,
      "PowerConsumed": 0.100000001490116,
      "MaxPowerConsumed": 50
    }
  }
]