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 \ V1
Methods
__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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps FleetEngine V1 Client - Class SpeedReadingInterval (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.SpeedReadingInterval)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.SpeedReadingInterval)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.SpeedReadingInterval)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.SpeedReadingInterval)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.SpeedReadingInterval) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class SpeedReadingInterval.\n\nTraffic density indicator on a contiguous segment of a path. Given a path\nwith points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval\ndefines an interval and describes its traffic using the following categories.\n\nGenerated from protobuf message `maps.fleetengine.v1.SpeedReadingInterval`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getStartPolylinePointIndex\n\nThe starting index of this interval in the path.\n\nIn JSON, when the index is 0, the field will appear to be unpopulated.\n\n### setStartPolylinePointIndex\n\nThe starting index of this interval in the path.\n\nIn JSON, when the index is 0, the field will appear to be unpopulated.\n\n### getEndPolylinePointIndex\n\nThe ending index of this interval in the path.\n\nIn JSON, when the index is 0, the field will appear to be unpopulated.\n\n### setEndPolylinePointIndex\n\nThe ending index of this interval in the path.\n\nIn JSON, when the index is 0, the field will appear to be unpopulated.\n\n### getSpeed\n\nTraffic speed in this interval.\n\n### setSpeed\n\nTraffic speed in this interval."]]