@@ -4050,6 +4050,11 @@ google.maps.JourneySharingLibrary = function() {};
4050
4050
*/
4051
4051
google.maps.JourneySharingLibrary.prototype.AutomaticViewportMode;
4052
4052
4053
+ /**
4054
+ * @type {typeof google.maps.journeySharing.DeliveryVehicleStopState}
4055
+ */
4056
+ google.maps.JourneySharingLibrary.prototype.DeliveryVehicleStopState;
4057
+
4053
4058
/**
4054
4059
* @type {typeof
4055
4060
* google.maps.journeySharing.FleetEngineDeliveryFleetLocationProvider}
@@ -4504,7 +4509,7 @@ google.maps.LatLng.prototype.toUrlValue = function(precision) {};
4504
4509
* When using `v=beta`, can be accessed by calling `const {LatLngAltitude} =
4505
4510
* await google.map.importLibrary("core")`. See
4506
4511
* https://developers.google.com/maps/documentation/javascript/libraries.
4507
- * @param {!google.maps.LatLngAltitude|!google.maps.LatLngAltitudeLiteral|!google.maps.LatLng |!google.maps.LatLngLiteral }
4512
+ * @param {!google.maps.LatLngAltitude|!google.maps.LatLngAltitudeLiteral|!google.maps.LatLngLiteral |!google.maps.LatLng }
4508
4513
* value The initializing value.
4509
4514
* @param {boolean=} noClampNoWrap Whether to preserve the initialization
4510
4515
* values, even if they may not necessarily be valid latitude values in the
@@ -4537,7 +4542,8 @@ google.maps.LatLngAltitude.prototype.lng;
4537
4542
4538
4543
/**
4539
4544
* Comparison function.
4540
- * @param {?google.maps.LatLngAltitude} other Another LatLngAltitude object.
4545
+ * @param {null|!google.maps.LatLngAltitude} other Another LatLngAltitude
4546
+ * object.
4541
4547
* @return {boolean} Whether the two objects are equal.
4542
4548
*/
4543
4549
google.maps.LatLngAltitude.prototype.equals = function(other) {};
@@ -10645,6 +10651,54 @@ google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams =
10645
10651
google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams
10646
10652
.prototype.vehicle;
10647
10653
10654
+ /**
10655
+ * Available only in the v=beta channel: https://goo.gle/3oAthT3.
10656
+ *
10657
+ * DeliveryVehicleStop type
10658
+ * @record
10659
+ */
10660
+ google.maps.journeySharing.DeliveryVehicleStop = function() {};
10661
+
10662
+ /**
10663
+ * The list of Tasks to be performed at this stop. <ul> <li><code>id</code>: the
10664
+ * ID of the task. <li><code>extraDurationMillis</code>: the extra time it takes
10665
+ * to perform the task, in milliseconds. </ul>
10666
+ * @type {!Array<{id:?string, extraDurationMillis:?number}>}
10667
+ */
10668
+ google.maps.journeySharing.DeliveryVehicleStop.prototype.tasks;
10669
+
10670
+ /**
10671
+ * Available only in the v=beta channel: https://goo.gle/3oAthT3.
10672
+ *
10673
+ * The current state of a {@link
10674
+ * google.maps.journeySharing.DeliveryVehicleStop}.
10675
+ *
10676
+ * When using `v=beta`, can be accessed by calling
10677
+ * `const {DeliveryVehicleStopState} = await
10678
+ * google.map.importLibrary("journeySharing")`. See
10679
+ * https://developers.google.com/maps/documentation/javascript/libraries.
10680
+ * @enum {string}
10681
+ */
10682
+ google.maps.journeySharing.DeliveryVehicleStopState = {
10683
+ /**
10684
+ * Arrived at stop. Assumes that when the vehicle is routing to the next stop,
10685
+ * that all previous stops have been completed.
10686
+ */
10687
+ ARRIVED: 'ARRIVED',
10688
+ /**
10689
+ * Assigned and actively routing.
10690
+ */
10691
+ ENROUTE: 'ENROUTE',
10692
+ /**
10693
+ * Created, but not actively routing.
10694
+ */
10695
+ NEW: 'NEW',
10696
+ /**
10697
+ * Unknown.
10698
+ */
10699
+ UNSPECIFIED: 'UNSPECIFIED',
10700
+ };
10701
+
10648
10702
/**
10649
10703
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
10650
10704
*
@@ -11106,13 +11160,6 @@ google.maps.journeySharing.FleetEngineShipmentLocationProvider = function(
11106
11160
google.maps.journeySharing.FleetEngineShipmentLocationProvider.prototype
11107
11161
.trackingId;
11108
11162
11109
- /**
11110
- * Returns the currently tracked task.
11111
- * @return {?google.maps.journeySharing.Task}
11112
- */
11113
- google.maps.journeySharing.FleetEngineShipmentLocationProvider.prototype
11114
- .getTask = function() {};
11115
-
11116
11163
/**
11117
11164
* Explicitly refreshes the tracked location.
11118
11165
* @return {void}
@@ -11220,11 +11267,11 @@ google.maps.journeySharing.FleetEngineShipmentLocationProviderUpdateEvent =
11220
11267
function() {};
11221
11268
11222
11269
/**
11223
- * The task structure returned by the update. Unmodifiable.
11224
- * @type {?google.maps.journeySharing.Task }
11270
+ * The task tracking info structure returned by the update. Unmodifiable.
11271
+ * @type {?google.maps.journeySharing.TaskTrackingInfo }
11225
11272
*/
11226
11273
google.maps.journeySharing.FleetEngineShipmentLocationProviderUpdateEvent
11227
- .prototype.task ;
11274
+ .prototype.taskTrackingInfo ;
11228
11275
11229
11276
/**
11230
11277
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -12192,14 +12239,11 @@ google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams =
12192
12239
function() {};
12193
12240
12194
12241
/**
12195
- * The task associated with this marker. <br><br>For information about the
12196
- * delivery vehicle servicing this task, use {@link
12197
- * google.maps.journeySharing.Task.latestVehicleLocationUpdate} and {@link
12198
- * google.maps.journeySharing.Task.remainingVehicleJourneySegments}.
12199
- * @type {!google.maps.journeySharing.Task}
12242
+ * Information for the task associated with this marker.
12243
+ * @type {!google.maps.journeySharing.TaskTrackingInfo}
12200
12244
*/
12201
12245
google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams.prototype
12202
- .task ;
12246
+ .taskTrackingInfo ;
12203
12247
12204
12248
/**
12205
12249
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -12312,6 +12356,100 @@ google.maps.journeySharing.TaskMarkerCustomizationFunctionParams =
12312
12356
*/
12313
12357
google.maps.journeySharing.TaskMarkerCustomizationFunctionParams.prototype.task;
12314
12358
12359
+ /**
12360
+ * Available only in the v=beta channel: https://goo.gle/3oAthT3.
12361
+ *
12362
+ * The details for a task tracking info object returned by Fleet Engine.
12363
+ * @record
12364
+ */
12365
+ google.maps.journeySharing.TaskTrackingInfo = function() {};
12366
+
12367
+ /**
12368
+ * The estimated arrival time to the stop location.
12369
+ * @type {?Date}
12370
+ */
12371
+ google.maps.journeySharing.TaskTrackingInfo.prototype.estimatedArrivalTime;
12372
+
12373
+ /**
12374
+ * The estimated completion time of a Task.
12375
+ * @type {?Date}
12376
+ */
12377
+ google.maps.journeySharing.TaskTrackingInfo.prototype
12378
+ .estimatedTaskCompletionTime;
12379
+
12380
+ /**
12381
+ * Information specific to the last location update.
12382
+ * @type {?google.maps.journeySharing.VehicleLocationUpdate}
12383
+ */
12384
+ google.maps.journeySharing.TaskTrackingInfo.prototype
12385
+ .latestVehicleLocationUpdate;
12386
+
12387
+ /**
12388
+ * The name in the format
12389
+ * "providers/{provider_id}/taskTrackingInfo/{tracking_id}", where
12390
+ * <code>tracking_id</code> represents the tracking ID.
12391
+ * @type {string}
12392
+ */
12393
+ google.maps.journeySharing.TaskTrackingInfo.prototype.name;
12394
+
12395
+ /**
12396
+ * The location where the Task will be completed.
12397
+ * @type {?google.maps.LatLng}
12398
+ */
12399
+ google.maps.journeySharing.TaskTrackingInfo.prototype.plannedLocation;
12400
+
12401
+ /**
12402
+ * The total remaining distance in meters to the <code>VehicleStop</code> of
12403
+ * interest.
12404
+ * @type {?number}
12405
+ */
12406
+ google.maps.journeySharing.TaskTrackingInfo.prototype
12407
+ .remainingDrivingDistanceMeters;
12408
+
12409
+ /**
12410
+ * Indicates the number of stops the vehicle remaining until the task stop is
12411
+ * reached, including the task stop. For example, if the vehicle's next stop
12412
+ * is the task stop, the value will be 1.
12413
+ * @type {?number}
12414
+ */
12415
+ google.maps.journeySharing.TaskTrackingInfo.prototype.remainingStopCount;
12416
+
12417
+ /**
12418
+ * A list of points which when connected forms a polyline of the vehicle's
12419
+ * expected route to the location of this task.
12420
+ * @type {?Array<!google.maps.LatLng>}
12421
+ */
12422
+ google.maps.journeySharing.TaskTrackingInfo.prototype.routePolylinePoints;
12423
+
12424
+ /**
12425
+ * The current execution state of the Task.
12426
+ * @type {?string}
12427
+ */
12428
+ google.maps.journeySharing.TaskTrackingInfo.prototype.state;
12429
+
12430
+ /**
12431
+ * The outcome of attempting to execute a Task.
12432
+ * @type {?string}
12433
+ */
12434
+ google.maps.journeySharing.TaskTrackingInfo.prototype.taskOutcome;
12435
+
12436
+ /**
12437
+ * The time when the Task's outcome was set by the provider.
12438
+ * @type {?Date}
12439
+ */
12440
+ google.maps.journeySharing.TaskTrackingInfo.prototype.taskOutcomeTime;
12441
+
12442
+ /**
12443
+ * The tracking ID of a Task.<br> <ul> <li>Must be a valid Unicode string.</li>
12444
+ * <li>Limited to a maximum length of 64 characters.</li> <li>Normalized
12445
+ * according to <a href="http://www.unicode.org/reports/tr15/">Unicode
12446
+ * Normalization Form C</a>.</li> <li>May not contain any of the following ASCII
12447
+ * characters: '/', ':', '?', ',', or
12448
+ * '#'.</li> </ul>
12449
+ * @type {string}
12450
+ */
12451
+ google.maps.journeySharing.TaskTrackingInfo.prototype.trackingId;
12452
+
12315
12453
/**
12316
12454
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
12317
12455
*
@@ -12464,32 +12602,28 @@ google.maps.journeySharing.VehicleJourneySegment = function() {};
12464
12602
* The travel distance from the previous stop to this stop, in meters.
12465
12603
* @type {?number}
12466
12604
*/
12467
- google.maps.journeySharing.VehicleJourneySegment.prototype.distanceMeters;
12605
+ google.maps.journeySharing.VehicleJourneySegment.prototype
12606
+ .drivingDistanceMeters;
12468
12607
12469
12608
/**
12470
- * The travel time from the previous stop to this stop, in milliseconds.
12609
+ * The travel time from the previous stop this stop, in milliseconds.
12471
12610
* @type {?number}
12472
12611
*/
12473
- google.maps.journeySharing.VehicleJourneySegment.prototype.durationMillis;
12612
+ google.maps.journeySharing.VehicleJourneySegment.prototype
12613
+ .drivingDurationMillis;
12474
12614
12475
12615
/**
12476
- * The extra travel time due to the durations of the stop's tasks, in
12477
- * milliseconds.
12478
- * @type {?number}
12479
- */
12480
- google.maps.journeySharing.VehicleJourneySegment.prototype.extraDurationMillis;
12481
-
12482
- /**
12483
- * The actual stop location.
12484
- * @type {?google.maps.LatLngLiteral}
12616
+ * The path from the previous waypoint (or the vehicle's current location,
12617
+ * if this waypoint is the first in the list of waypoints) to this waypoint.
12618
+ * @type {?Array<!google.maps.LatLngLiteral>}
12485
12619
*/
12486
- google.maps.journeySharing.VehicleJourneySegment.prototype.location ;
12620
+ google.maps.journeySharing.VehicleJourneySegment.prototype.path ;
12487
12621
12488
12622
/**
12489
- * The path from the previous stop to this stop .
12490
- * @type {?Array<!google.maps.LatLngLiteral >}
12623
+ * The stops to be served by this vehicle .
12624
+ * @type {?Array<!google.maps.journeySharing.DeliveryVehicleStop >}
12491
12625
*/
12492
- google.maps.journeySharing.VehicleJourneySegment.prototype.path ;
12626
+ google.maps.journeySharing.VehicleJourneySegment.prototype.stop ;
12493
12627
12494
12628
/**
12495
12629
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -12507,7 +12641,7 @@ google.maps.journeySharing.VehicleLocationUpdate.prototype.heading;
12507
12641
12508
12642
/**
12509
12643
* The location of the update.
12510
- * @type {?google.maps.LatLngLiteral}
12644
+ * @type {?google.maps.LatLngLiteral|?google.maps.LatLng }
12511
12645
*/
12512
12646
google.maps.journeySharing.VehicleLocationUpdate.prototype.location;
12513
12647
0 commit comments