@googlemaps/routing 2.1.1 → 2.2.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.
- package/build/protos/google/maps/routing/v2/fallback_info.proto +1 -1
- package/build/protos/google/maps/routing/v2/geocoding_results.proto +1 -1
- package/build/protos/google/maps/routing/v2/localized_time.proto +1 -1
- package/build/protos/google/maps/routing/v2/location.proto +1 -1
- package/build/protos/google/maps/routing/v2/maneuver.proto +1 -1
- package/build/protos/google/maps/routing/v2/navigation_instruction.proto +1 -1
- package/build/protos/google/maps/routing/v2/polyline.proto +1 -1
- package/build/protos/google/maps/routing/v2/polyline_details.proto +1 -1
- package/build/protos/google/maps/routing/v2/route.proto +30 -16
- package/build/protos/google/maps/routing/v2/route_label.proto +1 -1
- package/build/protos/google/maps/routing/v2/route_modifiers.proto +1 -1
- package/build/protos/google/maps/routing/v2/route_travel_mode.proto +1 -1
- package/build/protos/google/maps/routing/v2/routes_service.proto +4 -3
- package/build/protos/google/maps/routing/v2/routing_preference.proto +1 -1
- package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +5 -4
- package/build/protos/google/maps/routing/v2/toll_info.proto +1 -2
- package/build/protos/google/maps/routing/v2/toll_passes.proto +1 -1
- package/build/protos/google/maps/routing/v2/traffic_model.proto +9 -5
- package/build/protos/google/maps/routing/v2/transit.proto +1 -1
- package/build/protos/google/maps/routing/v2/transit_preferences.proto +1 -1
- package/build/protos/google/maps/routing/v2/units.proto +1 -1
- package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +1 -1
- package/build/protos/google/maps/routing/v2/vehicle_info.proto +1 -2
- package/build/protos/google/maps/routing/v2/waypoint.proto +6 -1
- package/build/protos/protos.d.ts +8 -2
- package/build/protos/protos.js +32 -3
- package/build/protos/protos.json +7 -3
- package/build/src/v2/index.js +1 -1
- package/build/src/v2/routes_client.d.ts +3 -2
- package/build/src/v2/routes_client.js +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -121,8 +121,8 @@ message Route {
|
|
|
121
121
|
RouteLocalizedValues localized_values = 11;
|
|
122
122
|
|
|
123
123
|
// An opaque token that can be passed to [Navigation
|
|
124
|
-
// SDK](https://developers.google.com/maps/documentation/navigation)
|
|
125
|
-
// reconstruct the route during navigation, and, in the event of rerouting,
|
|
124
|
+
// SDK](https://developers.google.com/maps/documentation/mobility/driver-sdk/navigation)
|
|
125
|
+
// to reconstruct the route during navigation, and, in the event of rerouting,
|
|
126
126
|
// honor the original intention when the route was created. Treat this token
|
|
127
127
|
// as an opaque blob. Don't compare its value across requests as its value
|
|
128
128
|
// may change even if the service returns the exact same route.
|
|
@@ -141,16 +141,21 @@ message Route {
|
|
|
141
141
|
// about, such as possible traffic zone restrictions.
|
|
142
142
|
message RouteTravelAdvisory {
|
|
143
143
|
// Contains information about tolls on the route. This field is only populated
|
|
144
|
-
// if tolls are expected on the route
|
|
145
|
-
//
|
|
146
|
-
//
|
|
147
|
-
//
|
|
144
|
+
// if tolls are expected on the route and `TOLLS` is included in the request's
|
|
145
|
+
// [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
|
|
146
|
+
// If this field is set, but the `estimatedPrice` subfield is not populated,
|
|
147
|
+
// then the route contains tolls, but the estimated price is unknown. If
|
|
148
|
+
// `toll_info` is not set, then there are no tolls expected on the route.
|
|
148
149
|
TollInfo toll_info = 2;
|
|
149
150
|
|
|
150
|
-
// Speed reading intervals
|
|
151
|
-
//
|
|
152
|
-
//
|
|
153
|
-
//
|
|
151
|
+
// Speed reading intervals indicating traffic density. This field is only
|
|
152
|
+
// populated for requests when the request has a `TRAFFIC_AWARE` or
|
|
153
|
+
// `TRAFFIC_AWARE_OPTIMAL`
|
|
154
|
+
// [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference]
|
|
155
|
+
// value, and `TRAFFIC_ON_POLYLINE` is included in the
|
|
156
|
+
// [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
|
|
157
|
+
// The intervals cover the entire polyline of the route without overlap. The
|
|
158
|
+
// start point of a specified interval is the same as the end point of the
|
|
154
159
|
// preceding interval.
|
|
155
160
|
//
|
|
156
161
|
// Example:
|
|
@@ -160,6 +165,9 @@ message RouteTravelAdvisory {
|
|
|
160
165
|
repeated SpeedReadingInterval speed_reading_intervals = 3;
|
|
161
166
|
|
|
162
167
|
// The predicted fuel consumption in microliters.
|
|
168
|
+
// This field is only populated when `FUEL_CONSUMPTION` is included in the
|
|
169
|
+
// request's
|
|
170
|
+
// [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
|
|
163
171
|
int64 fuel_consumption_microliters = 5;
|
|
164
172
|
|
|
165
173
|
// Returned route may have restrictions that are not suitable for requested
|
|
@@ -177,14 +185,20 @@ message RouteTravelAdvisory {
|
|
|
177
185
|
message RouteLegTravelAdvisory {
|
|
178
186
|
// Contains information about tolls on the specific `RouteLeg`.
|
|
179
187
|
// This field is only populated if we expect there are tolls on the
|
|
180
|
-
// `RouteLeg
|
|
188
|
+
// `RouteLeg` and `TOLLS` is included in the request's
|
|
189
|
+
// [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
|
|
190
|
+
// If this field is set but the estimated_price subfield is not
|
|
181
191
|
// populated, we expect that road contains tolls but we do not know an
|
|
182
|
-
// estimated price. If
|
|
183
|
-
// `RouteLeg`.
|
|
192
|
+
// estimated price. If `toll_info` does not exist, then there is no toll on
|
|
193
|
+
// the `RouteLeg`.
|
|
184
194
|
TollInfo toll_info = 1;
|
|
185
195
|
|
|
186
|
-
// Speed reading intervals
|
|
187
|
-
//
|
|
196
|
+
// Speed reading intervals indicating traffic density. This field is only
|
|
197
|
+
// populated for requests when the request has a `TRAFFIC_AWARE` or
|
|
198
|
+
// `TRAFFIC_AWARE_OPTIMAL`
|
|
199
|
+
// [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference]
|
|
200
|
+
// value, and `TRAFFIC_ON_POLYLINE` is included in the
|
|
201
|
+
// [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
|
|
188
202
|
// The intervals cover the entire polyline of the `RouteLeg` without overlap.
|
|
189
203
|
// The start point of a specified interval is the same as the end point of the
|
|
190
204
|
// preceding interval.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -235,8 +235,8 @@ message ComputeRoutesRequest {
|
|
|
235
235
|
[(google.api.field_behavior) = OPTIONAL];
|
|
236
236
|
|
|
237
237
|
// Optional. The arrival time.
|
|
238
|
-
// NOTE:
|
|
239
|
-
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]
|
|
238
|
+
// NOTE: This field is ignored when requests specify a
|
|
239
|
+
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than
|
|
240
240
|
// `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but
|
|
241
241
|
// not both. Transit trips are available for up to 7 days in the past or 100
|
|
242
242
|
// days in the future.
|
|
@@ -431,6 +431,7 @@ message ComputeRouteMatrixRequest {
|
|
|
431
431
|
// traffic. This setting affects the value returned in the duration field in
|
|
432
432
|
// the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
|
|
433
433
|
// contains the predicted time in traffic based on historical averages.
|
|
434
|
+
// `TrafficModel` is only available for requests that have set
|
|
434
435
|
// [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
|
|
435
436
|
// `TRAFFIC_AWARE_OPTIMAL` and
|
|
436
437
|
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -35,13 +35,13 @@ message SpeedReadingInterval {
|
|
|
35
35
|
// Default value. This value is unused.
|
|
36
36
|
SPEED_UNSPECIFIED = 0;
|
|
37
37
|
|
|
38
|
-
// Normal speed, no
|
|
38
|
+
// Normal speed, no traffic delays.
|
|
39
39
|
NORMAL = 1;
|
|
40
40
|
|
|
41
|
-
// Slowdown detected,
|
|
41
|
+
// Slowdown detected, medium amount of traffic.
|
|
42
42
|
SLOW = 2;
|
|
43
43
|
|
|
44
|
-
// Traffic
|
|
44
|
+
// Traffic delays.
|
|
45
45
|
TRAFFIC_JAM = 3;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -51,6 +51,7 @@ message SpeedReadingInterval {
|
|
|
51
51
|
// The ending index of this interval in the polyline.
|
|
52
52
|
optional int32 end_polyline_point_index = 2;
|
|
53
53
|
|
|
54
|
+
// The type of speed in this interval.
|
|
54
55
|
oneof speed_type {
|
|
55
56
|
// Traffic speed in this interval.
|
|
56
57
|
Speed speed = 3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -18,7 +18,6 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
import "google/type/money.proto";
|
|
20
20
|
|
|
21
|
-
option cc_enable_arenas = true;
|
|
22
21
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
22
|
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
23
|
option java_multiple_files = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -25,10 +25,14 @@ option objc_class_prefix = "GMRV2";
|
|
|
25
25
|
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
26
26
|
option ruby_package = "Google::Maps::Routing::V2";
|
|
27
27
|
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
28
|
+
// This field specifies one of the following assumptions to use when calculating
|
|
29
|
+
// travel time in traffic conditions, shown in the enums below. Depending on the
|
|
30
|
+
// enum chosen, the `duration` field of the TrafficModel response will vary. The
|
|
31
|
+
// value contains the predicted time to destination in traffic, based on
|
|
32
|
+
// historical averages. `TrafficModel` is only available for requests that have
|
|
33
|
+
// set [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to
|
|
34
|
+
// `TRAFFIC_AWARE_OPTIMAL` and
|
|
35
|
+
// [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
|
|
32
36
|
enum TrafficModel {
|
|
33
37
|
// Unused. If specified, will default to `BEST_GUESS`.
|
|
34
38
|
TRAFFIC_MODEL_UNSPECIFIED = 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -18,7 +18,6 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
import "google/maps/routing/v2/vehicle_emission_type.proto";
|
|
20
20
|
|
|
21
|
-
option cc_enable_arenas = true;
|
|
22
21
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
22
|
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
23
|
option java_multiple_files = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -42,6 +42,11 @@ message Waypoint {
|
|
|
42
42
|
// Human readable address or a plus code.
|
|
43
43
|
// See https://plus.codes for details.
|
|
44
44
|
string address = 7;
|
|
45
|
+
|
|
46
|
+
// A token that identifies a
|
|
47
|
+
// [`NavigationPoint`](https://developers.google.com/maps/documentation/geocoding/reference/rest/v4alpha/geocode.destinations/searchDestinations#navigationpoint),
|
|
48
|
+
// obtained from the `SearchDestinations` method of the Geocoding API.
|
|
49
|
+
string navigation_point_token = 8;
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
// Marks this waypoint as a milestone rather a stopping point. For
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -11267,6 +11267,9 @@ export namespace google {
|
|
|
11267
11267
|
/** Waypoint address */
|
|
11268
11268
|
address?: (string|null);
|
|
11269
11269
|
|
|
11270
|
+
/** Waypoint navigationPointToken */
|
|
11271
|
+
navigationPointToken?: (string|null);
|
|
11272
|
+
|
|
11270
11273
|
/** Waypoint via */
|
|
11271
11274
|
via?: (boolean|null);
|
|
11272
11275
|
|
|
@@ -11295,6 +11298,9 @@ export namespace google {
|
|
|
11295
11298
|
/** Waypoint address. */
|
|
11296
11299
|
public address?: (string|null);
|
|
11297
11300
|
|
|
11301
|
+
/** Waypoint navigationPointToken. */
|
|
11302
|
+
public navigationPointToken?: (string|null);
|
|
11303
|
+
|
|
11298
11304
|
/** Waypoint via. */
|
|
11299
11305
|
public via: boolean;
|
|
11300
11306
|
|
|
@@ -11305,7 +11311,7 @@ export namespace google {
|
|
|
11305
11311
|
public sideOfRoad: boolean;
|
|
11306
11312
|
|
|
11307
11313
|
/** Waypoint locationType. */
|
|
11308
|
-
public locationType?: ("location"|"placeId"|"address");
|
|
11314
|
+
public locationType?: ("location"|"placeId"|"address"|"navigationPointToken");
|
|
11309
11315
|
|
|
11310
11316
|
/**
|
|
11311
11317
|
* Creates a new Waypoint instance using the specified properties.
|
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -31376,6 +31376,7 @@
|
|
|
31376
31376
|
* @property {google.maps.routing.v2.ILocation|null} [location] Waypoint location
|
|
31377
31377
|
* @property {string|null} [placeId] Waypoint placeId
|
|
31378
31378
|
* @property {string|null} [address] Waypoint address
|
|
31379
|
+
* @property {string|null} [navigationPointToken] Waypoint navigationPointToken
|
|
31379
31380
|
* @property {boolean|null} [via] Waypoint via
|
|
31380
31381
|
* @property {boolean|null} [vehicleStopover] Waypoint vehicleStopover
|
|
31381
31382
|
* @property {boolean|null} [sideOfRoad] Waypoint sideOfRoad
|
|
@@ -31420,6 +31421,14 @@
|
|
|
31420
31421
|
*/
|
|
31421
31422
|
Waypoint.prototype.address = null;
|
|
31422
31423
|
|
|
31424
|
+
/**
|
|
31425
|
+
* Waypoint navigationPointToken.
|
|
31426
|
+
* @member {string|null|undefined} navigationPointToken
|
|
31427
|
+
* @memberof google.maps.routing.v2.Waypoint
|
|
31428
|
+
* @instance
|
|
31429
|
+
*/
|
|
31430
|
+
Waypoint.prototype.navigationPointToken = null;
|
|
31431
|
+
|
|
31423
31432
|
/**
|
|
31424
31433
|
* Waypoint via.
|
|
31425
31434
|
* @member {boolean} via
|
|
@@ -31449,12 +31458,12 @@
|
|
|
31449
31458
|
|
|
31450
31459
|
/**
|
|
31451
31460
|
* Waypoint locationType.
|
|
31452
|
-
* @member {"location"|"placeId"|"address"|undefined} locationType
|
|
31461
|
+
* @member {"location"|"placeId"|"address"|"navigationPointToken"|undefined} locationType
|
|
31453
31462
|
* @memberof google.maps.routing.v2.Waypoint
|
|
31454
31463
|
* @instance
|
|
31455
31464
|
*/
|
|
31456
31465
|
Object.defineProperty(Waypoint.prototype, "locationType", {
|
|
31457
|
-
get: $util.oneOfGetter($oneOfFields = ["location", "placeId", "address"]),
|
|
31466
|
+
get: $util.oneOfGetter($oneOfFields = ["location", "placeId", "address", "navigationPointToken"]),
|
|
31458
31467
|
set: $util.oneOfSetter($oneOfFields)
|
|
31459
31468
|
});
|
|
31460
31469
|
|
|
@@ -31494,6 +31503,8 @@
|
|
|
31494
31503
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.sideOfRoad);
|
|
31495
31504
|
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
31496
31505
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.address);
|
|
31506
|
+
if (message.navigationPointToken != null && Object.hasOwnProperty.call(message, "navigationPointToken"))
|
|
31507
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.navigationPointToken);
|
|
31497
31508
|
return writer;
|
|
31498
31509
|
};
|
|
31499
31510
|
|
|
@@ -31542,6 +31553,10 @@
|
|
|
31542
31553
|
message.address = reader.string();
|
|
31543
31554
|
break;
|
|
31544
31555
|
}
|
|
31556
|
+
case 8: {
|
|
31557
|
+
message.navigationPointToken = reader.string();
|
|
31558
|
+
break;
|
|
31559
|
+
}
|
|
31545
31560
|
case 3: {
|
|
31546
31561
|
message.via = reader.bool();
|
|
31547
31562
|
break;
|
|
@@ -31612,6 +31627,13 @@
|
|
|
31612
31627
|
if (!$util.isString(message.address))
|
|
31613
31628
|
return "address: string expected";
|
|
31614
31629
|
}
|
|
31630
|
+
if (message.navigationPointToken != null && message.hasOwnProperty("navigationPointToken")) {
|
|
31631
|
+
if (properties.locationType === 1)
|
|
31632
|
+
return "locationType: multiple values";
|
|
31633
|
+
properties.locationType = 1;
|
|
31634
|
+
if (!$util.isString(message.navigationPointToken))
|
|
31635
|
+
return "navigationPointToken: string expected";
|
|
31636
|
+
}
|
|
31615
31637
|
if (message.via != null && message.hasOwnProperty("via"))
|
|
31616
31638
|
if (typeof message.via !== "boolean")
|
|
31617
31639
|
return "via: boolean expected";
|
|
@@ -31645,6 +31667,8 @@
|
|
|
31645
31667
|
message.placeId = String(object.placeId);
|
|
31646
31668
|
if (object.address != null)
|
|
31647
31669
|
message.address = String(object.address);
|
|
31670
|
+
if (object.navigationPointToken != null)
|
|
31671
|
+
message.navigationPointToken = String(object.navigationPointToken);
|
|
31648
31672
|
if (object.via != null)
|
|
31649
31673
|
message.via = Boolean(object.via);
|
|
31650
31674
|
if (object.vehicleStopover != null)
|
|
@@ -31693,6 +31717,11 @@
|
|
|
31693
31717
|
if (options.oneofs)
|
|
31694
31718
|
object.locationType = "address";
|
|
31695
31719
|
}
|
|
31720
|
+
if (message.navigationPointToken != null && message.hasOwnProperty("navigationPointToken")) {
|
|
31721
|
+
object.navigationPointToken = message.navigationPointToken;
|
|
31722
|
+
if (options.oneofs)
|
|
31723
|
+
object.locationType = "navigationPointToken";
|
|
31724
|
+
}
|
|
31696
31725
|
return object;
|
|
31697
31726
|
};
|
|
31698
31727
|
|
package/build/protos/protos.json
CHANGED
|
@@ -1578,8 +1578,7 @@
|
|
|
1578
1578
|
"java_package": "com.google.maps.routing.v2",
|
|
1579
1579
|
"objc_class_prefix": "GMRV2",
|
|
1580
1580
|
"php_namespace": "Google\\Maps\\Routing\\V2",
|
|
1581
|
-
"ruby_package": "Google::Maps::Routing::V2"
|
|
1582
|
-
"cc_enable_arenas": true
|
|
1581
|
+
"ruby_package": "Google::Maps::Routing::V2"
|
|
1583
1582
|
},
|
|
1584
1583
|
"nested": {
|
|
1585
1584
|
"FallbackInfo": {
|
|
@@ -3045,7 +3044,8 @@
|
|
|
3045
3044
|
"oneof": [
|
|
3046
3045
|
"location",
|
|
3047
3046
|
"placeId",
|
|
3048
|
-
"address"
|
|
3047
|
+
"address",
|
|
3048
|
+
"navigationPointToken"
|
|
3049
3049
|
]
|
|
3050
3050
|
}
|
|
3051
3051
|
},
|
|
@@ -3062,6 +3062,10 @@
|
|
|
3062
3062
|
"type": "string",
|
|
3063
3063
|
"id": 7
|
|
3064
3064
|
},
|
|
3065
|
+
"navigationPointToken": {
|
|
3066
|
+
"type": "string",
|
|
3067
|
+
"id": 8
|
|
3068
|
+
},
|
|
3065
3069
|
"via": {
|
|
3066
3070
|
"type": "bool",
|
|
3067
3071
|
"id": 3
|
package/build/src/v2/index.js
CHANGED
|
@@ -179,8 +179,8 @@ export declare class RoutesClient {
|
|
|
179
179
|
* days in the future.
|
|
180
180
|
* @param {google.protobuf.Timestamp} [request.arrivalTime]
|
|
181
181
|
* Optional. The arrival time.
|
|
182
|
-
* NOTE:
|
|
183
|
-
* {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode}
|
|
182
|
+
* NOTE: This field is ignored when requests specify a
|
|
183
|
+
* {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} other than
|
|
184
184
|
* `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but
|
|
185
185
|
* not both. Transit trips are available for up to 7 days in the past or 100
|
|
186
186
|
* days in the future.
|
|
@@ -368,6 +368,7 @@ export declare class RoutesClient {
|
|
|
368
368
|
* traffic. This setting affects the value returned in the duration field in
|
|
369
369
|
* the {@link protos.google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} which
|
|
370
370
|
* contains the predicted time in traffic based on historical averages.
|
|
371
|
+
* `TrafficModel` is only available for requests that have set
|
|
371
372
|
* {@link protos.google.maps.routing.v2.RoutingPreference|RoutingPreference} to
|
|
372
373
|
* `TRAFFIC_AWARE_OPTIMAL` and
|
|
373
374
|
* {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -409,6 +409,7 @@ class RoutesClient {
|
|
|
409
409
|
* traffic. This setting affects the value returned in the duration field in
|
|
410
410
|
* the {@link protos.google.maps.routing.v2.RouteMatrixElement|RouteMatrixElement} which
|
|
411
411
|
* contains the predicted time in traffic based on historical averages.
|
|
412
|
+
* `TrafficModel` is only available for requests that have set
|
|
412
413
|
* {@link protos.google.maps.routing.v2.RoutingPreference|RoutingPreference} to
|
|
413
414
|
* `TRAFFIC_AWARE_OPTIMAL` and
|
|
414
415
|
* {@link protos.google.maps.routing.v2.RouteTravelMode|RouteTravelMode} to `DRIVE`.
|