# Google Maps FleetEngine V1 Client - Class ConsumableTrafficPolyline (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.1 0.2.0 0.1.6 Reference documentation and code samples for the Google Maps FleetEngine V1 Client class ConsumableTrafficPolyline.

Traffic density along a Vehicle's path.

Generated from protobuf message `maps.fleetengine.v1.ConsumableTrafficPolyline`

## Namespace

Google \\ Maps \\ FleetEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ speed_reading_interval` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.SpeedReadingInterval>` Traffic speed along the path from the previous waypoint to the current waypoint. |
| `↳ encoded_path_to_waypoint` | `string` The path the driver is taking from the previous waypoint to the current waypoint. This path has landmarks in it so clients can show traffic markers along the path (see `speed_reading_interval`). Decoding is not yet supported. |

### getSpeedReadingInterval

Traffic speed along the path from the previous waypoint to the current
waypoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.SpeedReadingInterval>` |   |

### setSpeedReadingInterval

Traffic speed along the path from the previous waypoint to the current
waypoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine/latest/V1.SpeedReadingInterval>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncodedPathToWaypoint

The path the driver is taking from the previous waypoint to the current
waypoint. This path has landmarks in it so clients can show traffic markers
along the path (see `speed_reading_interval`). Decoding is not yet
supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEncodedPathToWaypoint

The path the driver is taking from the previous waypoint to the current
waypoint. This path has landmarks in it so clients can show traffic markers
along the path (see `speed_reading_interval`). Decoding is not yet
supported.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |