@@ -3642,8 +3642,8 @@ declare namespace google.maps {
36423642 * longitude wrapping.
36433643 */
36443644 constructor (
3645- value : google . maps . LatLngAltitudeLiteral | google . maps . LatLng |
3646- google . maps . LatLngLiteral ,
3645+ value : google . maps . LatLngAltitudeLiteral |
3646+ google . maps . LatLngLiteral | google . maps . LatLng ,
36473647 noClampNoWrap ?: boolean ) ;
36483648 /**
36493649 * Returns the altitude.
@@ -3653,7 +3653,7 @@ declare namespace google.maps {
36533653 * Comparison function.
36543654 * @param other Another LatLngAltitude object.
36553655 */
3656- equals ( other : google . maps . LatLngAltitude | null ) : boolean ;
3656+ equals ( other : null | google . maps . LatLngAltitude ) : boolean ;
36573657 /**
36583658 * Returns the latitude.
36593659 */
@@ -8417,6 +8417,53 @@ declare namespace google.maps.journeySharing {
84178417 vehicle : google . maps . journeySharing . DeliveryVehicle ;
84188418 }
84198419}
8420+ declare namespace google . maps . journeySharing {
8421+ /**
8422+ * Available only in the v=beta channel: https://goo.gle/3oAthT3.
8423+ *
8424+ * DeliveryVehicleStop type
8425+ */
8426+ interface DeliveryVehicleStop {
8427+ /**
8428+ * The list of Tasks to be performed at this stop. <ul> <li><code>id</code>:
8429+ * the ID of the task. <li><code>extraDurationMillis</code>: the extra time
8430+ * it takes to perform the task, in milliseconds. </ul>
8431+ */
8432+ tasks : { extraDurationMillis : number | null , id : string | null } [ ] ;
8433+ }
8434+ }
8435+ declare namespace google . maps . journeySharing {
8436+ /**
8437+ * Available only in the v=beta channel: https://goo.gle/3oAthT3.
8438+ *
8439+ * The current state of a {@link
8440+ * google.maps.journeySharing.DeliveryVehicleStop}.
8441+ *
8442+ * When using `v=beta`, can be accessed by calling
8443+ * `const {DeliveryVehicleStopState} = await
8444+ * google.map.importLibrary("journeySharing")`. See
8445+ * https://developers.google.com/maps/documentation/javascript/libraries.
8446+ */
8447+ enum DeliveryVehicleStopState {
8448+ /**
8449+ * Arrived at stop. Assumes that when the vehicle is routing to the next
8450+ * stop, that all previous stops have been completed.
8451+ */
8452+ ARRIVED = 'ARRIVED' ,
8453+ /**
8454+ * Assigned and actively routing.
8455+ */
8456+ ENROUTE = 'ENROUTE' ,
8457+ /**
8458+ * Created, but not actively routing.
8459+ */
8460+ NEW = 'NEW' ,
8461+ /**
8462+ * Unknown.
8463+ */
8464+ UNSPECIFIED = 'UNSPECIFIED' ,
8465+ }
8466+ }
84208467declare namespace google . maps . journeySharing {
84218468 /**
84228469 * Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -8828,10 +8875,6 @@ declare namespace google.maps.journeySharing {
88288875 */
88298876 constructor ( options : google . maps . journeySharing
88308877 . FleetEngineShipmentLocationProviderOptions ) ;
8831- /**
8832- * Returns the currently tracked task.
8833- */
8834- getTask ( ) : google . maps . journeySharing . Task | null ;
88358878 /**
88368879 * Explicitly refreshes the tracked location.
88378880 */
@@ -8931,9 +8974,9 @@ declare namespace google.maps.journeySharing {
89318974 */
89328975 interface FleetEngineShipmentLocationProviderUpdateEvent {
89338976 /**
8934- * The task structure returned by the update. Unmodifiable.
8977+ * The task tracking info structure returned by the update. Unmodifiable.
89358978 */
8936- task : google . maps . journeySharing . Task | null ;
8979+ taskTrackingInfo : google . maps . journeySharing . TaskTrackingInfo | null ;
89378980 }
89388981}
89398982declare namespace google . maps . journeySharing {
@@ -9840,12 +9883,9 @@ declare namespace google.maps.journeySharing {
98409883 interface ShipmentMarkerCustomizationFunctionParams extends
98419884 google . maps . journeySharing . MarkerCustomizationFunctionParams {
98429885 /**
9843- * The task associated with this marker. <br><br>For information about the
9844- * delivery vehicle servicing this task, use {@link
9845- * google.maps.journeySharing.Task.latestVehicleLocationUpdate} and {@link
9846- * google.maps.journeySharing.Task.remainingVehicleJourneySegments}.
9886+ * Information for the task associated with this marker.
98479887 */
9848- task : google . maps . journeySharing . Task ;
9888+ taskTrackingInfo : google . maps . journeySharing . TaskTrackingInfo ;
98499889 }
98509890}
98519891declare namespace google . maps . journeySharing {
@@ -9935,6 +9975,76 @@ declare namespace google.maps.journeySharing {
99359975 task : google . maps . journeySharing . Task ;
99369976 }
99379977}
9978+ declare namespace google . maps . journeySharing {
9979+ /**
9980+ * Available only in the v=beta channel: https://goo.gle/3oAthT3.
9981+ *
9982+ * The details for a task tracking info object returned by Fleet Engine.
9983+ */
9984+ interface TaskTrackingInfo {
9985+ /**
9986+ * The estimated arrival time to the stop location.
9987+ */
9988+ estimatedArrivalTime : Date | null ;
9989+ /**
9990+ * The estimated completion time of a Task.
9991+ */
9992+ estimatedTaskCompletionTime : Date | null ;
9993+ /**
9994+ * Information specific to the last location update.
9995+ */
9996+ latestVehicleLocationUpdate :
9997+ google . maps . journeySharing . VehicleLocationUpdate | null ;
9998+ /**
9999+ * The name in the format
10000+ * "providers/{provider_id}/taskTrackingInfo/{tracking_id}", where
10001+ * <code>tracking_id</code> represents the tracking ID.
10002+ */
10003+ name : string ;
10004+ /**
10005+ * The location where the Task will be completed.
10006+ */
10007+ plannedLocation : google . maps . LatLng | null ;
10008+ /**
10009+ * The total remaining distance in meters to the <code>VehicleStop</code> of
10010+ * interest.
10011+ */
10012+ remainingDrivingDistanceMeters : number | null ;
10013+ /**
10014+ * Indicates the number of stops the vehicle remaining until the task stop
10015+ * is reached, including the task stop. For example, if the vehicle's
10016+ * next stop is the task stop, the value will be 1.
10017+ */
10018+ remainingStopCount : number | null ;
10019+ /**
10020+ * A list of points which when connected forms a polyline of the
10021+ * vehicle's expected route to the location of this task.
10022+ */
10023+ routePolylinePoints : google . maps . LatLng [ ] | null ;
10024+ /**
10025+ * The current execution state of the Task.
10026+ */
10027+ state : string | null ;
10028+ /**
10029+ * The outcome of attempting to execute a Task.
10030+ */
10031+ taskOutcome : string | null ;
10032+ /**
10033+ * The time when the Task's outcome was set by the provider.
10034+ */
10035+ taskOutcomeTime : Date | null ;
10036+ /**
10037+ * The tracking ID of a Task.<br> <ul> <li>Must be a valid Unicode
10038+ * string.</li> <li>Limited to a maximum length of 64 characters.</li>
10039+ * <li>Normalized according to <a
10040+ * href="http://www.unicode.org/reports/tr15/">Unicode Normalization Form
10041+ * C</a>.</li> <li>May not contain any of the following ASCII characters:
10042+ * '/', ':', '?', ',', or
10043+ * '#'.</li> </ul>
10044+ */
10045+ trackingId : string ;
10046+ }
10047+ }
993810048declare namespace google . maps . journeySharing {
993910049 /**
994010050 * Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -10056,24 +10166,21 @@ declare namespace google.maps.journeySharing {
1005610166 /**
1005710167 * The travel distance from the previous stop to this stop, in meters.
1005810168 */
10059- distanceMeters : number | null ;
10060- /**
10061- * The travel time from the previous stop to this stop, in milliseconds.
10062- */
10063- durationMillis : number | null ;
10169+ drivingDistanceMeters : number | null ;
1006410170 /**
10065- * The extra travel time due to the durations of the stop's tasks, in
10066- * milliseconds.
10171+ * The travel time from the previous stop this stop, in milliseconds.
1006710172 */
10068- extraDurationMillis : number | null ;
10173+ drivingDurationMillis : number | null ;
1006910174 /**
10070- * The actual stop location.
10175+ * The path from the previous waypoint (or the vehicle's current
10176+ * location, if this waypoint is the first in the list of waypoints) to this
10177+ * waypoint.
1007110178 */
10072- location : google . maps . LatLngLiteral | null ;
10179+ path : google . maps . LatLngLiteral [ ] | null ;
1007310180 /**
10074- * The path from the previous stop to this stop .
10181+ * The stops to be served by this vehicle .
1007510182 */
10076- path : google . maps . LatLngLiteral [ ] | null ;
10183+ stop : google . maps . journeySharing . DeliveryVehicleStop [ ] | null ;
1007710184 }
1007810185}
1007910186declare namespace google . maps . journeySharing {
@@ -10090,7 +10197,7 @@ declare namespace google.maps.journeySharing {
1009010197 /**
1009110198 * The location of the update.
1009210199 */
10093- location : google . maps . LatLngLiteral | null ;
10200+ location : google . maps . LatLngLiteral | null | google . maps . LatLng ;
1009410201 /**
1009510202 * The speed in kilometers per hour.
1009610203 */
0 commit comments