---
url: https://docs.geo.admin.ch/preview/chore/bgdidic-698/diemo-json-eol/visualize-data/terrain-service.md
---
# Terrain Service

This service delivers multi-resolution 3D terrain data as quantized mesh tiles, fully compliant with the [Cesium Quantized Mesh 1.0 specification](https://github.com/AnalyticalGraphicsInc/quantized-mesh).
Tiles are organized and served following the [Tile Map Service (TMS) specification](http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification) using a global-geodetic profile (latitude/longitude coordinates),

Use the following parameters to define your request:

| Parameter       | Example         | Description                                                                                                   |
| --------------- | --------------- | ------------------------------------------------------------------------------------------------------------- |
| ServerName      | 3d.geo.admin.ch |                                                                                                               |
| Version         | v1              | v1 means terrain tiles generated with cesium tiles                                                            |
| Time (optional) | 20250101        | Date of tile generation in ISO-8601 (YYYYMMDD). If you omit this parameter, the most recent tile is returned. |
| Zoom            | 12              | Zoom level                                                                                                    |
| X               | 4309            | The longitude index                                                                                           |
| Y               | 3111            | The latitude index                                                                                            |

An example of a terrain tile request:

```http
curl -o demo.terrain https://3d.geo.admin.ch/ch.swisstopo.terrain.3d/v1/20250101/11/2130/1550.terrain?v=1.43646.0
```

## Metadata

The `layer.json` file provides metadata that describes the availability and structure of the terrain tiles at a given timestamp.

| Parameter       | Example  | Description                                                                                                       |
| --------------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
| Time (optional) | 20250101 | Date of tile generation in ISO-8601 (YYYYMMDD). If you omit this parameter, the most recent metadata is returned. |

Example of a metadata request for the most recent Terrain publication:

If you want to fix your request to a specific data publication. Follwing Times are available:

* 20201203
* 20250101

## Example: Cesium

An example of a Cesium application using terrain tiles, 3D buildings and a WMTS layer.
