TripLog

บันทึกของทรัพยากรการเดินทางใน Fleet Engine

การแสดง JSON
{
  "name": string,
  "status": enum (TripStatusLog),
  "tripType": enum (TripTypeLog),
  "vehicleId": string,
  "lastLocation": {
    object (VehicleLocationLog)
  },
  "currentRouteSegmentEndPoint": {
    object (TripWaypointLog)
  },
  "pickupPoint": {
    object (TerminalLocationLog)
  },
  "actualPickupPoint": {
    object (StopLocationLog)
  },
  "actualPickupArrivalPoint": {
    object (StopLocationLog)
  },
  "pickupTime": string,
  "intermediateDestinations": [
    {
      object (TerminalLocationLog)
    }
  ],
  "intermediateDestinationIndex": integer,
  "intermediateDestinationsVersion": string,
  "actualIntermediateDestinations": [
    {
      object (StopLocationLog)
    }
  ],
  "actualIntermediateDestinationArrivalPoints": [
    {
      object (StopLocationLog)
    }
  ],
  "dropoffPoint": {
    object (TerminalLocationLog)
  },
  "actualDropoffPoint": {
    object (StopLocationLog)
  },
  "dropoffTime": string,
  "remainingDistanceMeters": integer,
  "etaToFirstWaypoint": string,
  "remainingTimeToFirstWaypoint": string,
  "numberOfPassengers": integer,
  "currentRouteSegmentTraffic": {
    object (ConsumableTrafficPolylineLog)
  },
  "attributes": [
    {
      object (TripAttributeLog)
    }
  ]
}
ช่อง
name

string

ชื่อทรัพยากรการเดินทางในรูปแบบ providers/{providerId}/trips/{tripId}

status

enum (TripStatusLog)

สถานะการเดินทาง

tripType

enum (TripTypeLog)

ประเภทการเดินทาง

vehicleId

string

รหัสของยานพาหนะที่กําหนดการเดินทาง

lastLocation

object (VehicleLocationLog)

ตำแหน่งที่รายงานล่าสุดของยานพาหนะตามเส้นทาง

currentRouteSegmentEndPoint

object (TripWaypointLog)

จุดสังเกตที่ currentRouteSegment สิ้นสุด

pickupPoint

object (TerminalLocationLog)

สถานที่ที่ลูกค้าระบุว่าจะให้ไปรับ

actualPickupPoint

object (StopLocationLog)

สถานที่จริงที่ลูกค้าได้รับการรับส่ง

actualPickupArrivalPoint

object (StopLocationLog)

เวลาและตำแหน่งจริงที่โชเฟอร์มาถึงจุดรับ ช่องนี้ช่วยให้ผู้ให้บริการแสดงความคิดเห็นเกี่ยวกับข้อมูลการมาถึงจริงที่จุดรับ

pickupTime

string (Timestamp format)

เวลาส่งสินค้าของลูกค้า อาจเป็นอนาคตหรือที่ผ่านมา

ใช้ RFC 3339 ซึ่งเอาต์พุตที่สร้างขึ้นจะเป็นรูปแบบ Z-normalized เสมอ และใช้ตัวเลขทศนิยม 0, 3, 6 หรือ 9 ระบบยังยอมรับออฟเซตอื่นๆ นอกเหนือจาก "Z" ด้วย ตัวอย่างเช่น "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" หรือ "2014-10-02T15:01:23+05:30"

intermediateDestinations[]

object (TerminalLocationLog)

จุดแวะพักระหว่างทางตามลำดับที่ขอ (นอกเหนือจากจุดรับและจุดส่ง)

intermediateDestinationIndex

integer

เมื่อ TripStatus เป็น ENROUTE_TO_INTERMEDIATE_DESTINATION ซึ่งเป็นตัวเลขระหว่าง [0..N-1] ที่ระบุปลายทางระหว่างทางที่ยานพาหนะจะข้ามไป เมื่อ TripStatus เป็น ARRIVED_AT_INTERMEDIATE_DESTINATION จะเป็นตัวเลขระหว่าง [0..N-1] ที่ระบุปลายทางระหว่างซึ่งเป็นตำแหน่งปัจจุบันของยานพาหนะ

intermediateDestinationsVersion

string (Timestamp format)

เวอร์ชันของปลายทางกลางที่ระบุ

ใช้ RFC 3339 ซึ่งเอาต์พุตที่สร้างขึ้นจะเป็นรูปแบบ Z-normalized เสมอ และใช้ตัวเลขทศนิยม 0, 3, 6 หรือ 9 ระบบยังยอมรับออฟเซตอื่นๆ นอกเหนือจาก "Z" ด้วย ตัวอย่างเช่น "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" หรือ "2014-10-02T15:01:23+05:30"

actualIntermediateDestinations[]

object (StopLocationLog)

