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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ speed_reading_interval |
array<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 |
getSpeedReadingInterval
Traffic speed along the path from the previous waypoint to the current waypoint.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSpeedReadingInterval
Traffic speed along the path from the previous waypoint to the current waypoint.
Parameter | |
---|---|
Name | Description |
var |
array<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 |