@googlemaps/routing 0.3.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.3.1...routing-v0.4.0) (2023-03-13)
4
+
5
+
6
+ ### Features
7
+
8
+ * [routing] added support for specifying waypoints as addresses ([#4065](https://github.com/googleapis/google-cloud-node/issues/4065)) ([e325ac5](https://github.com/googleapis/google-cloud-node/commit/e325ac51cf2550cc9d9dba6a8145d4affe766930))
9
+
10
+ ## [0.3.1](https://github.com/googleapis/google-cloud-node/compare/routing-v0.3.0...routing-v0.3.1) (2023-02-15)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * [Many APIs] changing format of the jsdoc links ([#3991](https://github.com/googleapis/google-cloud-node/issues/3991)) ([c6326d9](https://github.com/googleapis/google-cloud-node/commit/c6326d90abb9b649b25052e4afe7b3eb0f65bcb4))
16
+
3
17
  ## [0.3.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.2.1...routing-v0.3.0) (2023-01-28)
4
18
 
5
19
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # [Google Maps Routing: Node.js Client](https://github.com/googleapis/google-cloud-node)
6
6
 
7
- [![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
7
+ [![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
8
8
  [![npm version](https://img.shields.io/npm/v/@googlemaps/routing.svg)](https://www.npmjs.org/package/@googlemaps/routing)
9
9
 
10
10
 
@@ -200,13 +200,12 @@ This library follows [Semantic Versioning](http://semver.org/).
200
200
 
201
201
 
202
202
 
203
- This library is considered to be in **beta**. This means it is expected to be
204
- mostly stable while we work toward a general availability release; however,
205
- complete stability is not guaranteed. We will address issues and requests
206
- against beta libraries with a high priority.
207
203
 
208
204
 
209
205
 
206
+ This library is considered to be in **preview**. This means it is still a
207
+ work-in-progress and under active development. Any release is subject to
208
+ backwards-incompatible changes at any time.
210
209
 
211
210
 
212
211
  More Information: [Google Cloud Platform Launch Stages][launch_stages]
@@ -0,0 +1,71 @@
1
+ // Copyright 2023 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.maps.routing.v2;
18
+
19
+ import "google/rpc/status.proto";
20
+
21
+ option cc_enable_arenas = true;
22
+ option csharp_namespace = "Google.Maps.Routing.V2";
23
+ option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
24
+ option java_multiple_files = true;
25
+ option java_outer_classname = "GeocodingResultsProto";
26
+ option java_package = "com.google.maps.routing.v2";
27
+ option objc_class_prefix = "GMRV2";
28
+ option php_namespace = "Google\\Maps\\Routing\\V2";
29
+ option ruby_package = "Google::Maps::Routing::V2";
30
+
31
+ // Contains GeocodedWaypoints for origin, destination and intermediate
32
+ // waypoints. Only populated for address waypoints.
33
+ message GeocodingResults {
34
+ // Origin geocoded waypoint.
35
+ GeocodedWaypoint origin = 1;
36
+
37
+ // Destination geocoded waypoint.
38
+ GeocodedWaypoint destination = 2;
39
+
40
+ // A list of intermediate geocoded waypoints each containing an index field
41
+ // that corresponds to the zero-based position of the waypoint in the order
42
+ // they were specified in the request.
43
+ repeated GeocodedWaypoint intermediates = 3;
44
+ }
45
+
46
+ // Details about the locations used as waypoints. Only populated for address
47
+ // waypoints. Includes details about the geocoding results for the purposes of
48
+ // determining what the address was geocoded to.
49
+ message GeocodedWaypoint {
50
+ // Indicates the status code resulting from the geocoding operation.
51
+ google.rpc.Status geocoder_status = 1;
52
+
53
+ // The index of the corresponding intermediate waypoint in the request.
54
+ // Only populated if the corresponding waypoint is an intermediate
55
+ // waypoint.
56
+ optional int32 intermediate_waypoint_request_index = 2;
57
+
58
+ // The type(s) of the result, in the form of zero or more type tags.
59
+ // Supported types:
60
+ // https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
61
+ repeated string type = 3;
62
+
63
+ // Indicates that the geocoder did not return an exact match for the original
64
+ // request, though it was able to match part of the requested address. You may
65
+ // wish to examine the original request for misspellings and/or an incomplete
66
+ // address.
67
+ bool partial_match = 4;
68
+
69
+ // The place ID for this result.
70
+ string place_id = 5;
71
+ }
@@ -145,16 +145,7 @@ message RouteLegTravelAdvisory {
145
145
  // Encapsulates the additional information that the user should be informed
146
146
  // about, such as possible traffic zone restriction on a leg step.
147
147
  message RouteLegStepTravelAdvisory {
148
- // Speed reading intervals detailing traffic density. Applicable in case of
149
- // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
150
- // The intervals cover the entire polyline of the RouteLegStep without
151
- // overlap. The start point of a specified interval is the same as the end
152
- // point of the preceding interval.
153
- //
154
- // Example:
155
- //
156
- // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
157
- // speed_reading_intervals: [A,C), [C,D), [D,G).
148
+ // NOTE: This field is not currently populated.
158
149
  repeated SpeedReadingInterval speed_reading_intervals = 1;
159
150
  }
160
151
 
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
20
20
  import "google/api/client.proto";
21
21
  import "google/api/field_behavior.proto";
22
22
  import "google/maps/routing/v2/fallback_info.proto";
23
+ import "google/maps/routing/v2/geocoding_results.proto";
23
24
  import "google/maps/routing/v2/polyline.proto";
24
25
  import "google/maps/routing/v2/route.proto";
25
26
  import "google/maps/routing/v2/route_modifiers.proto";
@@ -194,7 +195,8 @@ message ComputeRoutesRequest {
194
195
  [(google.api.field_behavior) = OPTIONAL];
195
196
 
196
197
  // Optional. Specifies whether to calculate alternate routes in addition to
197
- // the route.
198
+ // the route. No alternative routes are returned for requests that have
199
+ // intermediate waypoints.
198
200
  bool compute_alternative_routes = 8 [(google.api.field_behavior) = OPTIONAL];
199
201
 
200
202
  // Optional. A set of conditions to satisfy that affect the way routes are
@@ -246,6 +248,9 @@ message ComputeRoutesResponse {
246
248
  // computation. When fallback mode is used, this field contains detailed info
247
249
  // about the fallback response. Otherwise this field is unset.
248
250
  FallbackInfo fallback_info = 2;
251
+
252
+ // Contains geocoding response info for waypoints specified as addresses.
253
+ GeocodingResults geocoding_results = 3;
249
254
  }
250
255
 
251
256
  // ComputeRouteMatrix request message
@@ -258,7 +263,7 @@ message ComputeRouteMatrixRequest {
258
263
  // Toll information for the matrix element(s).
259
264
  TOLLS = 1;
260
265
  }
261
-
266
+
262
267
  // Required. Array of origins, which determines the rows of the response
263
268
  // matrix. Several size restrictions apply to the cardinality of origins and
264
269
  // destinations:
@@ -39,6 +39,10 @@ message Waypoint {
39
39
 
40
40
  // The POI Place ID associated with the waypoint.
41
41
  string place_id = 2;
42
+
43
+ // Human readable address or a plus code.
44
+ // See https://plus.codes for details.
45
+ string address = 7;
42
46
  }
43
47
 
44
48
  // Marks this waypoint as a milestone rather a stopping point. For