---
name: "getRoadInfo"
type: command
status: ok
groups: ["Roads and Airports"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getRoadInfo
revid: 377688
updated: 2026-01-02T09:03:05Z
---

# getRoadInfo

*Command · Roads and Airports · Arma 3 v2.00*

## Description

Returns road piece information.

> [!NOTE]
> - Bridges are special case. Only large bridges are part of Road Net. Small pedestrian bridges are not recognized as roads. Bridge "mapType" is `"ROAD"` so the best way to detect bridges is to check "isBridge" value. Bridges are not part of new roads and don't have the same info as other new roads, so only "mapType", "texture" (maybe "textureEnd"), "begPos", "endPos" and "isBridge" are  updated.
> - Pedestrian roads "mapType" is usually `"TRAIL"`. They are part of Road Net but excluded from path finding. Use [roadsConnectedTo](../commands/roadsConnectedTo.md) with alternative flag to find the connections between pedestrian roads.

## Syntax

```sqf
getRoadInfo road
```

**Parameters:**

- `road`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) with [mapType, width, isPedestrian, texture, textureEnd, material, begPos, endPos, isBridge, AIpathOffset]
- mapType: [String](../topics/String.md) - road segment type, could be `"HIDE"`, `"ROAD"`, `"MAIN ROAD"`, `"TRACK"`, `"TRAIL"` (see [nearestTerrainObjects](../commands/nearestTerrainObjects.md))
- width: [Number](../topics/Number.md) - road segment width
- isPedestrian: [Boolean](../topics/Boolean.md) - when [true](../commands/true.md) road is for pedestrian use only
- texture: [String](../topics/String.md) - road segment surface texture
- textureEnd: [String](../topics/String.md) - road segment surface texture
- material: [String](../topics/String.md) - road segment surface material
- begPos: [PositionASL](../topics/Position.md#positionasl) - start of the road segment
- endPos: [PositionASL](../topics/Position.md#positionasl) - finish of the road segment
- isBridge: [Boolean](../topics/Boolean.md) - when [true](../commands/true.md) road segment is a bridge
- Arma 3 v2.12 AIpathOffset: [Number](../topics/Number.md) - config value of `AIpathOffset`

## Examples

### Example 1

```sqf
private _info = getRoadInfo _road;
_info params ["_mapType", "_width", "_isPedestrian", "_texture", "_textureEnd", "_material", "_begPos", "_endPos", "_isBridge"];
private _roadDirection = _begPos getDir _endPos;
```

## See also

[nearRoads](../commands/nearRoads.md) · [roadsConnectedTo](../commands/roadsConnectedTo.md) · [isOnRoad](../commands/isOnRoad.md) · [roadAt](../commands/roadAt.md) · [nearestTerrainObjects](../commands/nearestTerrainObjects.md)

<sub>Source: [BI Community Wiki — getRoadInfo](https://community.bistudio.com/wiki/getRoadInfo) (revision 377688).</sub>
