# TLO:Heading

## Description

Object that refers to the directional heading to of a location or direction.

## Forms

|                                                                                                              |                                                                 |
| ------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------- |
| [*heading*](/macroquest/data-types-and-top-level-objects/data-types/datatype-heading.md) **Heading\[**#**]** | Creates a heading object using degrees (clockwise)              |
| [*heading*](/macroquest/data-types-and-top-level-objects/data-types/datatype-heading.md) **Heading\[y,x]**   | Creates a heading object using the heading to this y,x location |
| [*heading*](/macroquest/data-types-and-top-level-objects/data-types/datatype-heading.md) **Heading\[N,W]**   | Same as above, just an alternate method                         |

## Access to Types

* [*heading*](/macroquest/data-types-and-top-level-objects/data-types/datatype-heading.md) **heading**

## Examples

`/echo ${Heading[15].ShortName}`

Echos the shortname of the heading of 15 degrees.

`/echo ${Heading[-342,700].ShortName}`

Echos the shortname heading to the location -342,700

## See Also

* [Top-Level Objects](/macroquest/data-types-and-top-level-objects/top-level-objects.md)


---

# 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://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-heading.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.
