@googlemaps/fleetengine 0.8.0 → 0.8.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 +53 -228
- package/build/protos/protos.d.ts +4 -518
- package/build/protos/protos.js +51 -1724
- package/build/protos/protos.json +22 -193
- package/package.json +1 -1
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
|
-
[//]: # "
|
|
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
|
-
# [Local Rides and Deliveries API:
|
|
6
|
-
|
|
7
|
-
[](https://cloud.google.com/terms/launch-stages)
|
|
8
|
-
[](https://www.npmjs.org/package/@googlemaps/fleetengine)
|
|
9
|
-
|
|
5
|
+
# [Local Rides and Deliveries 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
|
+
[](https://www.npmjs.org/package/@googlemaps/fleetengine)
|
|
12
12
|
|
|
13
13
|
Local Rides and Deliveries 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]
|
|
18
|
+
[the CHANGELOG][homepage_changelog].
|
|
18
19
|
|
|
19
|
-
* [Local Rides and Deliveries API
|
|
20
|
-
* [Local Rides and Deliveries API Documentation]
|
|
21
|
-
* [github.com/googleapis/google-cloud-node/packages/google-maps-fleetengine](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-fleetengine)
|
|
20
|
+
* [Local Rides and Deliveries API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/fleetengine/latest)
|
|
21
|
+
* [Local Rides and Deliveries 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
|
-
|
|
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,215 +43,55 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
|
|
|
46
43
|
1. [Enable the Local Rides and Deliveries 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
|
|
54
50
|
```
|
|
55
51
|
|
|
52
|
+
## Terms of Service
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
* The standard Fleet Engine request header.
|
|
68
|
-
*/
|
|
69
|
-
// const header = {}
|
|
70
|
-
/**
|
|
71
|
-
* Required. Must be in the format `providers/{provider}`.
|
|
72
|
-
* The provider must be the Project ID (for example, `sample-cloud-project`)
|
|
73
|
-
* of the Google Cloud Project of which the service account making
|
|
74
|
-
* this call is a member.
|
|
75
|
-
*/
|
|
76
|
-
// const parent = 'abc123'
|
|
77
|
-
/**
|
|
78
|
-
* The maximum number of vehicles to return.
|
|
79
|
-
* Default value: 100.
|
|
80
|
-
*/
|
|
81
|
-
// const pageSize = 1234
|
|
82
|
-
/**
|
|
83
|
-
* The value of the `next_page_token` provided by a previous call to
|
|
84
|
-
* `ListVehicles` so that you can paginate through groups of vehicles. The
|
|
85
|
-
* value is undefined if the filter criteria of the request is not the same as
|
|
86
|
-
* the filter criteria for the previous call to `ListVehicles`.
|
|
87
|
-
*/
|
|
88
|
-
// const pageToken = 'abc123'
|
|
89
|
-
/**
|
|
90
|
-
* Specifies the required minimum capacity of the vehicle. All vehicles
|
|
91
|
-
* returned will have a `maximum_capacity` greater than or equal to this
|
|
92
|
-
* value. If set, must be greater or equal to 0.
|
|
93
|
-
*/
|
|
94
|
-
// const minimumCapacity = {}
|
|
95
|
-
/**
|
|
96
|
-
* Restricts the response to vehicles that support at least one of the
|
|
97
|
-
* specified trip types.
|
|
98
|
-
*/
|
|
99
|
-
// const tripTypes = [1,2,3,4]
|
|
100
|
-
/**
|
|
101
|
-
* Restricts the response to vehicles that have sent location updates to Fleet
|
|
102
|
-
* Engine within the specified duration. Stationary vehicles still
|
|
103
|
-
* transmitting their locations are not considered stale. If present, must be
|
|
104
|
-
* a valid positive duration.
|
|
105
|
-
*/
|
|
106
|
-
// const maximumStaleness = {}
|
|
107
|
-
/**
|
|
108
|
-
* Required. Restricts the response to vehicles with one of the specified type
|
|
109
|
-
* categories. `UNKNOWN` is not allowed.
|
|
110
|
-
*/
|
|
111
|
-
// const vehicleTypeCategories = [1,2,3,4]
|
|
112
|
-
/**
|
|
113
|
-
* Callers can form complex logical operations using any combination of the
|
|
114
|
-
* `required_attributes`, `required_one_of_attributes`, and
|
|
115
|
-
* `required_one_of_attribute_sets` fields.
|
|
116
|
-
* `required_attributes` is a list; `required_one_of_attributes` uses a
|
|
117
|
-
* message which allows a list of lists. In combination, the two fields allow
|
|
118
|
-
* the composition of this expression:
|
|
119
|
-
* ```
|
|
120
|
-
* (required_attributes0 AND required_attributes1 AND ...)
|
|
121
|
-
* AND
|
|
122
|
-
* (required_one_of_attributes0 0 OR required_one_of_attributes0 1 OR
|
|
123
|
-
* ...)
|
|
124
|
-
* AND
|
|
125
|
-
* (required_one_of_attributes1 0 OR required_one_of_attributes1 1 OR
|
|
126
|
-
* ...)
|
|
127
|
-
* ```
|
|
128
|
-
* Restricts the response to vehicles with the specified attributes. This
|
|
129
|
-
* field is a conjunction/AND operation. A max of 50 required_attributes is
|
|
130
|
-
* allowed. This matches the maximum number of attributes allowed on a
|
|
131
|
-
* vehicle. Each repeated string should be of the format "key:value".
|
|
132
|
-
*/
|
|
133
|
-
// const requiredAttributes = ['abc','def']
|
|
134
|
-
/**
|
|
135
|
-
* Restricts the response to vehicles with at least one of the specified
|
|
136
|
-
* attributes in each `VehicleAttributeList`. Within each list, a vehicle must
|
|
137
|
-
* match at least one of the attributes. This field is an inclusive
|
|
138
|
-
* disjunction/OR operation in each `VehicleAttributeList` and a
|
|
139
|
-
* conjunction/AND operation across the collection of `VehicleAttributeList`.
|
|
140
|
-
* Each repeated string should be of the format
|
|
141
|
-
* "key1:value1|key2:value2|key3:value3".
|
|
142
|
-
*/
|
|
143
|
-
// const requiredOneOfAttributes = ['abc','def']
|
|
144
|
-
/**
|
|
145
|
-
* `required_one_of_attribute_sets` provides additional functionality.
|
|
146
|
-
* Similar to `required_one_of_attributes`, `required_one_of_attribute_sets`
|
|
147
|
-
* uses a message which allows a list of lists, allowing expressions such as
|
|
148
|
-
* this one:
|
|
149
|
-
* ```
|
|
150
|
-
* (required_attributes0 AND required_attributes1 AND ...)
|
|
151
|
-
* AND
|
|
152
|
-
* (
|
|
153
|
-
* (required_one_of_attribute_sets0 0 AND
|
|
154
|
-
* required_one_of_attribute_sets0 1 AND
|
|
155
|
-
* ...)
|
|
156
|
-
* OR
|
|
157
|
-
* (required_one_of_attribute_sets1 0 AND
|
|
158
|
-
* required_one_of_attribute_sets1 1 AND
|
|
159
|
-
* ...)
|
|
160
|
-
* )
|
|
161
|
-
* ```
|
|
162
|
-
* Restricts the response to vehicles that match all the attributes in a
|
|
163
|
-
* `VehicleAttributeList`. Within each list, a vehicle must match all of the
|
|
164
|
-
* attributes. This field is a conjunction/AND operation in each
|
|
165
|
-
* `VehicleAttributeList` and inclusive disjunction/OR operation across the
|
|
166
|
-
* collection of `VehicleAttributeList`. Each repeated string should be of the
|
|
167
|
-
* format "key1:value1|key2:value2|key3:value3".
|
|
168
|
-
*/
|
|
169
|
-
// const requiredOneOfAttributeSets = ['abc','def']
|
|
170
|
-
/**
|
|
171
|
-
* Restricts the response to vehicles that have this vehicle state.
|
|
172
|
-
*/
|
|
173
|
-
// const vehicleState = {}
|
|
174
|
-
/**
|
|
175
|
-
* Only return the vehicles with current trip(s).
|
|
176
|
-
*/
|
|
177
|
-
// const onTripOnly = true
|
|
178
|
-
/**
|
|
179
|
-
* Optional. A filter query to apply when listing vehicles. See
|
|
180
|
-
* http://aip.dev/160 for examples of the filter syntax.
|
|
181
|
-
* This field is designed to replace the `required_attributes`,
|
|
182
|
-
* `required_one_of_attributes`, and `required_one_of_attributes_sets` fields.
|
|
183
|
-
* If a non-empty value is specified here, the following fields must be empty:
|
|
184
|
-
* `required_attributes`, `required_one_of_attributes`, and
|
|
185
|
-
* `required_one_of_attributes_sets`.
|
|
186
|
-
* This filter functions as an AND clause with other constraints,
|
|
187
|
-
* such as `vehicle_state` or `on_trip_only`.
|
|
188
|
-
* Note that the only queries supported are on vehicle attributes (for
|
|
189
|
-
* example, `attributes.<key> = <value>` or `attributes.<key1> = <value1> AND
|
|
190
|
-
* attributes.<key2> = <value2>`). The maximum number of restrictions allowed
|
|
191
|
-
* in a filter query is 50.
|
|
192
|
-
* Also, all attributes are stored as strings, so the only supported
|
|
193
|
-
* comparisons against attributes are string comparisons. In order to compare
|
|
194
|
-
* against number or boolean values, the values must be explicitly quoted to
|
|
195
|
-
* be treated as strings (for example, `attributes.<key> = "10"` or
|
|
196
|
-
* `attributes.<key> = "true"`).
|
|
197
|
-
*/
|
|
198
|
-
// const filter = 'abc123'
|
|
199
|
-
/**
|
|
200
|
-
* Optional. A filter that limits the vehicles returned to those whose last
|
|
201
|
-
* known location was in the rectangular area defined by the viewport.
|
|
202
|
-
*/
|
|
203
|
-
// const viewport = {}
|
|
204
|
-
|
|
205
|
-
// Imports the Fleetengine library
|
|
206
|
-
const {VehicleServiceClient} = require('@googlemaps/fleetengine').v1;
|
|
207
|
-
|
|
208
|
-
// Instantiates a client
|
|
209
|
-
const fleetengineClient = new VehicleServiceClient();
|
|
210
|
-
|
|
211
|
-
async function callListVehicles() {
|
|
212
|
-
// Construct request
|
|
213
|
-
const request = {
|
|
214
|
-
parent,
|
|
215
|
-
vehicleTypeCategories,
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
// Run request
|
|
219
|
-
const iterable = fleetengineClient.listVehiclesAsync(request);
|
|
220
|
-
for await (const response of iterable) {
|
|
221
|
-
console.log(response);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
callListVehicles();
|
|
226
|
-
|
|
227
|
-
```
|
|
54
|
+
`@googlemaps/fleetengine` 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].
|
|
228
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.
|
|
229
62
|
|
|
63
|
+
### European Economic Area (EEA) developers
|
|
230
64
|
|
|
231
|
-
|
|
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].
|
|
232
69
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
| --------------------------- | --------------------------------- | ------ |
|
|
237
|
-
| Trip_service.create_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.create_trip.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/samples/generated/v1/trip_service.create_trip.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
238
|
-
| Trip_service.delete_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.delete_trip.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/samples/generated/v1/trip_service.delete_trip.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
239
|
-
| Trip_service.get_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.get_trip.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/samples/generated/v1/trip_service.get_trip.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
240
|
-
| Trip_service.report_billable_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.report_billable_trip.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/samples/generated/v1/trip_service.report_billable_trip.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
241
|
-
| Trip_service.search_trips | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.search_trips.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/samples/generated/v1/trip_service.search_trips.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
242
|
-
| Trip_service.update_trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.update_trip.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/samples/generated/v1/trip_service.update_trip.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
243
|
-
| Vehicle_service.create_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.create_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/samples/generated/v1/vehicle_service.create_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
244
|
-
| Vehicle_service.delete_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.delete_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/samples/generated/v1/vehicle_service.delete_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
245
|
-
| Vehicle_service.get_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.get_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/samples/generated/v1/vehicle_service.get_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
246
|
-
| Vehicle_service.list_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.list_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/samples/generated/v1/vehicle_service.list_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
247
|
-
| Vehicle_service.search_fuzzed_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.search_fuzzed_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/samples/generated/v1/vehicle_service.search_fuzzed_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
248
|
-
| Vehicle_service.search_vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.search_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/samples/generated/v1/vehicle_service.search_vehicles.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
249
|
-
| Vehicle_service.update_vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.update_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/samples/generated/v1/vehicle_service.update_vehicle.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
250
|
-
| Vehicle_service.update_vehicle_attributes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.update_vehicle_attributes.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/samples/generated/v1/vehicle_service.update_vehicle_attributes.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
251
|
-
| Vehicle_service.update_vehicle_location | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.update_vehicle_location.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/samples/generated/v1/vehicle_service.update_vehicle_location.js,packages/google-maps-fleetengine/samples/README.md) |
|
|
252
|
-
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/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/samples/quickstart.js,packages/google-maps-fleetengine/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
|
|
253
73
|
|
|
74
|
+
## Samples
|
|
254
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
|
+
| fleetengine | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/snippet_metadata_maps.fleetengine.v1.json) |
|
|
81
|
+
| create trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.create_trip.js) |
|
|
82
|
+
| delete trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.delete_trip.js) |
|
|
83
|
+
| get trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.get_trip.js) |
|
|
84
|
+
| report billable trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.report_billable_trip.js) |
|
|
85
|
+
| search trips | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.search_trips.js) |
|
|
86
|
+
| update trip | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/trip_service.update_trip.js) |
|
|
87
|
+
| create vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.create_vehicle.js) |
|
|
88
|
+
| delete vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.delete_vehicle.js) |
|
|
89
|
+
| get vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.get_vehicle.js) |
|
|
90
|
+
| list vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.list_vehicles.js) |
|
|
91
|
+
| search vehicles | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.search_vehicles.js) |
|
|
92
|
+
| update vehicle | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.update_vehicle.js) |
|
|
93
|
+
| update vehicle attributes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-fleetengine/samples/generated/v1/vehicle_service.update_vehicle_attributes.js) |
|
|
255
94
|
|
|
256
|
-
The [Local Rides and Deliveries API Node.js Client API Reference][client-docs] documentation
|
|
257
|
-
also contains samples.
|
|
258
95
|
|
|
259
96
|
## Supported Node.js Versions
|
|
260
97
|
|
|
@@ -281,41 +118,29 @@ for versions compatible with Node.js 8.
|
|
|
281
118
|
|
|
282
119
|
This library follows [Semantic Versioning](http://semver.org/).
|
|
283
120
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
This library is considered to be in **preview**. This means it is still a
|
|
291
|
-
work-in-progress and under active development. Any release is subject to
|
|
292
|
-
backwards-incompatible changes at any time.
|
|
293
|
-
|
|
294
|
-
|
|
295
121
|
More Information: [Google Cloud Platform Launch Stages][launch_stages]
|
|
296
122
|
|
|
297
123
|
[launch_stages]: https://cloud.google.com/terms/launch-stages
|
|
298
124
|
|
|
299
125
|
## Contributing
|
|
300
126
|
|
|
301
|
-
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
|
|
127
|
+
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine/CONTRIBUTING.md).
|
|
302
128
|
|
|
303
|
-
Please note that this `README.md
|
|
129
|
+
Please note that this `README.md`
|
|
304
130
|
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
|
|
305
|
-
are generated from a central template.
|
|
306
|
-
to its templates in
|
|
307
|
-
[directory](https://github.com/googleapis/synthtool).
|
|
131
|
+
are generated from a central template.
|
|
308
132
|
|
|
309
133
|
## License
|
|
310
134
|
|
|
311
135
|
Apache Version 2.0
|
|
312
136
|
|
|
313
|
-
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
|
|
137
|
+
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine/LICENSE)
|
|
314
138
|
|
|
315
|
-
[client-docs]: https://cloud.google.com/nodejs/docs/reference/fleetengine/latest
|
|
316
|
-
[product-docs]: https://developers.google.com/maps/documentation/transportation-logistics/mobility
|
|
317
139
|
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
|
|
318
140
|
[projects]: https://console.cloud.google.com/project
|
|
319
141
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
320
142
|
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=fleetengine.googleapis.com
|
|
321
143
|
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
|
144
|
+
[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine/samples
|
|
145
|
+
[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine/CHANGELOG.md
|
|
146
|
+
[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/maps-fleetengine
|