Reference documentation and code samples for the Google Maps FleetEngine V1 Client class SpeedReadingInterval.
Traffic density indicator on a contiguous segment of a path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval defines an interval and describes its traffic using the following categories.
Generated from protobuf message maps.fleetengine.v1.SpeedReadingInterval
Namespace
Google \ Maps \ FleetEngine \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ start_polyline_point_index |
int
The starting index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated. |
↳ end_polyline_point_index |
int
The ending index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated. |
↳ speed |
int
Traffic speed in this interval. |
getStartPolylinePointIndex
The starting index of this interval in the path.
In JSON, when the index is 0, the field will appear to be unpopulated.
Returns | |
---|---|
Type | Description |
int |
setStartPolylinePointIndex
The starting index of this interval in the path.
In JSON, when the index is 0, the field will appear to be unpopulated.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getEndPolylinePointIndex
The ending index of this interval in the path.
In JSON, when the index is 0, the field will appear to be unpopulated.
Returns | |
---|---|
Type | Description |
int |
setEndPolylinePointIndex
The ending index of this interval in the path.
In JSON, when the index is 0, the field will appear to be unpopulated.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getSpeed
Traffic speed in this interval.
Returns | |
---|---|
Type | Description |
int |
setSpeed
Traffic speed in this interval.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |