ConsumableTrafficPolyline
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वाहन के रास्ते पर ट्रैफ़िक की संख्या.
JSON के काेड में दिखाना |
{
"speedReadingInterval": [
{
object (SpeedReadingInterval )
}
],
"encodedPathToWaypoint": string
} |
फ़ील्ड |
speedReadingInterval[] |
object (SpeedReadingInterval )
पिछले वेपॉइंट से मौजूदा वेपॉइंट तक के रास्ते पर ट्रैफ़िक की रफ़्तार.
|
encodedPathToWaypoint |
string
वह रास्ता जिस पर ड्राइवर, पिछले वेपॉइंट से मौजूदा वेपॉइंट तक जा रहा है. इस पाथ में लैंडमार्क होते हैं, ताकि क्लाइंट पाथ के साथ ट्रैफ़िक मार्कर दिखा सकें (speedReadingInterval देखें). फ़िलहाल, डिकोडिंग की सुविधा उपलब्ध नहीं है.
|
SpeedReadingInterval
किसी पाथ के एक सेगमेंट पर ट्रैफ़िक की संख्या दिखाने वाला इंडिकेटर. P_0, P_1, ... , P_N (शून्य पर आधारित इंडेक्स) पॉइंट वाले पाथ के लिए, SpeedReadingInterval एक इंटरवल तय करता है और इन कैटगरी का इस्तेमाल करके उसके ट्रैफ़िक के बारे में बताता है.
JSON के काेड में दिखाना |
{
"startPolylinePointIndex": integer,
"endPolylinePointIndex": integer,
"speed": enum (Speed )
} |
फ़ील्ड |
startPolylinePointIndex |
integer
पाथ में इस इंटरवल का शुरुआती इंडेक्स. JSON में, जब इंडेक्स 0 होता है, तो फ़ील्ड में कोई वैल्यू नहीं दिखती.
|
endPolylinePointIndex |
integer
पाथ में इस इंटरवल का आखिरी इंडेक्स. JSON में, जब इंडेक्स 0 होता है, तो फ़ील्ड में कोई वैल्यू नहीं दिखती.
|
speed |
enum (Speed )
इस इंटरवल में ट्रैफ़िक की रफ़्तार.
|
स्पीड
ट्रैफ़िक डेटा के आधार पर, पॉलीलाइन की स्पीड की कैटगरी तय करना.
Enums |
SPEED_UNSPECIFIED |
डिफ़ॉल्ट मान. इस वैल्यू का इस्तेमाल नहीं किया जाता. |
NORMAL |
सामान्य रफ़्तार, ट्रैफ़िक की वजह से देर नहीं होगी. |
SLOW |
ट्रैफ़िक में कमी का पता चला, ट्रैफ़िक सामान्य है. |
TRAFFIC_JAM |
ट्रैफ़िक की वजह से देर होगी. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eConsumableTrafficPolyline provides traffic density information along a vehicle's path using encoded polylines and speed readings.\u003c/p\u003e\n"],["\u003cp\u003eSpeedReadingInterval objects represent traffic conditions on segments of the path, indicating speed levels like normal, slow, or traffic jam.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003espeed\u003c/code\u003e field within SpeedReadingInterval classifies traffic speed into categories: \u003ccode\u003eSPEED_UNSPECIFIED\u003c/code\u003e, \u003ccode\u003eNORMAL\u003c/code\u003e, \u003ccode\u003eSLOW\u003c/code\u003e, and \u003ccode\u003eTRAFFIC_JAM\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eencodedPathToWaypoint\u003c/code\u003e is a string representing the path with landmarks, enabling the display of traffic markers; decoding is not yet supported.\u003c/p\u003e\n"]]],["The provided content describes traffic data along a vehicle's path using JSON representations. Key information includes `speedReadingInterval`, which details traffic speed between waypoints. This is represented by a list of segments, each defined by `startPolylinePointIndex`, `endPolylinePointIndex`, and `speed`. The `encodedPathToWaypoint` field indicates the path from the previous to the current waypoint. The speed within each interval is categorized as `NORMAL`, `SLOW`, or `TRAFFIC_JAM`. Fields with 0 index will be unpopulated in the JSON representation.\n"],null,["# ConsumableTrafficPolyline\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SpeedReadingInterval](#SpeedReadingInterval)\n - [JSON representation](#SpeedReadingInterval.SCHEMA_REPRESENTATION)\n- [Speed](#Speed)\n\nTraffic density along a Vehicle's path.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"speedReadingInterval\": [ { object (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#SpeedReadingInterval) } ], \"encodedPathToWaypoint\": string } ``` |\n\n| Fields ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `speedReadingInterval[]` | `object (`[SpeedReadingInterval](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#SpeedReadingInterval)`)` Traffic speed along the path from the previous waypoint to the current waypoint. |\n| `encodedPathToWaypoint` | `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 `speedReadingInterval`). Decoding is not yet supported. |\n\nSpeedReadingInterval\n--------------------\n\nTraffic 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.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"startPolylinePointIndex\": integer, \"endPolylinePointIndex\": integer, \"speed\": enum (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#Speed) } ``` |\n\n| Fields ||\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startPolylinePointIndex` | `integer` The starting index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated. |\n| `endPolylinePointIndex` | `integer` The ending index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated. |\n| `speed` | `enum (`[Speed](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#Speed)`)` Traffic speed in this interval. |\n\nSpeed\n-----\n\nThe classification of polyline speed based on traffic data.\n\n| Enums ||\n|---------------------|----------------------------------------------|\n| `SPEED_UNSPECIFIED` | Default value. This value is unused. |\n| `NORMAL` | Normal speed, no traffic delays. |\n| `SLOW` | Slowdown detected, medium amount of traffic. |\n| `TRAFFIC_JAM` | Traffic delays. |"]]