เวลาและสถานที่จริงที่ลูกค้าได้รับการรับส่งจากปลายทางกลาง ช่องนี้ช่วยให้ผู้ให้บริการแสดงความคิดเห็นเกี่ยวกับข้อมูลการไปรับจริงที่จุดหมายระหว่างทาง

actualIntermediateDestinationArrivalPoints[]

object (StopLocationLog)

เวลาและสถานที่จริงที่คนขับรถมาถึงจุดหมายระหว่างทาง ช่องนี้ช่วยให้ผู้ให้บริการแสดงความคิดเห็นเกี่ยวกับข้อมูลการมาถึงจริงที่จุดหมายพักกลาง

dropoffPoint

object (TerminalLocationLog)

สถานที่ที่ลูกค้าระบุว่าจะให้ส่งสินค้า

actualDropoffPoint

object (StopLocationLog)

สถานที่จริงที่ลูกค้าได้รับการส่ง

dropoffTime

string (Timestamp format)

เวลาที่จะส่งหรือส่งลูกค้าแล้ว

ใช้ RFC 3339 ซึ่งเอาต์พุตที่สร้างขึ้นจะเป็นรูปแบบ Z-normalized เสมอ และใช้ตัวเลขทศนิยม 0, 3, 6 หรือ 9 ระบบยังยอมรับออฟเซตอื่นๆ นอกเหนือจาก "Z" ด้วย ตัวอย่างเช่น "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" หรือ "2014-10-02T15:01:23+05:30"

remainingDistanceMeters

integer

ระยะทางที่เหลือในการขับรถในเส้นทางปัจจุบัน

etaToFirstWaypoint

string (Timestamp format)

เวลาถึงจุดหมายถัดไปโดยประมาณ (รายการแรกในช่อง Trip.remaining_waypoints)

ใช้ RFC 3339 ซึ่งเอาต์พุตที่สร้างขึ้นจะเป็นรูปแบบ Z-normalized เสมอ และใช้ตัวเลขทศนิยม 0, 3, 6 หรือ 9 ระบบยังยอมรับออฟเซตอื่นๆ นอกเหนือจาก "Z" ด้วย ตัวอย่างเช่น "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" หรือ "2014-10-02T15:01:23+05:30"

remainingTimeToFirstWaypoint

string (Duration format)

เวลาที่เหลือไปยังจุดสังเกตถัดไป (รายการแรกในช่อง Trip.remaining_waypoints)

ระยะเวลาเป็นวินาทีที่มีเศษทศนิยมได้สูงสุด 9 หลัก โดยลงท้ายด้วย "s" เช่น "3.5s"

numberOfPassengers

integer

ระบุจํานวนผู้โดยสารในการเดินทางครั้งนี้โดยไม่รวมคนขับ ยานพาหนะต้องมีที่นั่งว่างจึงจะแสดงใน SearchVehicles

currentRouteSegmentTraffic

object (ConsumableTrafficPolylineLog)

สภาพการจราจรตาม currentRouteSegment (หากมี)

attributes[]

object (TripAttributeLog)

รายการแอตทริบิวต์การเดินทางที่กำหนดเอง

StopLocationLog

ตำแหน่งจริงที่จุดจอด (รับ/ส่ง) เกิดขึ้น

การแสดง JSON
{
  "timestamp": string,
  "point": {
    object (LatLng)
  }
}
ช่อง
timestamp

string (Timestamp format)

การประทับเวลาที่บันทึกตำแหน่ง

ใช้ RFC 3339 ซึ่งเอาต์พุตที่สร้างขึ้นจะเป็นรูปแบบ Z-normalized เสมอ และใช้ตัวเลขทศนิยม 0, 3, 6 หรือ 9 ระบบยังยอมรับออฟเซตอื่นๆ นอกเหนือจาก "Z" ด้วย ตัวอย่างเช่น "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" หรือ "2014-10-02T15:01:23+05:30"

point

object (LatLng)

ระบุตำแหน่งจริงของป้ายจอดรถ

TripAttributeLog

แอตทริบิวต์ที่แสดงเป็นคู่คีย์-ค่าที่เชื่อมโยงกับการเดินทาง

การแสดง JSON
{
  "key": string,

  // Union field trip_attribute_value can be only one of the following:
  "stringValue": string,
  "boolValue": boolean,
  "numberValue": number
  // End of list of possible types for union field trip_attribute_value.
}
ช่อง
key

string

คีย์ของแอตทริบิวต์

ฟิลด์สหภาพ trip_attribute_value ค่าของแอตทริบิวต์อาจเป็นสตริง บูลีน หรือเลขทศนิยม trip_attribute_value ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น
stringValue

string

ค่าแอตทริบิวต์ที่เป็นสตริง

boolValue

boolean

ค่าแอตทริบิวต์ประเภทบูลีน

numberValue

number

ค่าแอตทริบิวต์ประเภท Double