---
title: "Spatio-temporal"
description: "Spatio-temporal datasets associate each data point with both a timestamp and a geographic location on Earth, enabling queries that span time and space."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Spatio-temporal

import ParamField from "@docs/components/ParamField.astro";

Each spatio-temporal dataset comes with a set of required and auto-generated fields for each data point.

## Required fields

While the specific data fields between different time series datasets can vary, there are common fields that all time series datasets share.

**time**

type: Timestamp

The timestamp associated with each data point. Timestamps are always in UTC.

:::tip
  For indexing and querying, Tilebox truncates timestamps to millisecond precision. But Timeseries datasets may contain arbitrary custom `Timestamp` fields that store timestamps up to a nanosecond precision.
:::

**geometry**

type: Geometry

A location on the earth's surface associated with each data point. Supported geometry types are `Point`, `Polygon` and `MultiPolygon`.

## Auto-generated fields

**id**

type: UUID

A [universally unique identifier (UUID)](https://en.wikipedia.org/wiki/Universally_unique_identifier) that uniquely identifies each data point. IDs are generated so that sorting them lexicographically also sorts them by time.

:::tip
    IDs generated by Tilebox are deterministic, meaning that ingesting the exact same data values into the same collection will always result in the same ID.
:::

**ingestion_time**

type: Timestamp

The time the data point was ingested into the Tilebox API.

## Creating a spatio-temporal dataset

To create a spatio-temporal dataset, use the [Tilebox Console](/docs/console) and select `Spatio-temporal Dataset` as the dataset type. The required and auto-generated fields
already outlined will be automatically added to the dataset schema.

## Spatio-temporal queries

Spatio-temporal datasets support efficient time-based and spatially filtered queries. To query a specific location in a given time interval,
specify a time range and a geometry when [querying data points](/docs/datasets/query/filter-by-location) from a dataset or a collection.

## Geometries

Handling Geometries can traditionally be a bit tricky, especially when working with geometries that cross the antimeridian or cover a pole.
Tilebox is designed to take away most of the friction involved in this, but it's still recommended to follow the [best practices for handling geometries](/docs/datasets/geometries).

Source: https://tilebox.com/docs/datasets/types/spatiotemporal/index.mdx
