ConsumableTrafficPolyline
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir aracın yolu üzerindeki trafik yoğunluğu.
JSON gösterimi |
{
"speedReadingInterval": [
{
object (SpeedReadingInterval )
}
],
"encodedPathToWaypoint": string
} |
Alanlar |
speedReadingInterval[] |
object (SpeedReadingInterval )
Önceki yol noktasından mevcut yol noktasına giden yol boyunca trafik hızı.
|
encodedPathToWaypoint |
string
Sürücünün önceki yol noktasından mevcut yol noktasına aldığı yol. Bu yol, istemcilerin yol boyunca trafik işaretçileri gösterebilmesi için yer işaretleri içerir (speedReadingInterval bölümüne bakın). Kod çözme henüz desteklenmemektedir.
|
SpeedReadingInterval
Bir yolun bitişik segmentindeki trafik yoğunluğu göstergesi. P_0, P_1, ... , P_N (sıfır tabanlı dizin) noktalarını içeren bir yol verildiğinde SpeedReadingInterval bir aralık tanımlar ve trafiğini aşağıdaki kategorileri kullanarak açıklar.
JSON gösterimi |
{
"startPolylinePointIndex": integer,
"endPolylinePointIndex": integer,
"speed": enum (Speed )
} |
Alanlar |
startPolylinePointIndex |
integer
Yoldaki bu aralığın başlangıç dizini. JSON'da dizin 0 olduğunda alan doldurulmamış olarak görünür.
|
endPolylinePointIndex |
integer
Yoldaki bu aralığın bitiş dizini. JSON'da dizin 0 olduğunda alan doldurulmamış olarak görünür.
|
speed |
enum (Speed )
Bu aralıkta trafik hızı.
|
Hız
Poli çizgi hızının trafik verilerine göre sınıflandırılması.
Sıralamalar |
SPEED_UNSPECIFIED |
Varsayılan değer. Bu değer kullanılmamaktadır. |
NORMAL |
Normal hız, trafikte gecikme yok. |
SLOW |
Orta düzeyde trafik var ve yavaşlama algılandı. |
TRAFFIC_JAM |
Trafikte gecikme |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-31 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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,[]]