Optional. Road stretches that should be rendered along the polyline. Stretches are guaranteed to not overlap, and do not necessarily span the full route. In the absence of a road stretch to style, the client should apply the default for the route.
getRoadStretch
Optional. Road stretches that should be rendered along the polyline.
Stretches are guaranteed to not overlap, and do not necessarily span the
full route.
In the absence of a road stretch to style, the client should apply the
default for the route.
Optional. Road stretches that should be rendered along the polyline.
Stretches are guaranteed to not overlap, and do not necessarily span the
full route.
In the absence of a road stretch to style, the client should apply the
default for the route.
[[["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 VisualTrafficReportPolylineRendering (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.VisualTrafficReportPolylineRendering)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.VisualTrafficReportPolylineRendering)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.VisualTrafficReportPolylineRendering)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.VisualTrafficReportPolylineRendering)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.VisualTrafficReportPolylineRendering) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class VisualTrafficReportPolylineRendering.\n\nDescribes how clients should color one portion of the polyline along the\nroute.\n\nGenerated from protobuf message `maps.fleetengine.v1.VisualTrafficReportPolylineRendering`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRoadStretch\n\nOptional. Road stretches that should be rendered along the polyline.\n\nStretches are guaranteed to not overlap, and do not necessarily span the\nfull route.\nIn the absence of a road stretch to style, the client should apply the\ndefault for the route.\n\n### setRoadStretch\n\nOptional. Road stretches that should be rendered along the polyline.\n\nStretches are guaranteed to not overlap, and do not necessarily span the\nfull route.\nIn the absence of a road stretch to style, the client should apply the\ndefault for the route."]]