@@ -20,6 +20,7 @@ import "google/geo/type/viewport.proto";
2020import "google/maps/routing/v2/location.proto" ;
2121import "google/maps/routing/v2/navigation_instruction.proto" ;
2222import "google/maps/routing/v2/polyline.proto" ;
23+ import "google/maps/routing/v2/route_label.proto" ;
2324import "google/maps/routing/v2/speed_reading_interval.proto" ;
2425import "google/maps/routing/v2/toll_info.proto" ;
2526import "google/protobuf/duration.proto" ;
@@ -37,6 +38,10 @@ option ruby_package = "Google::Maps::Routing::V2";
3738// Encapsulates a route, which consists of a series of connected road segments
3839// that join beginning, ending, and intermediate waypoints.
3940message Route {
41+ // Labels for the `Route` that are useful to identify specific properties
42+ // of the route to compare against others.
43+ repeated RouteLabel route_labels = 13 ;
44+
4045 // A collection of legs (path segments between waypoints) that make-up the
4146 // route. Each leg corresponds to the trip between two non-`via` Waypoints.
4247 // For example, a route with no intermediate waypoints has only one leg. A
@@ -75,6 +80,13 @@ message Route {
7580
7681 // Additional information about the route.
7782 RouteTravelAdvisory travel_advisory = 9 ;
83+
84+ // Web-safe base64 encoded route token that can be passed to NavigationSDK,
85+ // which allows NavigationSDK to reconstruct the route during navigation, and
86+ // in the event of rerouting honor the original intention when Routes
87+ // ComputeRoutes is called. Customers should treat this token as an
88+ // opaque blob.
89+ string route_token = 12 ;
7890}
7991
8092// Encapsulates the additional information that the user should be informed
@@ -98,6 +110,9 @@ message RouteTravelAdvisory {
98110 // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
99111 // speed_reading_intervals: [A,C), [C,D), [D,G).
100112 repeated SpeedReadingInterval speed_reading_intervals = 3 ;
113+
114+ // The fuel consumption prediction in microliters.
115+ int64 fuel_consumption_microliters = 5 ;
101116}
102117
103118// Encapsulates the additional information that the user should be informed
0 commit comments