Skip to content

Commit

Permalink
feat: Add HTML Navigation Instructions feature to ComputeRoutes
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Google APIs authored and Copybara-Service committed Jun 28, 2023
1 parent 4db339e commit 6e0f749
Show file tree
Hide file tree
Showing 13 changed files with 700 additions and 72 deletions.
6 changes: 6 additions & 0 deletions google/maps/routing/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ proto_library(
srcs = [
"fallback_info.proto",
"geocoding_results.proto",
"localized_time.proto",
"location.proto",
"maneuver.proto",
"navigation_instruction.proto",
Expand All @@ -36,6 +37,9 @@ proto_library(
"speed_reading_interval.proto",
"toll_info.proto",
"toll_passes.proto",
"traffic_model.proto",
"transit.proto",
"transit_preferences.proto",
"units.proto",
"vehicle_emission_type.proto",
"vehicle_info.proto",
Expand All @@ -48,6 +52,7 @@ proto_library(
"//google/geo/type:viewport_proto",
"//google/rpc:status_proto",
"//google/type:latlng_proto",
"//google/type:localized_text_proto",
"//google/type:money_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:struct_proto",
Expand Down Expand Up @@ -146,6 +151,7 @@ go_proto_library(
"//google/geo/type:viewport_go_proto",
"//google/rpc:status_go_proto",
"//google/type:latlng_go_proto",
"//google/type:localized_text_go_proto",
"//google/type:money_go_proto",
],
)
Expand Down
40 changes: 40 additions & 0 deletions google/maps/routing/v2/localized_time.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.maps.routing.v2;

import "google/type/localized_text.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Maps.Routing.V2";
option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
option java_multiple_files = true;
option java_outer_classname = "LocalizedTimeProto";
option java_package = "com.google.maps.routing.v2";
option objc_class_prefix = "GMRV2";
option php_namespace = "Google\\Maps\\Routing\\V2";
option ruby_package = "Google::Maps::Routing::V2";

// Localized description of time.
message LocalizedTime {
// The time specified as a string in a given time zone.
google.type.LocalizedText time = 1;

// Contains the time zone. The value is the name of the time zone as defined
// in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
// "America/New_York".
string time_zone = 2;
}
8 changes: 4 additions & 4 deletions google/maps/routing/v2/location.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ message Location {
google.type.LatLng lat_lng = 1;

// The compass heading associated with the direction of the flow of traffic.
// This value is used to specify the side of the road to use for pickup and
// drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
// of due North, 90 specifies a heading of due East, etc. You can use this
// field only for `DRIVE` and `TWO_WHEELER`
// This value specifies the side of the road for pickup and drop-off. Heading
// values can be from 0 to 360, where 0 specifies a heading of due North, 90
// specifies a heading of due East, and so on. You can use this field only for
// `DRIVE` and `TWO_WHEELER`
// [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
google.protobuf.Int32Value heading = 2;
}
6 changes: 6 additions & 0 deletions google/maps/routing/v2/maneuver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,10 @@ enum Maneuver {

// Turn right at the roundabout.
ROUNDABOUT_RIGHT = 18;

// Initial maneuver.
DEPART = 19;

// Used to indicate a street name change.
NAME_CHANGE = 20;
}
Loading

0 comments on commit 6e0f749

Please sign in to comment.