@googlemaps/fleetengine-delivery 0.5.0 → 0.6.1

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.
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
1
  [//]: # "This README.md file is auto-generated, all changes to this file will be lost."
2
- [//]: # "To regenerate it, use `python -m synthtool`."
2
+ [//]: # "The comments you see below are used to generate those parts of the template in later states."
3
3
  <img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
4
4
 
5
- # [Last Mile Fleet Solution Delivery API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-fleetengine-delivery)
6
-
7
- [![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
8
- [![npm version](https://img.shields.io/npm/v/@googlemaps/fleetengine-delivery.svg)](https://www.npmjs.org/package/@googlemaps/fleetengine-delivery)
9
-
5
+ # [Last Mile Fleet Solution Delivery API: Nodejs Client][homepage]
10
6
 
7
+ This library is considered to be in **preview**. This means it is still a
8
+ work-in-progress and under active development. Any release is subject to
9
+ backwards-incompatible changes at any time.
11
10
 
11
+ [![npm version](https://img.shields.io/npm/v/@googlemaps/fleetengine-delivery.svg)](https://www.npmjs.org/package/@googlemaps/fleetengine-delivery)
12
12
 
13
13
  Last Mile Fleet Solution Delivery API client for Node.js
14
14
 
15
+ [//]: # "partials.introduction"
15
16
 
16
17
  A comprehensive list of changes in each version may be found in
17
- [the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-fleetengine-delivery/CHANGELOG.md).
18
+ [the CHANGELOG][homepage_changelog].
18
19
 
19
- * [Last Mile Fleet Solution Delivery API Node.js Client API Reference][client-docs]
20
- * [Last Mile Fleet Solution Delivery API Documentation][product-docs]
21
- * [github.com/googleapis/google-cloud-node/packages/google-maps-fleetengine-delivery](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-fleetengine-delivery)
20
+ * [Last Mile Fleet Solution Delivery API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/delivery/latest)
21
+ * [Last Mile Fleet Solution Delivery API Documentation](https://developers.google.com/maps/documentation/transportation-logistics/mobility)
22
22
 
23
23
  Read more about the client libraries for Cloud APIs, including the older
24
24
  Google APIs Client Libraries, in [Client Libraries Explained][explained].
@@ -27,18 +27,15 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
27
27
 
28
28
  **Table of contents:**
29
29
 
30
-
31
30
  * [Quickstart](#quickstart)
32
31
  * [Before you begin](#before-you-begin)
33
32
  * [Installing the client library](#installing-the-client-library)
34
- * [Using the client library](#using-the-client-library)
35
- * [Samples](#samples)
33
+
36
34
  * [Versioning](#versioning)
37
35
  * [Contributing](#contributing)
38
36
  * [License](#license)
39
37
 
40
38
  ## Quickstart
41
-
42
39
  ### Before you begin
43
40
 
44
41
  1. [Select or create a Cloud Platform project][projects].
@@ -46,122 +43,54 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
46
43
  1. [Enable the Last Mile Fleet Solution Delivery API API][enable_api].
47
44
  1. [Set up authentication][auth] so you can access the
48
45
  API from your local workstation.
49
-
50
46
  ### Installing the client library
51
47
 
52
48
  ```bash
53
49
  npm install @googlemaps/fleetengine-delivery
54
50
  ```
55
51
 
52
+ ## Terms of Service
56
53
 
57
- ### Using the client library
58
-
59
- ```javascript
60
- /**
61
- * This snippet has been automatically generated and should be regarded as a code template only.
62
- * It will require modifications to work.
63
- * It may require correct/in-range values for request initialization.
64
- * TODO(developer): Uncomment these variables before running the sample.
65
- */
66
- /**
67
- * Optional. The standard Delivery API request header.
68
- */
69
- // const header = {}
70
- /**
71
- * Required. Must be in the format `providers/{provider}`.
72
- * The `provider` must be the Google Cloud Project ID.
73
- * For example, `sample-cloud-project`.
74
- */
75
- // const parent = 'abc123'
76
- /**
77
- * Optional. The maximum number of vehicles to return. The service may return
78
- * fewer than this number. If you don't specify this number, then the server
79
- * determines the number of results to return.
80
- */
81
- // const pageSize = 1234
82
- /**
83
- * Optional. A page token, received from a previous `ListDeliveryVehicles`
84
- * call. You must provide this in order to retrieve the subsequent page.
85
- * When paginating, all other parameters provided to `ListDeliveryVehicles`
86
- * must match the call that provided the page token.
87
- */
88
- // const pageToken = 'abc123'
89
- /**
90
- * Optional. A filter query to apply when listing delivery vehicles. See
91
- * http://aip.dev/160 for examples of the filter syntax. If you don't specify
92
- * a value, or if you specify an empty string for the filter, then all
93
- * delivery vehicles are returned.
94
- * Note that the only queries supported for `ListDeliveryVehicles` are
95
- * on vehicle attributes (for example, `attributes.<key> = <value>` or
96
- * `attributes.<key1> = <value1> AND attributes.<key2> = <value2>`). Also, all
97
- * attributes are stored as strings, so the only supported comparisons against
98
- * attributes are string comparisons. In order to compare against number or
99
- * boolean values, the values must be explicitly quoted to be treated as
100
- * strings (for example, `attributes.<key> = "10"` or
101
- * `attributes.<key> = "true"`).
102
- * The maximum number of restrictions allowed in a filter query is 50. A
103
- * restriction is a part of the query of the form
104
- * `attribute.<KEY> <COMPARATOR> <VALUE>`, for example `attributes.foo = bar`
105
- * is 1 restriction.
106
- */
107
- // const filter = 'abc123'
108
- /**
109
- * Optional. A filter that limits the vehicles returned to those whose last
110
- * known location was in the rectangular area defined by the viewport.
111
- */
112
- // const viewport = {}
113
-
114
- // Imports the Delivery library
115
- const {DeliveryServiceClient} =
116
- require('@googlemaps/fleetengine-delivery').v1;
117
-
118
- // Instantiates a client
119
- const deliveryClient = new DeliveryServiceClient();
120
-
121
- async function callListDeliveryVehicles() {
122
- // Construct request
123
- const request = {
124
- parent,
125
- };
126
-
127
- // Run request
128
- const iterable = deliveryClient.listDeliveryVehiclesAsync(request);
129
- for await (const response of iterable) {
130
- console.log(response);
131
- }
132
- }
133
-
134
- callListDeliveryVehicles();
135
-
136
- ```
54
+ `@googlemaps/fleetengine-delivery` uses Google Maps Platform services. Use of Google
55
+ Maps Platform services through this library is subject to the
56
+ [Google Maps Platform Terms of Service][gmp-tos].
137
57
 
58
+ This library is not a Google Maps Platform Core Service.
59
+ Therefore, the Google Maps Platform Terms of Service (e.g., Technical
60
+ Support Services, Service Level Agreements, and Deprecation Policy)
61
+ do not apply to this library.
138
62
 
63
+ ### European Economic Area (EEA) developers
139
64
 
140
- ## Samples
65
+ If your billing address is in the European Economic Area, effective on
66
+ 8 July 2025, the [Google Maps Platform EEA Terms of Service][gmp-tos-eea]
67
+ will apply to your use of the Services. Functionality varies by region.
68
+ [Learn more][gmp-tos-eea-faq].
141
69
 
142
- Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-fleetengine-delivery/samples) directory. Each sample's `README.md` has instructions for running its sample.
143
-
144
- | Sample | Source Code | Try it |
145
- | --------------------------- | --------------------------------- | ------ |
146
- | Delivery_service.batch_create_tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.batch_create_tasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.batch_create_tasks.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
147
- | Delivery_service.create_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
148
- | Delivery_service.create_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
149
- | Delivery_service.delete_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
150
- | Delivery_service.delete_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
151
- | Delivery_service.get_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
152
- | Delivery_service.get_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
153
- | Delivery_service.get_task_tracking_info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task_tracking_info.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task_tracking_info.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
154
- | Delivery_service.list_delivery_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.list_delivery_vehicles.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.list_delivery_vehicles.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
155
- | Delivery_service.list_tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.list_tasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.list_tasks.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
156
- | Delivery_service.search_tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.search_tasks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.search_tasks.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
157
- | Delivery_service.update_delivery_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.update_delivery_vehicle.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.update_delivery_vehicle.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
158
- | Delivery_service.update_task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.update_task.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.update_task.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
159
- | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-maps-fleetengine-delivery/samples/quickstart.js,packages/google-maps-fleetengine-delivery/samples/README.md) |
70
+ [gmp-tos]: https://cloud.google.com/maps-platform/terms
71
+ [gmp-tos-eea]: https://cloud.google.com/terms/maps-platform/eea
72
+ [gmp-tos-eea-faq]: https://developers.google.com/maps/comms/eea/faq
160
73
 
74
+ ## Samples
161
75
 
76
+ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
77
+
78
+ | Sample | Source Code |
79
+ | --------------------------- | --------------------------------- |
80
+ | batch create tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.batch_create_tasks.js) |
81
+ | create delivery vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_delivery_vehicle.js) |
82
+ | create task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.create_task.js) |
83
+ | delete delivery vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_delivery_vehicle.js) |
84
+ | delete task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.delete_task.js) |
85
+ | get delivery vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_delivery_vehicle.js) |
86
+ | get task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task.js) |
87
+ | get task tracking info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.get_task_tracking_info.js) |
88
+ | list delivery vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.list_delivery_vehicles.js) |
89
+ | list tasks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.list_tasks.js) |
90
+ | update delivery vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.update_delivery_vehicle.js) |
91
+ | update task | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/delivery_service.update_task.js) |
92
+ | fleetengine | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine-delivery/samples/generated/v1/snippet_metadata_maps.fleetengine.delivery.v1.json) |
162
93
 
163
- The [Last Mile Fleet Solution Delivery API Node.js Client API Reference][client-docs] documentation
164
- also contains samples.
165
94
 
166
95
  ## Supported Node.js Versions
167
96
 
@@ -188,41 +117,29 @@ for versions compatible with Node.js 8.
188
117
 
189
118
  This library follows [Semantic Versioning](http://semver.org/).
190
119
 
191
-
192
-
193
-
194
-
195
-
196
-
197
- This library is considered to be in **preview**. This means it is still a
198
- work-in-progress and under active development. Any release is subject to
199
- backwards-incompatible changes at any time.
200
-
201
-
202
120
  More Information: [Google Cloud Platform Launch Stages][launch_stages]
203
121
 
204
122
  [launch_stages]: https://cloud.google.com/terms/launch-stages
205
123
 
206
124
  ## Contributing
207
125
 
208
- Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
126
+ Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine-delivery/CONTRIBUTING.md).
209
127
 
210
- Please note that this `README.md`, the `samples/README.md`,
128
+ Please note that this `README.md`
211
129
  and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
212
- are generated from a central template. To edit one of these files, make an edit
213
- to its templates in
214
- [directory](https://github.com/googleapis/synthtool).
130
+ are generated from a central template.
215
131
 
216
132
  ## License
217
133
 
218
134
  Apache Version 2.0
219
135
 
220
- See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
136
+ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine-delivery/LICENSE)
221
137
 
222
- [client-docs]: https://cloud.google.com/nodejs/docs/reference/fleetengine-delivery/latest
223
- [product-docs]: https://developers.google.com/maps/documentation/transportation-logistics/mobility
224
138
  [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
225
139
  [projects]: https://console.cloud.google.com/project
226
140
  [billing]: https://support.google.com/cloud/answer/6293499#enable-billing
227
141
  [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=fleetengine.googleapis.com
228
142
  [auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
143
+ [homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine-delivery/samples
144
+ [homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine-delivery/CHANGELOG.md
145
+ [homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine-delivery
@@ -144,6 +144,19 @@ message DeliveryVehicleLocation {
144
144
  // Accuracy of `raw_location` as a radius, in meters.
145
145
  google.protobuf.DoubleValue raw_location_accuracy = 25;
146
146
 
147
+ // The location from Android's Fused Location Provider.
148
+ google.type.LatLng flp_location = 29;
149
+
150
+ // Update timestamp of the `flp_location`
151
+ google.protobuf.Timestamp flp_update_time = 30;
152
+
153
+ // Accuracy of `flp_location` in meters as a radius.
154
+ google.protobuf.DoubleValue flp_latlng_accuracy_meters = 31;
155
+
156
+ // Direction the vehicle is moving in degrees, as determined by the Fused
157
+ // Location Provider. 0 represents North. The valid range is [0,360).
158
+ google.protobuf.Int32Value flp_heading_degrees = 32;
159
+
147
160
  // Supplemental location provided by the integrating app.
148
161
  google.type.LatLng supplemental_location = 18;
149
162
 
@@ -222,6 +222,18 @@ export namespace maps {
222
222
  /** DeliveryVehicleLocation rawLocationAccuracy */
223
223
  rawLocationAccuracy?: (google.protobuf.IDoubleValue|null);
224
224
 
225
+ /** DeliveryVehicleLocation flpLocation */
226
+ flpLocation?: (google.type.ILatLng|null);
227
+
228
+ /** DeliveryVehicleLocation flpUpdateTime */
229
+ flpUpdateTime?: (google.protobuf.ITimestamp|null);
230
+
231
+ /** DeliveryVehicleLocation flpLatlngAccuracyMeters */
232
+ flpLatlngAccuracyMeters?: (google.protobuf.IDoubleValue|null);
233
+
234
+ /** DeliveryVehicleLocation flpHeadingDegrees */
235
+ flpHeadingDegrees?: (google.protobuf.IInt32Value|null);
236
+
225
237
  /** DeliveryVehicleLocation supplementalLocation */
226
238
  supplementalLocation?: (google.type.ILatLng|null);
227
239
 
@@ -316,6 +328,18 @@ export namespace maps {
316
328
  /** DeliveryVehicleLocation rawLocationAccuracy. */
317
329
  public rawLocationAccuracy?: (google.protobuf.IDoubleValue|null);
318
330
 
331
+ /** DeliveryVehicleLocation flpLocation. */
332
+ public flpLocation?: (google.type.ILatLng|null);
333
+
334
+ /** DeliveryVehicleLocation flpUpdateTime. */
335
+ public flpUpdateTime?: (google.protobuf.ITimestamp|null);
336
+
337
+ /** DeliveryVehicleLocation flpLatlngAccuracyMeters. */
338
+ public flpLatlngAccuracyMeters?: (google.protobuf.IDoubleValue|null);
339
+
340
+ /** DeliveryVehicleLocation flpHeadingDegrees. */
341
+ public flpHeadingDegrees?: (google.protobuf.IInt32Value|null);
342
+
319
343
  /** DeliveryVehicleLocation supplementalLocation. */
320
344
  public supplementalLocation?: (google.type.ILatLng|null);
321
345
 
@@ -424,6 +424,10 @@
424
424
  * @property {google.protobuf.ITimestamp|null} [rawLocationTime] DeliveryVehicleLocation rawLocationTime
425
425
  * @property {maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|null} [rawLocationSensor] DeliveryVehicleLocation rawLocationSensor
426
426
  * @property {google.protobuf.IDoubleValue|null} [rawLocationAccuracy] DeliveryVehicleLocation rawLocationAccuracy
427
+ * @property {google.type.ILatLng|null} [flpLocation] DeliveryVehicleLocation flpLocation
428
+ * @property {google.protobuf.ITimestamp|null} [flpUpdateTime] DeliveryVehicleLocation flpUpdateTime
429
+ * @property {google.protobuf.IDoubleValue|null} [flpLatlngAccuracyMeters] DeliveryVehicleLocation flpLatlngAccuracyMeters
430
+ * @property {google.protobuf.IInt32Value|null} [flpHeadingDegrees] DeliveryVehicleLocation flpHeadingDegrees
427
431
  * @property {google.type.ILatLng|null} [supplementalLocation] DeliveryVehicleLocation supplementalLocation
428
432
  * @property {google.protobuf.ITimestamp|null} [supplementalLocationTime] DeliveryVehicleLocation supplementalLocationTime
429
433
  * @property {maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|null} [supplementalLocationSensor] DeliveryVehicleLocation supplementalLocationSensor
@@ -630,6 +634,38 @@
630
634
  */
631
635
  DeliveryVehicleLocation.prototype.rawLocationAccuracy = null;
632
636
 
637
+ /**
638
+ * DeliveryVehicleLocation flpLocation.
639
+ * @member {google.type.ILatLng|null|undefined} flpLocation
640
+ * @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
641
+ * @instance
642
+ */
643
+ DeliveryVehicleLocation.prototype.flpLocation = null;
644
+
645
+ /**
646
+ * DeliveryVehicleLocation flpUpdateTime.
647
+ * @member {google.protobuf.ITimestamp|null|undefined} flpUpdateTime
648
+ * @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
649
+ * @instance
650
+ */
651
+ DeliveryVehicleLocation.prototype.flpUpdateTime = null;
652
+
653
+ /**
654
+ * DeliveryVehicleLocation flpLatlngAccuracyMeters.
655
+ * @member {google.protobuf.IDoubleValue|null|undefined} flpLatlngAccuracyMeters
656
+ * @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
657
+ * @instance
658
+ */
659
+ DeliveryVehicleLocation.prototype.flpLatlngAccuracyMeters = null;
660
+
661
+ /**
662
+ * DeliveryVehicleLocation flpHeadingDegrees.
663
+ * @member {google.protobuf.IInt32Value|null|undefined} flpHeadingDegrees
664
+ * @memberof maps.fleetengine.delivery.v1.DeliveryVehicleLocation
665
+ * @instance
666
+ */
667
+ DeliveryVehicleLocation.prototype.flpHeadingDegrees = null;
668
+
633
669
  /**
634
670
  * DeliveryVehicleLocation supplementalLocation.
635
671
  * @member {google.type.ILatLng|null|undefined} supplementalLocation
@@ -750,6 +786,14 @@
750
786
  $root.google.protobuf.BoolValue.encode(message.isRoadSnapped, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
751
787
  if (message.rawLocationSensor != null && Object.hasOwnProperty.call(message, "rawLocationSensor"))
752
788
  writer.uint32(/* id 28, wireType 0 =*/224).int32(message.rawLocationSensor);
789
+ if (message.flpLocation != null && Object.hasOwnProperty.call(message, "flpLocation"))
790
+ $root.google.type.LatLng.encode(message.flpLocation, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim();
791
+ if (message.flpUpdateTime != null && Object.hasOwnProperty.call(message, "flpUpdateTime"))
792
+ $root.google.protobuf.Timestamp.encode(message.flpUpdateTime, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim();
793
+ if (message.flpLatlngAccuracyMeters != null && Object.hasOwnProperty.call(message, "flpLatlngAccuracyMeters"))
794
+ $root.google.protobuf.DoubleValue.encode(message.flpLatlngAccuracyMeters, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim();
795
+ if (message.flpHeadingDegrees != null && Object.hasOwnProperty.call(message, "flpHeadingDegrees"))
796
+ $root.google.protobuf.Int32Value.encode(message.flpHeadingDegrees, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim();
753
797
  return writer;
754
798
  };
755
799
 
@@ -878,6 +922,22 @@
878
922
  message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
879
923
  break;
880
924
  }
925
+ case 29: {
926
+ message.flpLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
927
+ break;
928
+ }
929
+ case 30: {
930
+ message.flpUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
931
+ break;
932
+ }
933
+ case 31: {
934
+ message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.decode(reader, reader.uint32());
935
+ break;
936
+ }
937
+ case 32: {
938
+ message.flpHeadingDegrees = $root.google.protobuf.Int32Value.decode(reader, reader.uint32());
939
+ break;
940
+ }
881
941
  case 18: {
882
942
  message.supplementalLocation = $root.google.type.LatLng.decode(reader, reader.uint32());
883
943
  break;
@@ -1068,6 +1128,26 @@
1068
1128
  if (error)
1069
1129
  return "rawLocationAccuracy." + error;
1070
1130
  }
1131
+ if (message.flpLocation != null && message.hasOwnProperty("flpLocation")) {
1132
+ var error = $root.google.type.LatLng.verify(message.flpLocation);
1133
+ if (error)
1134
+ return "flpLocation." + error;
1135
+ }
1136
+ if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime")) {
1137
+ var error = $root.google.protobuf.Timestamp.verify(message.flpUpdateTime);
1138
+ if (error)
1139
+ return "flpUpdateTime." + error;
1140
+ }
1141
+ if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters")) {
1142
+ var error = $root.google.protobuf.DoubleValue.verify(message.flpLatlngAccuracyMeters);
1143
+ if (error)
1144
+ return "flpLatlngAccuracyMeters." + error;
1145
+ }
1146
+ if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees")) {
1147
+ var error = $root.google.protobuf.Int32Value.verify(message.flpHeadingDegrees);
1148
+ if (error)
1149
+ return "flpHeadingDegrees." + error;
1150
+ }
1071
1151
  if (message.supplementalLocation != null && message.hasOwnProperty("supplementalLocation")) {
1072
1152
  var error = $root.google.type.LatLng.verify(message.supplementalLocation);
1073
1153
  if (error)
@@ -1309,6 +1389,26 @@
1309
1389
  throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.rawLocationAccuracy: object expected");
1310
1390
  message.rawLocationAccuracy = $root.google.protobuf.DoubleValue.fromObject(object.rawLocationAccuracy);
1311
1391
  }
1392
+ if (object.flpLocation != null) {
1393
+ if (typeof object.flpLocation !== "object")
1394
+ throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpLocation: object expected");
1395
+ message.flpLocation = $root.google.type.LatLng.fromObject(object.flpLocation);
1396
+ }
1397
+ if (object.flpUpdateTime != null) {
1398
+ if (typeof object.flpUpdateTime !== "object")
1399
+ throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpUpdateTime: object expected");
1400
+ message.flpUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.flpUpdateTime);
1401
+ }
1402
+ if (object.flpLatlngAccuracyMeters != null) {
1403
+ if (typeof object.flpLatlngAccuracyMeters !== "object")
1404
+ throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpLatlngAccuracyMeters: object expected");
1405
+ message.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.fromObject(object.flpLatlngAccuracyMeters);
1406
+ }
1407
+ if (object.flpHeadingDegrees != null) {
1408
+ if (typeof object.flpHeadingDegrees !== "object")
1409
+ throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.flpHeadingDegrees: object expected");
1410
+ message.flpHeadingDegrees = $root.google.protobuf.Int32Value.fromObject(object.flpHeadingDegrees);
1411
+ }
1312
1412
  if (object.supplementalLocation != null) {
1313
1413
  if (typeof object.supplementalLocation !== "object")
1314
1414
  throw TypeError(".maps.fleetengine.delivery.v1.DeliveryVehicleLocation.supplementalLocation: object expected");
@@ -1415,6 +1515,10 @@
1415
1515
  object.roadSnapped = false;
1416
1516
  object.isRoadSnapped = null;
1417
1517
  object.rawLocationSensor = options.enums === String ? "UNKNOWN_SENSOR" : 0;
1518
+ object.flpLocation = null;
1519
+ object.flpUpdateTime = null;
1520
+ object.flpLatlngAccuracyMeters = null;
1521
+ object.flpHeadingDegrees = null;
1418
1522
  }
1419
1523
  if (message.location != null && message.hasOwnProperty("location"))
1420
1524
  object.location = $root.google.type.LatLng.toObject(message.location, options);
@@ -1472,6 +1576,14 @@
1472
1576
  object.isRoadSnapped = $root.google.protobuf.BoolValue.toObject(message.isRoadSnapped, options);
1473
1577
  if (message.rawLocationSensor != null && message.hasOwnProperty("rawLocationSensor"))
1474
1578
  object.rawLocationSensor = options.enums === String ? $root.maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor[message.rawLocationSensor] === undefined ? message.rawLocationSensor : $root.maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor[message.rawLocationSensor] : message.rawLocationSensor;
1579
+ if (message.flpLocation != null && message.hasOwnProperty("flpLocation"))
1580
+ object.flpLocation = $root.google.type.LatLng.toObject(message.flpLocation, options);
1581
+ if (message.flpUpdateTime != null && message.hasOwnProperty("flpUpdateTime"))
1582
+ object.flpUpdateTime = $root.google.protobuf.Timestamp.toObject(message.flpUpdateTime, options);
1583
+ if (message.flpLatlngAccuracyMeters != null && message.hasOwnProperty("flpLatlngAccuracyMeters"))
1584
+ object.flpLatlngAccuracyMeters = $root.google.protobuf.DoubleValue.toObject(message.flpLatlngAccuracyMeters, options);
1585
+ if (message.flpHeadingDegrees != null && message.hasOwnProperty("flpHeadingDegrees"))
1586
+ object.flpHeadingDegrees = $root.google.protobuf.Int32Value.toObject(message.flpHeadingDegrees, options);
1475
1587
  return object;
1476
1588
  };
1477
1589
 
@@ -172,6 +172,22 @@
172
172
  "type": "google.protobuf.DoubleValue",
173
173
  "id": 25
174
174
  },
175
+ "flpLocation": {
176
+ "type": "google.type.LatLng",
177
+ "id": 29
178
+ },
179
+ "flpUpdateTime": {
180
+ "type": "google.protobuf.Timestamp",
181
+ "id": 30
182
+ },
183
+ "flpLatlngAccuracyMeters": {
184
+ "type": "google.protobuf.DoubleValue",
185
+ "id": 31
186
+ },
187
+ "flpHeadingDegrees": {
188
+ "type": "google.protobuf.Int32Value",
189
+ "id": 32
190
+ },
175
191
  "supplementalLocation": {
176
192
  "type": "google.type.LatLng",
177
193
  "id": 18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googlemaps/fleetengine-delivery",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Last Mile Fleet Solution Delivery API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",