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 15syntax = "proto3"; 16 17package google.maps.routing.v2; 18 19import "google/protobuf/wrappers.proto"; 20import "google/type/latlng.proto"; 21 22option cc_enable_arenas = true; 23option csharp_namespace = "Google.Maps.Routing.V2"; 24option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; 25option java_multiple_files = true; 26option java_outer_classname = "LocationProto"; 27option java_package = "com.google.maps.routing.v2"; 28option objc_class_prefix = "GMRV2"; 29option php_namespace = "Google\\Maps\\Routing\\V2"; 30option ruby_package = "Google::Maps::Routing::V2"; 31 32// Encapsulates a location (a geographic point, and an optional heading). 33message Location { 34 // The waypoint's geographic coordinates. 35 google.type.LatLng lat_lng = 1; 36 37 // The compass heading associated with the direction of the flow of traffic. 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` 42 // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. 43 google.protobuf.Int32Value heading = 2; 44} 45