|
| 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/rpc/status.proto"; |
| 20 | + |
| 21 | +option cc_enable_arenas = true; |
| 22 | +option csharp_namespace = "Google.Maps.Routing.V2"; |
| 23 | +option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; |
| 24 | +option java_multiple_files = true; |
| 25 | +option java_outer_classname = "GeocodingResultsProto"; |
| 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 | +// Contains GeocodedWaypoints for origin, destination and intermediate |
| 32 | +// waypoints. Only populated for address waypoints. |
| 33 | +message GeocodingResults { |
| 34 | + // Origin geocoded waypoint. |
| 35 | + GeocodedWaypoint origin = 1; |
| 36 | + |
| 37 | + // Destination geocoded waypoint. |
| 38 | + GeocodedWaypoint destination = 2; |
| 39 | + |
| 40 | + // A list of intermediate geocoded waypoints each containing an index field |
| 41 | + // that corresponds to the zero-based position of the waypoint in the order |
| 42 | + // they were specified in the request. |
| 43 | + repeated GeocodedWaypoint intermediates = 3; |
| 44 | +} |
| 45 | + |
| 46 | +// Details about the locations used as waypoints. Only populated for address |
| 47 | +// waypoints. Includes details about the geocoding results for the purposes of |
| 48 | +// determining what the address was geocoded to. |
| 49 | +message GeocodedWaypoint { |
| 50 | + // Indicates the status code resulting from the geocoding operation. |
| 51 | + google.rpc.Status geocoder_status = 1; |
| 52 | + |
| 53 | + // The index of the corresponding intermediate waypoint in the request. |
| 54 | + // Only populated if the corresponding waypoint is an intermediate |
| 55 | + // waypoint. |
| 56 | + optional int32 intermediate_waypoint_request_index = 2; |
| 57 | + |
| 58 | + // The type(s) of the result, in the form of zero or more type tags. |
| 59 | + // Supported types: |
| 60 | + // https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types |
| 61 | + repeated string type = 3; |
| 62 | + |
| 63 | + // Indicates that the geocoder did not return an exact match for the original |
| 64 | + // request, though it was able to match part of the requested address. You may |
| 65 | + // wish to examine the original request for misspellings and/or an incomplete |
| 66 | + // address. |
| 67 | + bool partial_match = 4; |
| 68 | + |
| 69 | + // The place ID for this result. |
| 70 | + string place_id = 5; |
| 71 | +} |
0 commit comments