> For the complete documentation index, see [llms.txt](https://docs.wiclax.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wiclax.com/en/all-competition-types/uphills-downhills.md).

# Uphills, downhills

This is an event where competitors do the same section multiple times - typically an uphill or downhill but potentially any other type of timed event. And between each attempt there is a connecting section or simply a waiting time.

## Settings

In Wiclax we set the event as a [lap race](https://docs.wiclax.com/en/all-competition-types/lap-race-circuit.md). With a fixed duration or with a fixed number of laps depending on the context.

By default, the uphill/downhill times will be added and those who have completed the greatest number of laps will be ranked first. But we can specify that the ranking is done on the best lap, that is to say the best uphill/downhill time.

### Split point and segment

The we create an **intermediate split** to represent the start of the timed segment.

The end of the timed segment has to correspond to the finish line, or in other words the place where a new lap is counted.

The timed segement is then defined between the split point and the finish. It is declared as `timed only`, meaning that the time of a lap will be equal to the time of this segment. Or in other words, the connection/waiting time between segments will not be counted.

<figure><img src="https://1159484786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJRt17XpwpUQzKYPTGL7Z%2Fuploads%2FBOZttcX6fXYc8uQolIwM%2Fimage.png?alt=media&amp;token=65db025c-e9ff-4913-9c96-28bef371210b" alt=""><figcaption></figcaption></figure>

## Managing results

Results are managed as for a traditional lap race, with acquisitions pointing to the start of the segment and to the race finish.

{% hint style="info" %}
It is not necessary to specify a start time for the race
{% endhint %}

{% hint style="warning" %}
In the first round, competitors must be clocked in at the start of the section, otherwise the time for the first uphill/downhill will not be calculated as expected.
{% endhint %}

## Distances and best lap

The uphill/downhill distance is directly entered as the lap distance.

The notion of "best lap" will naturally designate in this context the best uphill/downhill time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.wiclax.com/en/all-competition-types/uphills-downhills.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
