Skip to content

Commit 6e0f749

Browse files
Google APIscopybara-github
authored andcommitted
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
1 parent 4db339e commit 6e0f749

13 files changed

Lines changed: 700 additions & 72 deletions

google/maps/routing/v2/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ proto_library(
2323
srcs = [
2424
"fallback_info.proto",
2525
"geocoding_results.proto",
26+
"localized_time.proto",
2627
"location.proto",
2728
"maneuver.proto",
2829
"navigation_instruction.proto",
@@ -36,6 +37,9 @@ proto_library(
3637
"speed_reading_interval.proto",
3738
"toll_info.proto",
3839
"toll_passes.proto",
40+
"traffic_model.proto",
41+
"transit.proto",
42+
"transit_preferences.proto",
3943
"units.proto",
4044
"vehicle_emission_type.proto",
4145
"vehicle_info.proto",
@@ -48,6 +52,7 @@ proto_library(
4852
"//google/geo/type:viewport_proto",
4953
"//google/rpc:status_proto",
5054
"//google/type:latlng_proto",
55+
"//google/type:localized_text_proto",
5156
"//google/type:money_proto",
5257
"@com_google_protobuf//:duration_proto",
5358
"@com_google_protobuf//:struct_proto",
@@ -146,6 +151,7 @@ go_proto_library(
146151
"//google/geo/type:viewport_go_proto",
147152
"//google/rpc:status_go_proto",
148153
"//google/type:latlng_go_proto",
154+
"//google/type:localized_text_go_proto",
149155
"//google/type:money_go_proto",
150156
],
151157
)
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+
}

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
}

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)