@googlemaps/routing 0.4.0 → 0.5.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/CHANGELOG.md +16 -0
- package/build/protos/google/maps/routing/v2/fallback_info.proto +7 -6
- package/build/protos/google/maps/routing/v2/geocoding_results.proto +4 -3
- package/build/protos/google/maps/routing/v2/location.proto +4 -3
- package/build/protos/google/maps/routing/v2/maneuver.proto +2 -2
- package/build/protos/google/maps/routing/v2/navigation_instruction.proto +2 -2
- package/build/protos/google/maps/routing/v2/polyline.proto +2 -2
- package/build/protos/google/maps/routing/v2/route.proto +11 -10
- package/build/protos/google/maps/routing/v2/route_label.proto +7 -6
- package/build/protos/google/maps/routing/v2/route_modifiers.proto +10 -7
- package/build/protos/google/maps/routing/v2/route_travel_mode.proto +4 -4
- package/build/protos/google/maps/routing/v2/routes_service.proto +31 -11
- package/build/protos/google/maps/routing/v2/routing_preference.proto +9 -8
- package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +6 -4
- package/build/protos/google/maps/routing/v2/toll_info.proto +11 -9
- package/build/protos/google/maps/routing/v2/toll_passes.proto +5 -2
- package/build/protos/google/maps/routing/v2/units.proto +2 -2
- package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +5 -4
- package/build/protos/google/maps/routing/v2/vehicle_info.proto +3 -3
- package/build/protos/google/maps/routing/v2/waypoint.proto +14 -13
- package/build/protos/protos.d.ts +23 -1
- package/build/protos/protos.js +1 -27523
- package/build/protos/protos.json +1 -2567
- package/build/src/v2/routes_client.d.ts +21 -5
- package/build/src/v2/routes_client.js +11 -0
- package/package.json +5 -4
- package/build/src/index.js.map +0 -1
- package/build/src/v2/index.js.map +0 -1
- package/build/src/v2/routes_client.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.1](https://github.com/googleapis/google-cloud-node/compare/routing-v0.5.0...routing-v0.5.1) (2023-04-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** Bump `google-gax` to ^3.5.8 ([#4117](https://github.com/googleapis/google-cloud-node/issues/4117)) ([0b67d88](https://github.com/googleapis/google-cloud-node/commit/0b67d883963643ce1b4f6d2ccd3e8d37adf6e029))
|
|
9
|
+
* Minify JSON and JS files, and remove .map files ([#4143](https://github.com/googleapis/google-cloud-node/issues/4143)) ([170f7d5](https://github.com/googleapis/google-cloud-node/commit/170f7d57b8fd344d182a8e758867b8124722eebc))
|
|
10
|
+
|
|
11
|
+
## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.4.0...routing-v0.5.0) (2023-03-28)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* [routing] adds support for specifying region_code in the ComputeRoutesRequest ([#4103](https://github.com/googleapis/google-cloud-node/issues/4103)) ([1106a82](https://github.com/googleapis/google-cloud-node/commit/1106a824dbddc7296f069a0a3e063b0ec9fc914f))
|
|
17
|
+
* [routing] moved speed in SpeedReadingInterval into a oneof speed_type, this is a breaking change for Go client libraries ([#4121](https://github.com/googleapis/google-cloud-node/issues/4121)) ([9878d72](https://github.com/googleapis/google-cloud-node/commit/9878d722f634f356590014ea8f2f035bb1b134db))
|
|
18
|
+
|
|
3
19
|
## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.3.1...routing-v0.4.0) (2023-03-13)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "FallbackInfoProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -62,11 +62,12 @@ enum FallbackRoutingMode {
|
|
|
62
62
|
// Not used.
|
|
63
63
|
FALLBACK_ROUTING_MODE_UNSPECIFIED = 0;
|
|
64
64
|
|
|
65
|
-
// Indicates the
|
|
66
|
-
// response.
|
|
65
|
+
// Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
|
|
66
|
+
// was used to compute the response.
|
|
67
67
|
FALLBACK_TRAFFIC_UNAWARE = 1;
|
|
68
68
|
|
|
69
|
-
// Indicates the
|
|
70
|
-
//
|
|
69
|
+
// Indicates the `TRAFFIC_AWARE`
|
|
70
|
+
// [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
|
|
71
|
+
// compute the response.
|
|
71
72
|
FALLBACK_TRAFFIC_AWARE = 2;
|
|
72
73
|
}
|
|
@@ -20,7 +20,7 @@ import "google/rpc/status.proto";
|
|
|
20
20
|
|
|
21
21
|
option cc_enable_arenas = true;
|
|
22
22
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
-
option go_package = "google.
|
|
23
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "GeocodingResultsProto";
|
|
26
26
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -28,8 +28,9 @@ option objc_class_prefix = "GMRV2";
|
|
|
28
28
|
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
29
29
|
option ruby_package = "Google::Maps::Routing::V2";
|
|
30
30
|
|
|
31
|
-
// Contains GeocodedWaypoints for
|
|
32
|
-
// waypoints. Only populated for address
|
|
31
|
+
// Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
|
|
32
|
+
// origin, destination and intermediate waypoints. Only populated for address
|
|
33
|
+
// waypoints.
|
|
33
34
|
message GeocodingResults {
|
|
34
35
|
// Origin geocoded waypoint.
|
|
35
36
|
GeocodedWaypoint origin = 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -21,7 +21,7 @@ import "google/type/latlng.proto";
|
|
|
21
21
|
|
|
22
22
|
option cc_enable_arenas = true;
|
|
23
23
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
24
|
-
option go_package = "google.
|
|
24
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
25
25
|
option java_multiple_files = true;
|
|
26
26
|
option java_outer_classname = "LocationProto";
|
|
27
27
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -38,6 +38,7 @@ message Location {
|
|
|
38
38
|
// This value is used to specify the side of the road to use for pickup and
|
|
39
39
|
// drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
|
|
40
40
|
// of due North, 90 specifies a heading of due East, etc. You can use this
|
|
41
|
-
// field only for `DRIVE` and `TWO_WHEELER`
|
|
41
|
+
// field only for `DRIVE` and `TWO_WHEELER`
|
|
42
|
+
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
42
43
|
google.protobuf.Int32Value heading = 2;
|
|
43
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "ManeuverProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -20,7 +20,7 @@ import "google/maps/routing/v2/maneuver.proto";
|
|
|
20
20
|
|
|
21
21
|
option cc_enable_arenas = true;
|
|
22
22
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
-
option go_package = "google.
|
|
23
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "NavigationInstructionProto";
|
|
26
26
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -20,7 +20,7 @@ import "google/protobuf/struct.proto";
|
|
|
20
20
|
|
|
21
21
|
option cc_enable_arenas = true;
|
|
22
22
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
-
option go_package = "google.
|
|
23
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "PolylineProto";
|
|
26
26
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -27,7 +27,7 @@ import "google/protobuf/duration.proto";
|
|
|
27
27
|
|
|
28
28
|
option cc_enable_arenas = true;
|
|
29
29
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
30
|
-
option go_package = "google.
|
|
30
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
31
31
|
option java_multiple_files = true;
|
|
32
32
|
option java_outer_classname = "RouteProto";
|
|
33
33
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -43,12 +43,12 @@ message Route {
|
|
|
43
43
|
repeated RouteLabel route_labels = 13;
|
|
44
44
|
|
|
45
45
|
// A collection of legs (path segments between waypoints) that make-up the
|
|
46
|
-
// route. Each leg corresponds to the trip between two non-`via`
|
|
47
|
-
// For example, a route with no
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
// to `destination`.
|
|
46
|
+
// route. Each leg corresponds to the trip between two non-`via`
|
|
47
|
+
// [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
|
|
48
|
+
// intermediate waypoints has only one leg. A route that includes one
|
|
49
|
+
// non-`via` intermediate waypoint has two legs. A route that includes one
|
|
50
|
+
// `via` intermediate waypoint has one leg. The order of the legs matches the
|
|
51
|
+
// order of Waypoints from `origin` to `intermediates` to `destination`.
|
|
52
52
|
repeated RouteLeg legs = 1;
|
|
53
53
|
|
|
54
54
|
// The travel distance of the route, in meters.
|
|
@@ -188,8 +188,9 @@ message RouteLeg {
|
|
|
188
188
|
RouteLegTravelAdvisory travel_advisory = 8;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
// Encapsulates a segment of a
|
|
192
|
-
// navigation instruction. Route legs are made up
|
|
191
|
+
// Encapsulates a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
|
|
192
|
+
// step corresponds to a single navigation instruction. Route legs are made up
|
|
193
|
+
// of steps.
|
|
193
194
|
message RouteLegStep {
|
|
194
195
|
// The travel distance of this step, in meters. In some circumstances, this
|
|
195
196
|
// field might not have a value.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "RouteLabelProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -26,8 +26,8 @@ option objc_class_prefix = "GMRV2";
|
|
|
26
26
|
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
27
27
|
option ruby_package = "Google::Maps::Routing::V2";
|
|
28
28
|
|
|
29
|
-
// Labels for the
|
|
30
|
-
// of the route to compare against others.
|
|
29
|
+
// Labels for the [Route][google.maps.routing.v2.Route] that are useful to
|
|
30
|
+
// identify specific properties of the route to compare against others.
|
|
31
31
|
enum RouteLabel {
|
|
32
32
|
// Default - not used.
|
|
33
33
|
ROUTE_LABEL_UNSPECIFIED = 0;
|
|
@@ -36,8 +36,9 @@ enum RouteLabel {
|
|
|
36
36
|
DEFAULT_ROUTE = 1;
|
|
37
37
|
|
|
38
38
|
// An alternative to the default "best" route. Routes like this will be
|
|
39
|
-
// returned when
|
|
40
|
-
//
|
|
39
|
+
// returned when
|
|
40
|
+
// [compute_alternative_routes][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes]
|
|
41
|
+
// is specified.
|
|
41
42
|
DEFAULT_ROUTE_ALTERNATE = 2;
|
|
42
43
|
|
|
43
44
|
// Fuel efficient route. Routes labeled with this value are determined to be
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -21,7 +21,7 @@ import "google/maps/routing/v2/vehicle_info.proto";
|
|
|
21
21
|
|
|
22
22
|
option cc_enable_arenas = true;
|
|
23
23
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
24
|
-
option go_package = "google.
|
|
24
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
25
25
|
option java_multiple_files = true;
|
|
26
26
|
option java_outer_classname = "RouteModifiersProto";
|
|
27
27
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -34,22 +34,24 @@ option ruby_package = "Google::Maps::Routing::V2";
|
|
|
34
34
|
message RouteModifiers {
|
|
35
35
|
// Specifies whether to avoid toll roads where reasonable. Preference will be
|
|
36
36
|
// given to routes not containing toll roads. Applies only to the `DRIVE` and
|
|
37
|
-
// `TWO_WHEELER`
|
|
37
|
+
// `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
38
38
|
bool avoid_tolls = 1;
|
|
39
39
|
|
|
40
40
|
// Specifies whether to avoid highways where reasonable. Preference will be
|
|
41
41
|
// given to routes not containing highways. Applies only to the `DRIVE` and
|
|
42
|
-
// `TWO_WHEELER`
|
|
42
|
+
// `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
43
43
|
bool avoid_highways = 2;
|
|
44
44
|
|
|
45
45
|
// Specifies whether to avoid ferries where reasonable. Preference will be
|
|
46
46
|
// given to routes not containing travel by ferries.
|
|
47
|
-
// Applies only to the `DRIVE` and`TWO_WHEELER`
|
|
47
|
+
// Applies only to the `DRIVE` and`TWO_WHEELER`
|
|
48
|
+
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
48
49
|
bool avoid_ferries = 3;
|
|
49
50
|
|
|
50
51
|
// Specifies whether to avoid navigating indoors where reasonable. Preference
|
|
51
52
|
// will be given to routes not containing indoor navigation.
|
|
52
|
-
// Applies only to the `WALK`
|
|
53
|
+
// Applies only to the `WALK`
|
|
54
|
+
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
53
55
|
bool avoid_indoor = 4;
|
|
54
56
|
|
|
55
57
|
// Specifies the vehicle information.
|
|
@@ -59,6 +61,7 @@ message RouteModifiers {
|
|
|
59
61
|
// If toll passes are provided, the API tries to return the pass price. If
|
|
60
62
|
// toll passes are not provided, the API treats the toll pass as unknown and
|
|
61
63
|
// tries to return the cash price.
|
|
62
|
-
// Applies only to the DRIVE and TWO_WHEELER
|
|
64
|
+
// Applies only to the `DRIVE` and `TWO_WHEELER`
|
|
65
|
+
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
63
66
|
repeated TollPass toll_passes = 6;
|
|
64
67
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "RouteTravelModeProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -27,8 +27,8 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
|
27
27
|
option ruby_package = "Google::Maps::Routing::V2";
|
|
28
28
|
|
|
29
29
|
// A set of values used to specify the mode of travel.
|
|
30
|
-
// NOTE: WALK
|
|
31
|
-
// be missing clear sidewalks, pedestrian paths, or bicycling paths.
|
|
30
|
+
// NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might
|
|
31
|
+
// sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths.
|
|
32
32
|
// You must display this warning to the user for all walking, bicycling, and
|
|
33
33
|
// two-wheel routes that you display in your app.
|
|
34
34
|
enum RouteTravelMode {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -34,7 +34,7 @@ import "google/rpc/status.proto";
|
|
|
34
34
|
|
|
35
35
|
option cc_enable_arenas = true;
|
|
36
36
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
37
|
-
option go_package = "google.
|
|
37
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
38
38
|
option java_multiple_files = true;
|
|
39
39
|
option java_outer_classname = "RoutesServiceProto";
|
|
40
40
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -211,17 +211,23 @@ message ComputeRoutesRequest {
|
|
|
211
211
|
// display language is inferred from the location of the route request.
|
|
212
212
|
string language_code = 10 [(google.api.field_behavior) = OPTIONAL];
|
|
213
213
|
|
|
214
|
+
// Optional. The region code, specified as a ccTLD ("top-level domain")
|
|
215
|
+
// two-character value. For more information see
|
|
216
|
+
// https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
|
|
217
|
+
string region_code = 16 [(google.api.field_behavior) = OPTIONAL];
|
|
218
|
+
|
|
214
219
|
// Optional. Specifies the units of measure for the display fields. This
|
|
215
|
-
// includes the `instruction` field in
|
|
216
|
-
//
|
|
217
|
-
//
|
|
218
|
-
//
|
|
220
|
+
// includes the `instruction` field in
|
|
221
|
+
// [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
|
|
222
|
+
// units of measure used for the route, leg, step distance, and duration are
|
|
223
|
+
// not affected by this value. If you don't provide this value, then the
|
|
224
|
+
// display units are inferred from the location of the request.
|
|
219
225
|
Units units = 11 [(google.api.field_behavior) = OPTIONAL];
|
|
220
226
|
|
|
221
227
|
// Optional. Specifies what reference routes to calculate as part of the
|
|
222
228
|
// request in addition to the default route. A reference route is a route with
|
|
223
229
|
// a different route calculation objective than the default route. For example
|
|
224
|
-
//
|
|
230
|
+
// a `FUEL_EFFICIENT` reference route calculation takes into account various
|
|
225
231
|
// parameters that would generate an optimal fuel efficient route.
|
|
226
232
|
repeated ReferenceRoute requested_reference_routes = 14
|
|
227
233
|
[(google.api.field_behavior) = OPTIONAL];
|
|
@@ -299,6 +305,19 @@ message ComputeRouteMatrixRequest {
|
|
|
299
305
|
google.protobuf.Timestamp departure_time = 5
|
|
300
306
|
[(google.api.field_behavior) = OPTIONAL];
|
|
301
307
|
|
|
308
|
+
// Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
|
309
|
+
// information, see
|
|
310
|
+
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
|
|
311
|
+
// [Language Support](https://developers.google.com/maps/faq#languagesupport)
|
|
312
|
+
// for the list of supported languages. When you don't provide this value, the
|
|
313
|
+
// display language is inferred from the location of the first origin.
|
|
314
|
+
string language_code = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
315
|
+
|
|
316
|
+
// Optional. The region code, specified as a ccTLD ("top-level domain")
|
|
317
|
+
// two-character value. For more information see
|
|
318
|
+
// https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
|
|
319
|
+
string region_code = 9 [(google.api.field_behavior) = OPTIONAL];
|
|
320
|
+
|
|
302
321
|
// Optional. A list of extra computations which may be used to complete the
|
|
303
322
|
// request. Note: These extra computations may return extra fields on the
|
|
304
323
|
// response. These extra fields must also be specified in the field mask to be
|
|
@@ -341,10 +360,11 @@ message RouteMatrixElement {
|
|
|
341
360
|
int32 distance_meters = 4;
|
|
342
361
|
|
|
343
362
|
// The length of time needed to navigate the route. If you set the
|
|
344
|
-
//
|
|
345
|
-
// `
|
|
346
|
-
//
|
|
347
|
-
//
|
|
363
|
+
// [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
|
|
364
|
+
// to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
|
|
365
|
+
// you set the `routing_preference` to either `TRAFFIC_AWARE` or
|
|
366
|
+
// `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
|
|
367
|
+
// conditions into account.
|
|
348
368
|
google.protobuf.Duration duration = 5;
|
|
349
369
|
|
|
350
370
|
// The duration of traveling through the route without taking traffic
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "RoutingPreferenceProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -35,12 +35,13 @@ enum RoutingPreference {
|
|
|
35
35
|
// Computes routes without taking live traffic conditions into consideration.
|
|
36
36
|
// Suitable when traffic conditions don't matter or are not applicable.
|
|
37
37
|
// Using this value produces the lowest latency.
|
|
38
|
-
// Note: For
|
|
39
|
-
// duration are based on road network
|
|
40
|
-
// conditions. Results for a given
|
|
41
|
-
// in the road network, updated
|
|
42
|
-
// distributed nature of the service.
|
|
43
|
-
// nearly-equivalent routes at any time or
|
|
38
|
+
// Note: For [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] `DRIVE`
|
|
39
|
+
// and `TWO_WHEELER` choice of route and duration are based on road network
|
|
40
|
+
// and average time-independent traffic conditions. Results for a given
|
|
41
|
+
// request may vary over time due to changes in the road network, updated
|
|
42
|
+
// average traffic conditions, and the distributed nature of the service.
|
|
43
|
+
// Results may also vary between nearly-equivalent routes at any time or
|
|
44
|
+
// frequency.
|
|
44
45
|
TRAFFIC_UNAWARE = 1;
|
|
45
46
|
|
|
46
47
|
// Calculates routes taking live traffic conditions into consideration.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "SpeedReadingIntervalProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -52,6 +52,8 @@ message SpeedReadingInterval {
|
|
|
52
52
|
// The ending index of this interval in the polyline.
|
|
53
53
|
optional int32 end_polyline_point_index = 2;
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
oneof speed_type {
|
|
56
|
+
// Traffic speed in this interval.
|
|
57
|
+
Speed speed = 3;
|
|
58
|
+
}
|
|
57
59
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -20,7 +20,7 @@ import "google/type/money.proto";
|
|
|
20
20
|
|
|
21
21
|
option cc_enable_arenas = true;
|
|
22
22
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
-
option go_package = "google.
|
|
23
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "TollInfoProto";
|
|
26
26
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -28,13 +28,15 @@ option objc_class_prefix = "GMRV2";
|
|
|
28
28
|
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
29
29
|
option ruby_package = "Google::Maps::Routing::V2";
|
|
30
30
|
|
|
31
|
-
// Encapsulates toll information on a
|
|
31
|
+
// Encapsulates toll information on a [Route][google.maps.routing.v2.Route] or
|
|
32
|
+
// on a [RouteLeg][google.maps.routing.v2.RouteLeg].
|
|
32
33
|
message TollInfo {
|
|
33
|
-
// The monetary amount of tolls for the corresponding
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
// this list
|
|
38
|
-
//
|
|
34
|
+
// The monetary amount of tolls for the corresponding
|
|
35
|
+
// [Route][google.maps.routing.v2.Route] or
|
|
36
|
+
// [RouteLeg][google.maps.routing.v2.RouteLeg]. This list contains a money
|
|
37
|
+
// amount for each currency that is expected to be charged by the toll
|
|
38
|
+
// stations. Typically this list will contain only one item for routes with
|
|
39
|
+
// tolls in one currency. For international trips, this list may contain
|
|
40
|
+
// multiple items to reflect tolls in different currencies.
|
|
39
41
|
repeated google.type.Money estimated_price = 1;
|
|
40
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "TollPassesProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -211,6 +211,9 @@ enum TollPass {
|
|
|
211
211
|
// MI, USA.
|
|
212
212
|
US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36;
|
|
213
213
|
|
|
214
|
+
// MI, USA.
|
|
215
|
+
US_MI_BCPASS = 94;
|
|
216
|
+
|
|
214
217
|
// MI, USA.
|
|
215
218
|
US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37;
|
|
216
219
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "UnitsProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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,7 @@ package google.maps.routing.v2;
|
|
|
18
18
|
|
|
19
19
|
option cc_enable_arenas = true;
|
|
20
20
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
-
option go_package = "google.
|
|
21
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
22
22
|
option java_multiple_files = true;
|
|
23
23
|
option java_outer_classname = "VehicleEmissionTypeProto";
|
|
24
24
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -27,9 +27,10 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
|
27
27
|
option ruby_package = "Google::Maps::Routing::V2";
|
|
28
28
|
|
|
29
29
|
// A set of values describing the vehicle's emission type.
|
|
30
|
-
// Applies only to the DRIVE
|
|
30
|
+
// Applies only to the `DRIVE`
|
|
31
|
+
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
|
|
31
32
|
enum VehicleEmissionType {
|
|
32
|
-
// No emission type specified. Default to GASOLINE
|
|
33
|
+
// No emission type specified. Default to `GASOLINE`.
|
|
33
34
|
VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0;
|
|
34
35
|
|
|
35
36
|
// Gasoline/petrol fueled vehicle.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 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.
|
|
@@ -20,7 +20,7 @@ import "google/maps/routing/v2/vehicle_emission_type.proto";
|
|
|
20
20
|
|
|
21
21
|
option cc_enable_arenas = true;
|
|
22
22
|
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
-
option go_package = "google.
|
|
23
|
+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "VehicleInfoProto";
|
|
26
26
|
option java_package = "com.google.maps.routing.v2";
|
|
@@ -32,6 +32,6 @@ option ruby_package = "Google::Maps::Routing::V2";
|
|
|
32
32
|
// character.
|
|
33
33
|
message VehicleInfo {
|
|
34
34
|
// Describes the vehicle's emission type.
|
|
35
|
-
// Applies only to the DRIVE travel mode.
|
|
35
|
+
// Applies only to the `DRIVE` travel mode.
|
|
36
36
|
VehicleEmissionType emission_type = 2;
|
|
37
37
|
}
|