# Hosted elevation service

![](/files/-M3SkIGuY6wxiLbnZO2V)

The [Google elevation API](https://developers.google.com/maps/documentation/elevation/start?hl=de) provides a vertical accuracy of 30 m and there is no other open elevation service providing more accurate data available. During the development of [Predictive Tracking](/prediction.md) we noticed, that this cartographic data is not precise enough and we developed a self-hosted elevation service (vertical accuracy of 1 m), you can use for your own projects under MIT license. You either host this service yourself or just use our API.

* Mapzen terrain data: <https://registry.opendata.aws/terrain-tiles/>
* GitHub documentation and source code: <https://github.com/racemap/elevation-service#api-usage>
* hosted elevation service: <http://elevation.racemap.com/?lat=51.3&lng=12.5>

#### Working with the elevation data API

You can download portions of the data. The data is organized by latitude/longitude where each chunk is 1x1 degree. Eg. for downloading the UK data you need to know the lat/lng extent of the UK and download all the necessary files. Example:

```
aws s3 cp --no-sign-request s3://elevation-tiles-prod/skadi/N51/N51E000.hgt.gz /path/to/data/folder/N51
```

Make sure to reproduce the file structure when downloading, e.g. `./N51/N51E001.hgt.gz`. The whole dataset is just \~200GB, so maybe it is even feasible to download the whole thing.

Regarding the licensing, please check for yourself: <https://registry.opendata.aws/terrain-tiles/> & <https://www.mapzen.com/terms/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.racemap.com/data-export-from-racemap/self-hosted-elevation-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
