> For the complete documentation index, see [llms.txt](https://docs.openbrim.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openbrim.org/developers/paramml-developer-guide/core-objects/alignment-object/horizontal-segments.md).

# Horizontal Segments

Each "Alignment" object must have at least one object to define the horizontal control line. Multiple segments can be combined to define the full horizontal alignment of the road. Multiple segments can be combined to define the full horizontal alignment of the road.

Horizontal segments are used to design the route between the two predetermined stops in the plan. The elements of "**Alignment**," "**Horizontal Curve**," and "**Transition Curve**" can be utilized in defining the horizontal segments. The road design takes into account ergonomics and cost efficiency and employs a combination of these elements accordingly.

**Example:**

```xml
<O N="AlignmentObject6" T="Project" Category="3D Geometric Objects" TransAlignRule="Right">
    <!-- created by ParamML Examples on 02.02.2023 -->
    <O N="Route1" T="Alignment" Station="0" Azimuth="1.57079632679" Lat="0" Lng="0" Elev="0">
        <O N="P1" T="ElevationPoint" Station="0" Elevation="0">
            <P N="Station" V="0" />
            <P N="Grade" V="0" />
            <P N="Elevation" V="0" />
        </O>
        <O N="P2" T="ElevationPoint" Station="0" Elevation="0">
            <P N="Station" V="200" />
            <P N="Grade" V="0" />
            <P N="Elevation" V="0" />
        </O>
        <O N="P3" T="ElevationPoint" Station="0" Elevation="0">
            <P N="Station" V="600" />
            <P N="Grade" V="0" />
            <P N="Elevation" V="600" />
        </O>
        <O T="Straight" Length="1200" />
        <O N="CR1" T="CrossSection" Station="0" LeftEdgeToHCL="100">
            <O N="Left1" T="CrossSectionSegment" Width="100" Slope="0.2" />
            <O N="Left1" T="CrossSectionSegment" Width="100" Slope="-0.2" />
        </O>
        <O N="CR2" T="Circular">
            <P N="Length" V="300" />
            <P N="Radius" V="200" />
            <P N="Direction" V="RIGHT" />
        </O>
    </O>
    <O N="Route2" T="Alignment" Y="600" Station="100" Azimuth="1.57079632679" Lat="0" Lng="0" Elev="0">
        <O T="Straight" Length="200" />
        <O T="CrossSection" Station="0" LeftEdgeToHCL="240">
            <O T="CrossSectionSegment" Width="240" Slope="0" />
        </O>
        <O T="ElevationPoint" Station="0" Elevation="0" />
        <O N="CR2" T="Circular">
            <P N="Length" V="300" />
            <P N="Radius" V="200" />
            <P N="Direction" V="RIGHT" />
        </O>
    </O>
    <O N="Route3" T="Alignment" Y="1200" Station="150" Azimuth="1.57079632679" Lat="0" Lng="0" Elev="0">
        <O T="CrossSection" Station="0" LeftEdgeToHCL="240">
            <O T="CrossSectionSegment" Width="240" Slope="0" />
        </O>
        <O N="TangentSeg_1" T="Straight" Length="300" />
        <O N="Spiral_Bk" T="Spiral" Length="500" Direction="Dir" />
        <O N="Curve_101" T="Circular">
            <P N="Length" V="1500" />
            <P N="Radius" V="1200" />
            <P N="Direction" V="'RIGHT'" />
        </O>
    </O>
</O>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2160558096/image-20230202-162635.png?api=v2) To view this example in the library, see (<https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&obj=objidvdpg767eg6o8vp1z037m&folder=3D+Geometric+Objects>)

**Parameters of Straight Object:**

The T=""straight" object is used to define straight segments in the horizontal alignment and can only be included within an "Alignment" object.

| **Label** | **Mandatory** | **Name and Type Attributes** | **Default Description and Value Attributes**          | **Other Attributes**                     |
| --------- | ------------- | ---------------------------- | ----------------------------------------------------- | ---------------------------------------- |
| Length    | Yes           | N="Length"                   | D="Length: The length of the straight segment." V="0" | Role="Input" UT="Length" UC="Coordinate" |

**Parameters of Circular Object:**

The T="Circular" object is used to define a curved (Alignment), circular portion of the horizontal alignment.

\| | **Label** | **Mandatory** | **Name and Type Attributes** | **Default Description and Value Attributes** | **Other Attributes** | | --- | --- | --- | --- | --- | | 1 | Length | Yes | N="Length" | D="Length: The length of the circular segment." V="0" | Role="Input" UT="Length" UC="Coordinate" | | 2 | Radius | Yes | N="Radius" | D="Radius: The radius of curvature for the curve segment." V="0" | Role="Input" UT="Length" UC="Coordinate" | | 3 | Direction | Yes | N="Direction" | D="Direction: The direction of the curve at start looking up-station. \[Left=LEFT/Right=RIGHT]" V="LEFT" | Role="Input" |

**Parameters of Sprial Object:**

The T="Spiral" object is used to define transitional segments in the horizontal alignment.

\| | **Label** | **Mandatory** | **Name and Type Attributes** | **Default Description and Value Attributes** | **Other Attributes** | | --- | --- | --- | --- | --- | | 1 | Length | Yes | N="Length" | D="Length: The length of the spiral segment." V="0" | Role="Input" UT="Length" UC="Coordinate" | | 2 | Direction | Yes | N="Direction" T="Text" | D="Direction: The direction of the spiral at start looking up-station. \[Left=LEFT/Right=RIGHT]" V="LEFT" | Role="Input" | | 3 | Start Radius | Yes | N="RadiusStart" | D="Start Radius: Optional radius at the start of spiral segment. Ignored if spiral follows a circular curve." V="0" | Role="Input" UT="Length" UC="Coordinate" | | 4 | End Radius | Yes | N="RadiusEnd" | D="End Radius: Optional radius at the end of spiral segment. Ignored if spiral follows a circular curve, or Start Radius is specified." V="0" | Role="Input" UT="Length" UC="Coordinate" |


---

# 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 dynamically by asking a question.

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

```
GET https://docs.openbrim.org/developers/paramml-developer-guide/core-objects/alignment-object/horizontal-segments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
