Get Train Rails

Gets a list of all railways.

Response Body

Name Type Description

ID

String

Unique ID of the Train Rails.

Name

String

Name of the Train Rails.

ClassName

String

ClassName of the Train Rails.

location

Object

Location details of the Train Rails.

  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).

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.

SplineData

Object

Spline Information for Actor.

  x

Float

Value along the X-axis.

  y

Float

Value along the Y-axis.

  z

Float

Value along the Z-axis.

location0

Object

Start Location of the Train Rail

  x

Float

X Location in the World.

  y

Float

Y Location in the World.

  z

Float

Z Location in the World.

Connected0

Boolean

Is Train Rail Connected at starting point?

location1

Object

End Location of the Train Rail

  x

Float

X Location in the World.

  y

Float

Y Location in the World.

  z

Float

Z Location in the World.

Connected1

Boolean

Is Train Rail Connected at ending point?

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_RailroadTrack_C_2147358554",
    "Name": "Railway",
    "ClassName": "Build_RailroadTrack_C",
    "location": {
      "x": -3492.318359375,
      "y": 68000.09375,
      "z": 26099.982421875,
      "rotation": 90
    },
    "BoundingBox": {
      "min": {
        "x": -3492.318359375,
        "y": 68000.09375,
        "z": 26099.982421875
      },
      "max": {
        "x": -3492.318359375,
        "y": 68000.09375,
        "z": 26099.982421875
      }
    },
    "ColorSlot": {
      "PrimaryColor": "FA954900",
      "SecondaryColor": "5F668C00"
    },
    "SplineData": [
      {
        "x": -3492.318359375,
        "y": 68000.09375,
        "z": 26099.982421875
      },
      {
        "x": -4207.55389643485,
        "y": 66025.7201061414,
        "z": 26099.982421875
      }
    ],
    "location0": {
      "x": -3492.318359375,
      "y": 68000.09375,
      "z": 26099.982421875
    },
    "Connected0": false,
    "location1": {
      "x": -4207.55389643485,
      "y": 66025.7201061414,
      "z": 26099.982421875
    },
    "Connected1": false,
    "Length": 2124.3955078125,
    "features": {
      "properties": {
        "name": "Railway",
        "type": "Railway"
      },
      "geometry": {
        "coordinates": [
          [-3492.318359375, 68000.09375, 26099.982421875],
          [-4207.55389643485, 66025.7201061414, 26099.982421875]
        ],
        "type": "LineString"
      }
    }
  }
]