custom_route.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.maps.routes.v1;
  16. import "google/maps/routes/v1/route.proto";
  17. option cc_enable_arenas = true;
  18. option csharp_namespace = "Google.Maps.Routes.V1";
  19. option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "CustomRouteProto";
  22. option java_package = "com.google.maps.routes.v1";
  23. option objc_class_prefix = "GMRS";
  24. option php_namespace = "Google\\Maps\\Routes\\V1";
  25. // Encapsulates a custom route computed based on the route objective specified
  26. // by the customer. CustomRoute contains a route and a route token, which can be
  27. // passed to NavSDK to reconstruct the custom route for turn by turn navigation.
  28. message CustomRoute {
  29. // The route considered 'best' for the input route objective.
  30. Route route = 11;
  31. // Web-safe base64 encoded route token that can be passed to NavSDK, which
  32. // allows NavSDK to reconstruct the route during navigation, and in the event
  33. // of rerouting honor the original intention when RoutesPreferred
  34. // ComputeCustomRoutes is called. Customers should treat this token as an
  35. // opaque blob.
  36. string token = 12;
  37. }