@googlemaps/fleetengine 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,6 +282,19 @@ message VehicleLocation {
282
282
  // Accuracy of `raw_location` as a radius, in meters.
283
283
  google.protobuf.DoubleValue raw_location_accuracy = 25;
284
284
 
285
+ // The location from Android's Fused Location Provider.
286
+ google.type.LatLng flp_location = 29;
287
+
288
+ // Update timestamp of `flp_location`.
289
+ google.protobuf.Timestamp flp_update_time = 30;
290
+
291
+ // Accuracy of `flp_location` in meters as a radius.
292
+ google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31;
293
+
294
+ // Direction the vehicle is moving in degrees, as determined by the Fused
295
+ // Location Provider. 0 represents North. The valid range is [0,360).
296
+ google.protobuf.Int32Value flp_heading_degrees = 32;
297
+
285
298
  // Supplemental location provided by the integrating app.
286
299
  google.type.LatLng supplemental_location = 18;
287
300
 
@@ -335,3 +348,22 @@ enum LocationSensor {
335
348
  // The location provider on Apple operating systems.
336
349
  CORE_LOCATION = 200;
337
350
  }
351
+
352
+ // Describes a trip attribute as a key-value pair. The "key:value" string length
353
+ // cannot exceed 256 characters.
354
+ message TripAttribute {
355
+ // The attribute's key. Keys may not contain the colon character (:).
356
+ string key = 1;
357
+
358
+ // The attribute's value, can be in string, bool, or double type.
359
+ oneof trip_attribute_value {
360
+ // String typed attribute value.
361
+ string string_value = 2;
362
+
363
+ // Boolean typed attribute value.
364
+ bool bool_value = 3;
365
+
366
+ // Double typed attribute value.
367
+ double number_value = 4;
368
+ }
369
+ }
@@ -34,13 +34,13 @@ message SpeedReadingInterval {
34
34
  // Default value. This value is unused.
35
35
  SPEED_UNSPECIFIED = 0;
36
36
 
37
- // Normal speed, no slowdown is detected.
37
+ // Normal speed, no traffic delays.
38
38
  NORMAL = 1;
39
39
 
40
- // Slowdown detected, but no traffic jam formed.
40
+ // Slowdown detected, medium amount of traffic.
41
41
  SLOW = 2;
42
42
 
43
- // Traffic jam detected.
43
+ // Traffic delays.
44
44
  TRAFFIC_JAM = 3;
45
45
  }
46
46
 
@@ -222,11 +222,11 @@ message GetTripRequest {
222
222
  // If a minimum is unspecified, the route data are always retrieved.
223
223
  google.protobuf.Timestamp current_route_segment_version = 6;
224
224
 
225
- // Indicates the minimum timestamp (exclusive) for which
226
- // `Trip.remaining_waypoints` are retrieved. If they are unchanged since this
227
- // timestamp, the `remaining_waypoints` are not set in the response. If this
228
- // field is unspecified, `remaining_waypoints` is always retrieved.
229
- google.protobuf.Timestamp remaining_waypoints_version = 7;
225
+ // Deprecated: `Trip.remaining_waypoints` are always retrieved. Use
226
+ // `remaining_waypoints_route_version` to control when
227
+ // `Trip.remaining_waypoints.traffic_to_waypoint` and
228
+ // `Trip.remaining_waypoints.path_to_waypoint` data are retrieved.
229
+ google.protobuf.Timestamp remaining_waypoints_version = 7 [deprecated = true];
230
230
 
231
231
  // The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`),
232
232
  // or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default
@@ -224,6 +224,9 @@ message Trip {
224
224
  // The subset of Trip fields that are populated and how they should be
225
225
  // interpreted.
226
226
  TripView view = 31;
227
+
228
+ // A list of custom Trip attributes. Each attribute must have a unique key.
229
+ repeated TripAttribute attributes = 35;
227
230
  }
228
231
 
229
232
  // The actual location where a stop (pickup/dropoff) happened.