Skip to content

Commit 8414c84

Browse files
feat: [routing] Add HTML Navigation Instructions feature to ComputeRoutes (#4381)
* feat: Add HTML Navigation Instructions feature to ComputeRoutes feat: Add Waypoint Optimization feature to ComputeRoutes feat: Support Transit routes in ComputeRoutes and ComputeRouteMatrix feat: Add TrafficModel feature in ComputeRoutes and ComputeRouteMatrix feat: Support returning localized values in ComputeRoutes and ComputeRouteMatrix feat: Add more navigation instruction maneuvers feat: Add more toll pass values PiperOrigin-RevId: 544137630 Source-Link: googleapis/googleapis@6e0f749 Source-Link: googleapis/googleapis-gen@cb29cc1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcm91dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiY2IyOWNjMTllYjRmYTk2ZWNjNzViYzQ5NTExZmU5ZWJhMzI1ZTI5NyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]>
1 parent a425fe2 commit 8414c84

23 files changed

Lines changed: 9491 additions & 981 deletions

packages/google-maps-routing/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[//]: # "To regenerate it, use `python -m synthtool`."
33
<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"/>
44

5-
# [Google Maps Routing: Node.js Client](https://github.com/googleapis/google-cloud-node)
5+
# [Google Maps Routing: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-routing)
66

77
[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
88
[![npm version](https://img.shields.io/npm/v/@googlemaps/routing.svg)](https://www.npmjs.org/package/@googlemaps/routing)
@@ -158,14 +158,13 @@ callComputeRoutes();
158158

159159
## Samples
160160

161-
Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
161+
Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-routing/samples) directory. Each sample's `README.md` has instructions for running its sample.
162162

163163
| Sample | Source Code | Try it |
164164
| --------------------------- | --------------------------------- | ------ |
165-
| Routes.compute_route_matrix | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/samples/generated/v2/routes.compute_route_matrix.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-routing/samples/generated/v2/routes.compute_route_matrix.js,samples/README.md) |
166-
| Routes.compute_routes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/samples/generated/v2/routes.compute_routes.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-routing/samples/generated/v2/routes.compute_routes.js,samples/README.md) |
167-
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/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-routing/samples/quickstart.js,samples/README.md) |
168-
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/samples/test/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-routing/samples/test/quickstart.js,samples/README.md) |
165+
| Routes.compute_route_matrix | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/samples/generated/v2/routes.compute_route_matrix.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-routing/samples/generated/v2/routes.compute_route_matrix.js,packages/google-maps-routing/samples/README.md) |
166+
| Routes.compute_routes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/samples/generated/v2/routes.compute_routes.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-routing/samples/generated/v2/routes.compute_routes.js,packages/google-maps-routing/samples/README.md) |
167+
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-maps-routing/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-routing/samples/quickstart.js,packages/google-maps-routing/samples/README.md) |
169168

170169

171170

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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/type/localized_text.proto";
20+
21+
option cc_enable_arenas = true;
22+
option csharp_namespace = "Google.Maps.Routing.V2";
23+
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "LocalizedTimeProto";
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+
// Localized description of time.
32+
message LocalizedTime {
33+
// The time specified as a string in a given time zone.
34+
google.type.LocalizedText time = 1;
35+
36+
// Contains the time zone. The value is the name of the time zone as defined
37+
// in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
38+
// "America/New_York".
39+
string time_zone = 2;
40+
}

packages/google-maps-routing/protos/google/maps/routing/v2/location.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ message Location {
3535
google.type.LatLng lat_lng = 1;
3636

3737
// The compass heading associated with the direction of the flow of traffic.
38-
// This value is used to specify the side of the road to use for pickup and
39-
// drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
40-
// of due North, 90 specifies a heading of due East, etc. You can use this
41-
// field only for `DRIVE` and `TWO_WHEELER`
38+
// This value specifies the side of the road for pickup and drop-off. Heading
39+
// values can be from 0 to 360, where 0 specifies a heading of due North, 90
40+
// specifies a heading of due East, and so on. You can use this field only for
41+
// `DRIVE` and `TWO_WHEELER`
4242
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
4343
google.protobuf.Int32Value heading = 2;
4444
}

packages/google-maps-routing/protos/google/maps/routing/v2/maneuver.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,10 @@ enum Maneuver {
8585

8686
// Turn right at the roundabout.
8787
ROUNDABOUT_RIGHT = 18;
88+
89+
// Initial maneuver.
90+
DEPART = 19;
91+
92+
// Used to indicate a street name change.
93+
NAME_CHANGE = 20;
8894
}

0 commit comments

Comments
 (0)