Skip to main content

Spacetime

A topic has a name and a value. The current value of the topic is called state. To analyze trends and make predections is is necessary to store the history of all value changes in time and by location. For example, to monitor the trend in viral infections you want to see on a map where it has originated and how the number of infections vary by region and over time.

Where and when

The combination of a spatial and time component is referred to as 'spacetime'. In the example below the speed of a car is captured in spacetime, so for every speed data point there is information about the 3D position and time. Spacetime information can be visualized in 2D maps, 3D earth models and time charts.

Representation

Spacetime information is stored together with the value of a topic. Spacetime is a 4D value, 3D location and time (3D-T), and is represented by an array with four values. These values represent latitude, longitude, altitude and time. The latitude and longitude are defined in decimal degrees similar to GPS coordinates. The altitude is defined in meters above ground and the time is defined in UTC. When the state of a topic is updated, the value and spacetime information is saved as log entries.

[
{
topic: car.saab.speed
value: 104
spacetime: [51.37391,5.325942,0,"2019-10-19T15:15:35.000Z"]
},
{
topic: car.saab.speed
value: 107
spacetime: [[51.374336,5.327016,0,"2019-10-19T15:15:30.000Z"]
},
...
]

For some objects like buildings or rooms the geographic component of the spacetime information may be static. Still, the geographic information is important to locate the object and visualize in 2D or 3D space. The altitude component of spacetime is important when objects are stacked, such as in multi-story buildings or plants. When capturing a flight path of an airplane all four components of spacetime are important.

Example

A good example of a practical application of spacetime is air traffic control. Air traffic controllers need to prevent collissions between airplanes and they do this by ensuring that at least one of the four components on spacetime is always different for each plane. For example, they can allow two planes at the same time at the same latitude and longitude as long as there is a vertical separation of 300 meters. When two planes need to be at the same geographical location, for example when landing on a runway, their 3D position is the same but they ensure a time separation of 2 minutes.