routes

package
v0.0.0-...-ccc8af3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective_name = map[int32]string{
		0: "FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED",
		1: "FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA",
	}
	ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective_value = map[string]int32{
		"FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED":      0,
		"FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA": 1,
	}
)

Enum value maps for ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective.

View Source
var (
	RouteTravelMode_name = map[int32]string{
		0: "TRAVEL_MODE_UNSPECIFIED",
		1: "DRIVE",
		2: "BICYCLE",
		3: "WALK",
		4: "TWO_WHEELER",
		5: "TAXI",
	}
	RouteTravelMode_value = map[string]int32{
		"TRAVEL_MODE_UNSPECIFIED": 0,
		"DRIVE":                   1,
		"BICYCLE":                 2,
		"WALK":                    3,
		"TWO_WHEELER":             4,
		"TAXI":                    5,
	}
)

Enum value maps for RouteTravelMode.

View Source
var (
	RoutingPreference_name = map[int32]string{
		0: "ROUTING_PREFERENCE_UNSPECIFIED",
		1: "TRAFFIC_UNAWARE",
		2: "TRAFFIC_AWARE",
		3: "TRAFFIC_AWARE_OPTIMAL",
	}
	RoutingPreference_value = map[string]int32{
		"ROUTING_PREFERENCE_UNSPECIFIED": 0,
		"TRAFFIC_UNAWARE":                1,
		"TRAFFIC_AWARE":                  2,
		"TRAFFIC_AWARE_OPTIMAL":          3,
	}
)

Enum value maps for RoutingPreference.

View Source
var (
	Units_name = map[int32]string{
		0: "UNITS_UNSPECIFIED",
		1: "METRIC",
		2: "IMPERIAL",
	}
	Units_value = map[string]int32{
		"UNITS_UNSPECIFIED": 0,
		"METRIC":            1,
		"IMPERIAL":          2,
	}
)

Enum value maps for Units.

View Source
var (
	FallbackReason_name = map[int32]string{
		0: "FALLBACK_REASON_UNSPECIFIED",
		1: "SERVER_ERROR",
		2: "LATENCY_EXCEEDED",
	}
	FallbackReason_value = map[string]int32{
		"FALLBACK_REASON_UNSPECIFIED": 0,
		"SERVER_ERROR":                1,
		"LATENCY_EXCEEDED":            2,
	}
)

Enum value maps for FallbackReason.

View Source
var (
	FallbackRoutingMode_name = map[int32]string{
		0: "FALLBACK_ROUTING_MODE_UNSPECIFIED",
		1: "FALLBACK_TRAFFIC_UNAWARE",
		2: "FALLBACK_TRAFFIC_AWARE",
	}
	FallbackRoutingMode_value = map[string]int32{
		"FALLBACK_ROUTING_MODE_UNSPECIFIED": 0,
		"FALLBACK_TRAFFIC_UNAWARE":          1,
		"FALLBACK_TRAFFIC_AWARE":            2,
	}
)

Enum value maps for FallbackRoutingMode.

View Source
var (
	PolylineQuality_name = map[int32]string{
		0: "POLYLINE_QUALITY_UNSPECIFIED",
		1: "HIGH_QUALITY",
		2: "OVERVIEW",
	}
	PolylineQuality_value = map[string]int32{
		"POLYLINE_QUALITY_UNSPECIFIED": 0,
		"HIGH_QUALITY":                 1,
		"OVERVIEW":                     2,
	}
)

Enum value maps for PolylineQuality.

View Source
var (
	PolylineEncoding_name = map[int32]string{
		0: "POLYLINE_ENCODING_UNSPECIFIED",
		1: "ENCODED_POLYLINE",
		2: "GEO_JSON_LINESTRING",
	}
	PolylineEncoding_value = map[string]int32{
		"POLYLINE_ENCODING_UNSPECIFIED": 0,
		"ENCODED_POLYLINE":              1,
		"GEO_JSON_LINESTRING":           2,
	}
)

Enum value maps for PolylineEncoding.

View Source
var (
	Maneuver_name = map[int32]string{
		0:  "MANEUVER_UNSPECIFIED",
		1:  "TURN_SLIGHT_LEFT",
		2:  "TURN_SHARP_LEFT",
		3:  "UTURN_LEFT",
		4:  "TURN_LEFT",
		5:  "TURN_SLIGHT_RIGHT",
		6:  "TURN_SHARP_RIGHT",
		7:  "UTURN_RIGHT",
		8:  "TURN_RIGHT",
		9:  "STRAIGHT",
		10: "RAMP_LEFT",
		11: "RAMP_RIGHT",
		12: "MERGE",
		13: "FORK_LEFT",
		14: "FORK_RIGHT",
		15: "FERRY",
		16: "FERRY_TRAIN",
		17: "ROUNDABOUT_LEFT",
		18: "ROUNDABOUT_RIGHT",
	}
	Maneuver_value = map[string]int32{
		"MANEUVER_UNSPECIFIED": 0,
		"TURN_SLIGHT_LEFT":     1,
		"TURN_SHARP_LEFT":      2,
		"UTURN_LEFT":           3,
		"TURN_LEFT":            4,
		"TURN_SLIGHT_RIGHT":    5,
		"TURN_SHARP_RIGHT":     6,
		"UTURN_RIGHT":          7,
		"TURN_RIGHT":           8,
		"STRAIGHT":             9,
		"RAMP_LEFT":            10,
		"RAMP_RIGHT":           11,
		"MERGE":                12,
		"FORK_LEFT":            13,
		"FORK_RIGHT":           14,
		"FERRY":                15,
		"FERRY_TRAIN":          16,
		"ROUNDABOUT_LEFT":      17,
		"ROUNDABOUT_RIGHT":     18,
	}
)

Enum value maps for Maneuver.

View Source
var (
	SpeedReadingInterval_Speed_name = map[int32]string{
		0: "SPEED_UNSPECIFIED",
		1: "NORMAL",
		2: "SLOW",
		3: "TRAFFIC_JAM",
	}
	SpeedReadingInterval_Speed_value = map[string]int32{
		"SPEED_UNSPECIFIED": 0,
		"NORMAL":            1,
		"SLOW":              2,
		"TRAFFIC_JAM":       3,
	}
)

Enum value maps for SpeedReadingInterval_Speed.

View Source
var (
	RouteMatrixElementCondition_name = map[int32]string{
		0: "ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED",
		1: "ROUTE_EXISTS",
		2: "ROUTE_NOT_FOUND",
	}
	RouteMatrixElementCondition_value = map[string]int32{
		"ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED": 0,
		"ROUTE_EXISTS":    1,
		"ROUTE_NOT_FOUND": 2,
	}
)

Enum value maps for RouteMatrixElementCondition.

View Source
var (
	TollPass_name = map[int32]string{
		0:  "TOLL_PASS_UNSPECIFIED",
		82: "AU_ETOLL_TAG",
		83: "AU_EWAY_TAG",
		2:  "AU_LINKT",
		3:  "AR_TELEPASE",
		81: "BR_AUTO_EXPRESO",
		7:  "BR_CONECTCAR",
		8:  "BR_MOVE_MAIS",
		88: "BR_PASSA_RAPIDO",
		9:  "BR_SEM_PARAR",
		10: "BR_TAGGY",
		11: "BR_VELOE",
		84: "CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD",
		85: "CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD",
		18: "CA_US_BLUE_WATER_EDGE_PASS",
		19: "CA_US_CONNEXION",
		20: "CA_US_NEXUS_CARD",
		16: "ID_E_TOLL",
		78: "IN_FASTAG",
		79: "IN_LOCAL_HP_PLATE_EXEMPT",
		12: "MX_TAG_IAVE",
		13: "MX_TAG_TELEVIA",
		14: "MX_VIAPASS",
		21: "US_AL_FREEDOM_PASS",
		22: "US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS",
		4:  "US_CA_FASTRAK",
		86: "US_CA_FASTRAK_CAV_STICKER",
		23: "US_CO_EXPRESSTOLL",
		24: "US_CO_GO_PASS",
		25: "US_DE_EZPASSDE",
		65: "US_FL_BOB_SIKES_TOLL_BRIDGE_PASS",
		66: "US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD",
		67: "US_FL_EPASS",
		68: "US_FL_GIBA_TOLL_PASS",
		69: "US_FL_LEEWAY",
		70: "US_FL_SUNPASS",
		71: "US_FL_SUNPASS_PRO",
		73: "US_IL_EZPASSIL",
		72: "US_IL_IPASS",
		26: "US_IN_EZPASSIN",
		27: "US_KS_BESTPASS_HORIZON",
		28: "US_KS_KTAG",
		29: "US_KS_NATIONALPASS",
		30: "US_KS_PREPASS_ELITEPASS",
		31: "US_KY_RIVERLINK",
		32: "US_LA_GEAUXPASS",
		33: "US_LA_TOLL_TAG",
		6:  "US_MA_EZPASSMA",
		34: "US_MD_EZPASSMD",
		35: "US_ME_EZPASSME",
		36: "US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD",
		37: "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG",
		38: "US_MI_IQ_PROX_CARD",
		39: "US_MI_MACKINAC_BRIDGE_MAC_PASS",
		40: "US_MI_NEXPRESS_TOLL",
		41: "US_MN_EZPASSMN",
		42: "US_NC_EZPASSNC",
		87: "US_NC_PEACH_PASS",
		43: "US_NC_QUICK_PASS",
		80: "US_NH_EZPASSNH",
		75: "US_NJ_DOWNBEACH_EXPRESS_PASS",
		74: "US_NJ_EZPASSNJ",
		76: "US_NY_EXPRESSPASS",
		77: "US_NY_EZPASSNY",
		44: "US_OH_EZPASSOH",
		45: "US_PA_EZPASSPA",
		46: "US_RI_EZPASSRI",
		47: "US_SC_PALPASS",
		48: "US_TX_BANCPASS",
		49: "US_TX_DEL_RIO_PASS",
		50: "US_TX_EFAST_PASS",
		51: "US_TX_EAGLE_PASS_EXPRESS_CARD",
		52: "US_TX_EPTOLL",
		53: "US_TX_EZ_CROSS",
		54: "US_TX_EZTAG",
		55: "US_TX_LAREDO_TRADE_TAG",
		56: "US_TX_PLUSPASS",
		57: "US_TX_TOLLTAG",
		58: "US_TX_TXTAG",
		59: "US_TX_XPRESS_CARD",
		60: "US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD",
		61: "US_VA_EZPASSVA",
		17: "US_WA_BREEZEBY",
		1:  "US_WA_GOOD_TO_GO",
		62: "US_WV_EZPASSWV",
		63: "US_WV_MEMORIAL_BRIDGE_TICKETS",
		64: "US_WV_NEWELL_TOLL_BRIDGE_TICKET",
	}
	TollPass_value = map[string]int32{
		"TOLL_PASS_UNSPECIFIED":                 0,
		"AU_ETOLL_TAG":                          82,
		"AU_EWAY_TAG":                           83,
		"AU_LINKT":                              2,
		"AR_TELEPASE":                           3,
		"BR_AUTO_EXPRESO":                       81,
		"BR_CONECTCAR":                          7,
		"BR_MOVE_MAIS":                          8,
		"BR_PASSA_RAPIDO":                       88,
		"BR_SEM_PARAR":                          9,
		"BR_TAGGY":                              10,
		"BR_VELOE":                              11,
		"CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD": 84,
		"CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD":   85,
		"CA_US_BLUE_WATER_EDGE_PASS":            18,
		"CA_US_CONNEXION":                       19,
		"CA_US_NEXUS_CARD":                      20,
		"ID_E_TOLL":                             16,
		"IN_FASTAG":                             78,
		"IN_LOCAL_HP_PLATE_EXEMPT":              79,
		"MX_TAG_IAVE":                           12,
		"MX_TAG_TELEVIA":                        13,
		"MX_VIAPASS":                            14,
		"US_AL_FREEDOM_PASS":                    21,
		"US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS": 22,
		"US_CA_FASTRAK":                    4,
		"US_CA_FASTRAK_CAV_STICKER":        86,
		"US_CO_EXPRESSTOLL":                23,
		"US_CO_GO_PASS":                    24,
		"US_DE_EZPASSDE":                   25,
		"US_FL_BOB_SIKES_TOLL_BRIDGE_PASS": 65,
		"US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD": 66,
		"US_FL_EPASS":             67,
		"US_FL_GIBA_TOLL_PASS":    68,
		"US_FL_LEEWAY":            69,
		"US_FL_SUNPASS":           70,
		"US_FL_SUNPASS_PRO":       71,
		"US_IL_EZPASSIL":          73,
		"US_IL_IPASS":             72,
		"US_IN_EZPASSIN":          26,
		"US_KS_BESTPASS_HORIZON":  27,
		"US_KS_KTAG":              28,
		"US_KS_NATIONALPASS":      29,
		"US_KS_PREPASS_ELITEPASS": 30,
		"US_KY_RIVERLINK":         31,
		"US_LA_GEAUXPASS":         32,
		"US_LA_TOLL_TAG":          33,
		"US_MA_EZPASSMA":          6,
		"US_MD_EZPASSMD":          34,
		"US_ME_EZPASSME":          35,
		"US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD": 36,
		"US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG":         37,
		"US_MI_IQ_PROX_CARD":                            38,
		"US_MI_MACKINAC_BRIDGE_MAC_PASS":                39,
		"US_MI_NEXPRESS_TOLL":                           40,
		"US_MN_EZPASSMN":                                41,
		"US_NC_EZPASSNC":                                42,
		"US_NC_PEACH_PASS":                              87,
		"US_NC_QUICK_PASS":                              43,
		"US_NH_EZPASSNH":                                80,
		"US_NJ_DOWNBEACH_EXPRESS_PASS":                  75,
		"US_NJ_EZPASSNJ":                                74,
		"US_NY_EXPRESSPASS":                             76,
		"US_NY_EZPASSNY":                                77,
		"US_OH_EZPASSOH":                                44,
		"US_PA_EZPASSPA":                                45,
		"US_RI_EZPASSRI":                                46,
		"US_SC_PALPASS":                                 47,
		"US_TX_BANCPASS":                                48,
		"US_TX_DEL_RIO_PASS":                            49,
		"US_TX_EFAST_PASS":                              50,
		"US_TX_EAGLE_PASS_EXPRESS_CARD":                 51,
		"US_TX_EPTOLL":                                  52,
		"US_TX_EZ_CROSS":                                53,
		"US_TX_EZTAG":                                   54,
		"US_TX_LAREDO_TRADE_TAG":                        55,
		"US_TX_PLUSPASS":                                56,
		"US_TX_TOLLTAG":                                 57,
		"US_TX_TXTAG":                                   58,
		"US_TX_XPRESS_CARD":                             59,
		"US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD":           60,
		"US_VA_EZPASSVA":                                61,
		"US_WA_BREEZEBY":                                17,
		"US_WA_GOOD_TO_GO":                              1,
		"US_WV_EZPASSWV":                                62,
		"US_WV_MEMORIAL_BRIDGE_TICKETS":                 63,
		"US_WV_NEWELL_TOLL_BRIDGE_TICKET":               64,
	}
)

Enum value maps for TollPass.

View Source
var (
	VehicleEmissionType_name = map[int32]string{
		0: "VEHICLE_EMISSION_TYPE_UNSPECIFIED",
		1: "GASOLINE",
		2: "ELECTRIC",
		3: "HYBRID",
	}
	VehicleEmissionType_value = map[string]int32{
		"VEHICLE_EMISSION_TYPE_UNSPECIFIED": 0,
		"GASOLINE":                          1,
		"ELECTRIC":                          2,
		"HYBRID":                            3,
	}
)

Enum value maps for VehicleEmissionType.

View Source
var File_google_maps_routes_v1_compute_custom_routes_request_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_compute_custom_routes_response_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_compute_route_matrix_request_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_compute_routes_request_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_compute_routes_response_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_custom_route_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_fallback_info_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_polyline_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_route_matrix_element_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_route_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_route_service_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_toll_passes_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_vehicle_emission_type_proto protoreflect.FileDescriptor
View Source
var File_google_maps_routes_v1_waypoint_proto protoreflect.FileDescriptor

Functions

func RegisterRoutesPreferredServer

func RegisterRoutesPreferredServer(s *grpc.Server, srv RoutesPreferredServer)

Types

type ComputeCustomRoutesRequest

type ComputeCustomRoutesRequest struct {

	// Required. Origin waypoint.
	Origin *Waypoint `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// Required. Destination waypoint.
	Destination *Waypoint `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
	// Optional. A set of waypoints along the route (excluding terminal points), for either
	// stopping at or passing by. Up to 25 intermediate waypoints are supported.
	Intermediates []*Waypoint `protobuf:"bytes,3,rep,name=intermediates,proto3" json:"intermediates,omitempty"`
	// Optional. Specifies the mode of transportation. Only DRIVE is supported now.
	TravelMode RouteTravelMode `` /* 135-byte string literal not displayed */
	// Optional. Specifies how to compute the route. The server attempts to use the selected
	// routing preference to compute the route. If the routing preference results
	// in an error or an extra long latency, then an error is returned. In the
	// future, we might implement a fallback mechanism to use a different option
	// when the preferred option does not give a valid result. You can specify
	// this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`,
	// otherwise the request fails.
	RoutingPreference RoutingPreference `` /* 158-byte string literal not displayed */
	// Optional. Specifies your preference for the quality of the polyline.
	PolylineQuality PolylineQuality `` /* 150-byte string literal not displayed */
	// Optional. Specifies the preferred encoding for the polyline.
	PolylineEncoding PolylineEncoding `` /* 155-byte string literal not displayed */
	// Optional. The departure time. If you don't set this value, then this value
	// defaults to the time that you made the request. If you set this value to a
	// time that has already occurred, then the request fails.
	DepartureTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"`
	// Optional. A set of conditions to satisfy that affect the way routes are calculated.
	RouteModifiers *RouteModifiers `protobuf:"bytes,11,opt,name=route_modifiers,json=routeModifiers,proto3" json:"route_modifiers,omitempty"`
	// Required. A route objective to optimize for.
	RouteObjective *RouteObjective `protobuf:"bytes,12,opt,name=route_objective,json=routeObjective,proto3" json:"route_objective,omitempty"`
	// Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
	// [Language Support](https://developers.google.com/maps/faq#languagesupport)
	// for the list of supported languages. When you don't provide this value, the
	// display language is inferred from the location of the route request.
	LanguageCode string `protobuf:"bytes,9,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. Specifies the units of measure for the display fields. This includes the
	// `instruction` field in `NavigationInstruction`. The units of measure used
	// for the route, leg, step distance, and duration are not affected by this
	// value. If you don't provide this value, then the display units are inferred
	// from the location of the request.
	Units Units `protobuf:"varint,10,opt,name=units,proto3,enum=google.maps.routes.v1.Units" json:"units,omitempty"`
	// contains filtered or unexported fields
}

ComputeCustomRoutes request message.

func (*ComputeCustomRoutesRequest) Descriptor deprecated

func (*ComputeCustomRoutesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ComputeCustomRoutesRequest.ProtoReflect.Descriptor instead.

func (*ComputeCustomRoutesRequest) GetDepartureTime

func (x *ComputeCustomRoutesRequest) GetDepartureTime() *timestamppb.Timestamp

func (*ComputeCustomRoutesRequest) GetDestination

func (x *ComputeCustomRoutesRequest) GetDestination() *Waypoint

func (*ComputeCustomRoutesRequest) GetIntermediates

func (x *ComputeCustomRoutesRequest) GetIntermediates() []*Waypoint

func (*ComputeCustomRoutesRequest) GetLanguageCode

func (x *ComputeCustomRoutesRequest) GetLanguageCode() string

func (*ComputeCustomRoutesRequest) GetOrigin

func (x *ComputeCustomRoutesRequest) GetOrigin() *Waypoint

func (*ComputeCustomRoutesRequest) GetPolylineEncoding

func (x *ComputeCustomRoutesRequest) GetPolylineEncoding() PolylineEncoding

func (*ComputeCustomRoutesRequest) GetPolylineQuality

func (x *ComputeCustomRoutesRequest) GetPolylineQuality() PolylineQuality

func (*ComputeCustomRoutesRequest) GetRouteModifiers

func (x *ComputeCustomRoutesRequest) GetRouteModifiers() *RouteModifiers

func (*ComputeCustomRoutesRequest) GetRouteObjective

func (x *ComputeCustomRoutesRequest) GetRouteObjective() *RouteObjective

func (*ComputeCustomRoutesRequest) GetRoutingPreference

func (x *ComputeCustomRoutesRequest) GetRoutingPreference() RoutingPreference

func (*ComputeCustomRoutesRequest) GetTravelMode

func (x *ComputeCustomRoutesRequest) GetTravelMode() RouteTravelMode

func (*ComputeCustomRoutesRequest) GetUnits

func (x *ComputeCustomRoutesRequest) GetUnits() Units

func (*ComputeCustomRoutesRequest) ProtoMessage

func (*ComputeCustomRoutesRequest) ProtoMessage()

func (*ComputeCustomRoutesRequest) ProtoReflect

func (*ComputeCustomRoutesRequest) Reset

func (x *ComputeCustomRoutesRequest) Reset()

func (*ComputeCustomRoutesRequest) String

func (x *ComputeCustomRoutesRequest) String() string

type ComputeCustomRoutesResponse

type ComputeCustomRoutesResponse struct {

	// The ‘best’ routes for the input route objective.
	Routes []*CustomRoute `protobuf:"bytes,7,rep,name=routes,proto3" json:"routes,omitempty"`
	// The fastest reference route.
	FastestRoute *CustomRoute `protobuf:"bytes,5,opt,name=fastest_route,json=fastestRoute,proto3" json:"fastest_route,omitempty"`
	// The shortest reference route.
	ShortestRoute *CustomRoute `protobuf:"bytes,6,opt,name=shortest_route,json=shortestRoute,proto3" json:"shortest_route,omitempty"`
	// Fallback info for custom routes.
	FallbackInfo *ComputeCustomRoutesResponse_FallbackInfo `protobuf:"bytes,8,opt,name=fallback_info,json=fallbackInfo,proto3" json:"fallback_info,omitempty"`
	// contains filtered or unexported fields
}

ComputeCustomRoutes response message.

func (*ComputeCustomRoutesResponse) Descriptor deprecated

func (*ComputeCustomRoutesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ComputeCustomRoutesResponse.ProtoReflect.Descriptor instead.

func (*ComputeCustomRoutesResponse) GetFallbackInfo

func (*ComputeCustomRoutesResponse) GetFastestRoute

func (x *ComputeCustomRoutesResponse) GetFastestRoute() *CustomRoute

func (*ComputeCustomRoutesResponse) GetRoutes

func (x *ComputeCustomRoutesResponse) GetRoutes() []*CustomRoute

func (*ComputeCustomRoutesResponse) GetShortestRoute

func (x *ComputeCustomRoutesResponse) GetShortestRoute() *CustomRoute

func (*ComputeCustomRoutesResponse) ProtoMessage

func (*ComputeCustomRoutesResponse) ProtoMessage()

func (*ComputeCustomRoutesResponse) ProtoReflect

func (*ComputeCustomRoutesResponse) Reset

func (x *ComputeCustomRoutesResponse) Reset()

func (*ComputeCustomRoutesResponse) String

func (x *ComputeCustomRoutesResponse) String() string

type ComputeCustomRoutesResponse_FallbackInfo

type ComputeCustomRoutesResponse_FallbackInfo struct {

	// Routing mode used for the response. If fallback was triggered, the mode
	// may be different from routing preference set in the original client
	// request.
	RoutingMode FallbackRoutingMode `` /* 142-byte string literal not displayed */
	// The reason why fallback response was used instead of the original
	// response.
	// This field is only populated when the fallback mode is triggered and
	// the fallback response is returned.
	RoutingModeReason FallbackReason `` /* 157-byte string literal not displayed */
	// The route objective used for the response. If fallback was triggered, the
	// objective may be different from the route objective provided in the
	// original client request.
	RouteObjective ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective `` /* 195-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates fallback info for ComputeCustomRoutes. ComputeCustomRoutes performs two types of fallbacks:

1. If it cannot compute the route using the routing_preference requested by the customer, it will fallback to another routing mode. In this case fallback_routing_mode and routing_mode_fallback_reason are used to communicate the fallback routing mode used, as well as the reason for fallback.

2. If it cannot compute a 'best' route for the route objective specified by the customer, it might fallback to another objective. fallback_route_objective is used to communicate the fallback route objective.

func (*ComputeCustomRoutesResponse_FallbackInfo) Descriptor deprecated

func (*ComputeCustomRoutesResponse_FallbackInfo) Descriptor() ([]byte, []int)

Deprecated: Use ComputeCustomRoutesResponse_FallbackInfo.ProtoReflect.Descriptor instead.

func (*ComputeCustomRoutesResponse_FallbackInfo) GetRouteObjective

func (*ComputeCustomRoutesResponse_FallbackInfo) GetRoutingMode

func (*ComputeCustomRoutesResponse_FallbackInfo) GetRoutingModeReason

func (x *ComputeCustomRoutesResponse_FallbackInfo) GetRoutingModeReason() FallbackReason

func (*ComputeCustomRoutesResponse_FallbackInfo) ProtoMessage

func (*ComputeCustomRoutesResponse_FallbackInfo) ProtoReflect

func (*ComputeCustomRoutesResponse_FallbackInfo) Reset

func (*ComputeCustomRoutesResponse_FallbackInfo) String

type ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective

type ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective int32

RouteObjective used for the response.

const (
	// Fallback route objective unspecified.
	ComputeCustomRoutesResponse_FallbackInfo_FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective = 0
	// If customer requests RateCard and sets include_tolls to true, and
	// Google does not have toll price data for the route, the API falls back
	// to RateCard without considering toll price.
	ComputeCustomRoutesResponse_FallbackInfo_FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective = 1
)

func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Descriptor

func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Enum

func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) EnumDescriptor deprecated

Deprecated: Use ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective.Descriptor instead.

func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Number

func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) String

func (ComputeCustomRoutesResponse_FallbackInfo_FallbackRouteObjective) Type

type ComputeRouteMatrixRequest

type ComputeRouteMatrixRequest struct {

	// Required. Array of origins, which determines the rows of the response matrix.
	// Several size restrictions apply to the cardinality of origins and
	// destinations:
	//
	// * The number of elements (origins × destinations) must be no greater than
	// 625 in any case.
	// * The number of elements (origins × destinations) must be no greater than
	// 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`.
	// * The number of waypoints (origins + destinations) specified as `place_id`
	// must be no greater than 50.
	Origins []*RouteMatrixOrigin `protobuf:"bytes,1,rep,name=origins,proto3" json:"origins,omitempty"`
	// Required. Array of destinations, which determines the columns of the response matrix.
	Destinations []*RouteMatrixDestination `protobuf:"bytes,2,rep,name=destinations,proto3" json:"destinations,omitempty"`
	// Optional. Specifies the mode of transportation.
	TravelMode RouteTravelMode `` /* 135-byte string literal not displayed */
	// Optional. Specifies how to compute the route. The server attempts to use the selected
	// routing preference to compute the route. If the routing preference results
	// in an error or an extra long latency, an error is returned. In the future,
	// we might implement a fallback mechanism to use a different option when the
	// preferred option does not give a valid result. You can specify this option
	// only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
	// request fails.
	RoutingPreference RoutingPreference `` /* 158-byte string literal not displayed */
	// Optional. The departure time. If you don't set this value, this defaults to the time
	// that you made the request. If you set this value to a time that has already
	// occurred, the request fails.
	DepartureTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"`
	// contains filtered or unexported fields
}

ComputeRouteMatrix request message

func (*ComputeRouteMatrixRequest) Descriptor deprecated

func (*ComputeRouteMatrixRequest) Descriptor() ([]byte, []int)

Deprecated: Use ComputeRouteMatrixRequest.ProtoReflect.Descriptor instead.

func (*ComputeRouteMatrixRequest) GetDepartureTime

func (x *ComputeRouteMatrixRequest) GetDepartureTime() *timestamppb.Timestamp

func (*ComputeRouteMatrixRequest) GetDestinations

func (x *ComputeRouteMatrixRequest) GetDestinations() []*RouteMatrixDestination

func (*ComputeRouteMatrixRequest) GetOrigins

func (x *ComputeRouteMatrixRequest) GetOrigins() []*RouteMatrixOrigin

func (*ComputeRouteMatrixRequest) GetRoutingPreference

func (x *ComputeRouteMatrixRequest) GetRoutingPreference() RoutingPreference

func (*ComputeRouteMatrixRequest) GetTravelMode

func (x *ComputeRouteMatrixRequest) GetTravelMode() RouteTravelMode

func (*ComputeRouteMatrixRequest) ProtoMessage

func (*ComputeRouteMatrixRequest) ProtoMessage()

func (*ComputeRouteMatrixRequest) ProtoReflect

func (*ComputeRouteMatrixRequest) Reset

func (x *ComputeRouteMatrixRequest) Reset()

func (*ComputeRouteMatrixRequest) String

func (x *ComputeRouteMatrixRequest) String() string

type ComputeRoutesRequest

type ComputeRoutesRequest struct {

	// Required. Origin waypoint.
	Origin *Waypoint `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// Required. Destination waypoint.
	Destination *Waypoint `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
	// Optional. A set of waypoints along the route (excluding terminal points),
	// for either stopping at or passing by. Up to 25 intermediate waypoints are
	// supported.
	Intermediates []*Waypoint `protobuf:"bytes,3,rep,name=intermediates,proto3" json:"intermediates,omitempty"`
	// Optional. Specifies the mode of transportation.
	TravelMode RouteTravelMode `` /* 135-byte string literal not displayed */
	// Optional. Specifies how to compute the route. The server
	// attempts to use the selected routing preference to compute the route. If
	//  the routing preference results in an error or an extra long latency, then
	// an error is returned. In the future, we might implement a fallback
	// mechanism to use a different option when the preferred option does not give
	// a valid result. You can specify this option only when the `travel_mode` is
	// `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
	RoutingPreference RoutingPreference `` /* 158-byte string literal not displayed */
	// Optional. Specifies your preference for the quality of the polyline.
	PolylineQuality PolylineQuality `` /* 150-byte string literal not displayed */
	// Optional. Specifies the preferred encoding for the polyline.
	PolylineEncoding PolylineEncoding `` /* 155-byte string literal not displayed */
	// Optional. The departure time. If you don't set this value, then this value
	// defaults to the time that you made the request. If you set this value to a
	// time that has already occurred, then the request fails.
	DepartureTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"`
	// Specifies whether to calculate alternate routes in addition to the route.
	ComputeAlternativeRoutes bool `` /* 136-byte string literal not displayed */
	// Optional. A set of conditions to satisfy that affect the way routes are
	// calculated.
	RouteModifiers *RouteModifiers `protobuf:"bytes,9,opt,name=route_modifiers,json=routeModifiers,proto3" json:"route_modifiers,omitempty"`
	// Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
	// [Language Support](https://developers.google.com/maps/faq#languagesupport)
	// for the list of supported languages. When you don't provide this value, the
	// display language is inferred from the location of the route request.
	LanguageCode string `protobuf:"bytes,10,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Optional. Specifies the units of measure for the display fields. This
	// includes the `instruction` field in `NavigationInstruction`. The units of
	// measure used for the route, leg, step distance, and duration are not
	// affected by this value. If you don't provide this value, then the display
	// units are inferred from the location of the request.
	Units Units `protobuf:"varint,11,opt,name=units,proto3,enum=google.maps.routes.v1.Units" json:"units,omitempty"`
	// If optimizeWaypointOrder is set to true, an attempt is made to re-order the
	// specified intermediate waypoints to minimize the overall cost of the route.
	// If any of the intermediate waypoints is via waypoint the request fails. Use
	// ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index to find
	// the new ordering. If routes.optimized_intermediate_waypoint_index is not
	// requested in the `X-Goog-FieldMask` header, the request fails. If
	// optimizeWaypointOrder is set to false,
	// ComputeRoutesResponse.optimized_intermediate_waypoint_index is empty.
	OptimizeWaypointOrder bool `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

ComputeRoutes request message.

func (*ComputeRoutesRequest) Descriptor deprecated

func (*ComputeRoutesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ComputeRoutesRequest.ProtoReflect.Descriptor instead.

func (*ComputeRoutesRequest) GetComputeAlternativeRoutes

func (x *ComputeRoutesRequest) GetComputeAlternativeRoutes() bool

func (*ComputeRoutesRequest) GetDepartureTime

func (x *ComputeRoutesRequest) GetDepartureTime() *timestamppb.Timestamp

func (*ComputeRoutesRequest) GetDestination

func (x *ComputeRoutesRequest) GetDestination() *Waypoint

func (*ComputeRoutesRequest) GetIntermediates

func (x *ComputeRoutesRequest) GetIntermediates() []*Waypoint

func (*ComputeRoutesRequest) GetLanguageCode

func (x *ComputeRoutesRequest) GetLanguageCode() string

func (*ComputeRoutesRequest) GetOptimizeWaypointOrder

func (x *ComputeRoutesRequest) GetOptimizeWaypointOrder() bool

func (*ComputeRoutesRequest) GetOrigin

func (x *ComputeRoutesRequest) GetOrigin() *Waypoint

func (*ComputeRoutesRequest) GetPolylineEncoding

func (x *ComputeRoutesRequest) GetPolylineEncoding() PolylineEncoding

func (*ComputeRoutesRequest) GetPolylineQuality

func (x *ComputeRoutesRequest) GetPolylineQuality() PolylineQuality

func (*ComputeRoutesRequest) GetRouteModifiers

func (x *ComputeRoutesRequest) GetRouteModifiers() *RouteModifiers

func (*ComputeRoutesRequest) GetRoutingPreference

func (x *ComputeRoutesRequest) GetRoutingPreference() RoutingPreference

func (*ComputeRoutesRequest) GetTravelMode

func (x *ComputeRoutesRequest) GetTravelMode() RouteTravelMode

func (*ComputeRoutesRequest) GetUnits

func (x *ComputeRoutesRequest) GetUnits() Units

func (*ComputeRoutesRequest) ProtoMessage

func (*ComputeRoutesRequest) ProtoMessage()

func (*ComputeRoutesRequest) ProtoReflect

func (x *ComputeRoutesRequest) ProtoReflect() protoreflect.Message

func (*ComputeRoutesRequest) Reset

func (x *ComputeRoutesRequest) Reset()

func (*ComputeRoutesRequest) String

func (x *ComputeRoutesRequest) String() string

type ComputeRoutesResponse

type ComputeRoutesResponse struct {

	// Contains an array of computed routes (up to three) when you specify
	// compute_alternatives_routes, and contains just one route when you don't.
	// When this array contains multiple entries, the first one is the most
	// recommended route. If the array is empty, then it means no route could be
	// found.
	Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
	// In some cases when the server is not able to compute the route results with
	// all of the input preferences, it may fallback to using a different way of
	// computation. When fallback mode is used, this field contains detailed info
	// about the fallback response. Otherwise this field is unset.
	FallbackInfo *FallbackInfo `protobuf:"bytes,2,opt,name=fallback_info,json=fallbackInfo,proto3" json:"fallback_info,omitempty"`
	// contains filtered or unexported fields
}

ComputeRoutes the response message.

func (*ComputeRoutesResponse) Descriptor deprecated

func (*ComputeRoutesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ComputeRoutesResponse.ProtoReflect.Descriptor instead.

func (*ComputeRoutesResponse) GetFallbackInfo

func (x *ComputeRoutesResponse) GetFallbackInfo() *FallbackInfo

func (*ComputeRoutesResponse) GetRoutes

func (x *ComputeRoutesResponse) GetRoutes() []*Route

func (*ComputeRoutesResponse) ProtoMessage

func (*ComputeRoutesResponse) ProtoMessage()

func (*ComputeRoutesResponse) ProtoReflect

func (x *ComputeRoutesResponse) ProtoReflect() protoreflect.Message

func (*ComputeRoutesResponse) Reset

func (x *ComputeRoutesResponse) Reset()

func (*ComputeRoutesResponse) String

func (x *ComputeRoutesResponse) String() string

type CustomLayerInfo

type CustomLayerInfo struct {

	// Encapsulates information about areas in the custom layer on the Route.
	// This field is only populated if a route travels through areas in the
	// custom layer.
	AreaInfo []*CustomLayerInfo_AreaInfo `protobuf:"bytes,1,rep,name=area_info,json=areaInfo,proto3" json:"area_info,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates statistics about the time spent and distance travelled in a custom area.

func (*CustomLayerInfo) Descriptor deprecated

func (*CustomLayerInfo) Descriptor() ([]byte, []int)

Deprecated: Use CustomLayerInfo.ProtoReflect.Descriptor instead.

func (*CustomLayerInfo) GetAreaInfo

func (x *CustomLayerInfo) GetAreaInfo() []*CustomLayerInfo_AreaInfo

func (*CustomLayerInfo) ProtoMessage

func (*CustomLayerInfo) ProtoMessage()

func (*CustomLayerInfo) ProtoReflect

func (x *CustomLayerInfo) ProtoReflect() protoreflect.Message

func (*CustomLayerInfo) Reset

func (x *CustomLayerInfo) Reset()

func (*CustomLayerInfo) String

func (x *CustomLayerInfo) String() string

type CustomLayerInfo_AreaInfo

type CustomLayerInfo_AreaInfo struct {

	// ID of an area inside a customer provided dataset. An area represents a
	// collection of polygons on the map that are of concern to the customer.
	// For example, the customer may be interested in knowing whether a
	// returned route is traveling through multiple busy city blocks during
	// a predefined period of time. An area ID is unique within a single
	// dataset uploaded by a customer. That is, a (customer_id, dataset_id,
	// area_id) triplet should uniquely identify a set of polygons on the map
	// that "activates" following a common schedule.
	AreaId string `protobuf:"bytes,1,opt,name=area_id,json=areaId,proto3" json:"area_id,omitempty"`
	// Total distance traveled in the area (in meters).
	DistanceInAreaMeters float32 `` /* 127-byte string literal not displayed */
	// Total time spent in the area.
	DurationInArea *durationpb.Duration `protobuf:"bytes,3,opt,name=duration_in_area,json=durationInArea,proto3" json:"duration_in_area,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates areas related information on a `Route` or on a `RouteLeg`.

func (*CustomLayerInfo_AreaInfo) Descriptor deprecated

func (*CustomLayerInfo_AreaInfo) Descriptor() ([]byte, []int)

Deprecated: Use CustomLayerInfo_AreaInfo.ProtoReflect.Descriptor instead.

func (*CustomLayerInfo_AreaInfo) GetAreaId

func (x *CustomLayerInfo_AreaInfo) GetAreaId() string

func (*CustomLayerInfo_AreaInfo) GetDistanceInAreaMeters

func (x *CustomLayerInfo_AreaInfo) GetDistanceInAreaMeters() float32

func (*CustomLayerInfo_AreaInfo) GetDurationInArea

func (x *CustomLayerInfo_AreaInfo) GetDurationInArea() *durationpb.Duration

func (*CustomLayerInfo_AreaInfo) ProtoMessage

func (*CustomLayerInfo_AreaInfo) ProtoMessage()

func (*CustomLayerInfo_AreaInfo) ProtoReflect

func (x *CustomLayerInfo_AreaInfo) ProtoReflect() protoreflect.Message

func (*CustomLayerInfo_AreaInfo) Reset

func (x *CustomLayerInfo_AreaInfo) Reset()

func (*CustomLayerInfo_AreaInfo) String

func (x *CustomLayerInfo_AreaInfo) String() string

type CustomRoute

type CustomRoute struct {

	// The route considered 'best' for the input route objective.
	Route *Route `protobuf:"bytes,11,opt,name=route,proto3" json:"route,omitempty"`
	// Web-safe base64 encoded route token that can be passed to NavSDK, which
	// allows NavSDK to reconstruct the route during navigation, and in the event
	// of rerouting honor the original intention when RoutesPreferred
	// ComputeCustomRoutes is called. Customers should treat this token as an
	// opaque blob.
	Token string `protobuf:"bytes,12,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates a custom route computed based on the route objective specified by the customer. CustomRoute contains a route and a route token, which can be passed to NavSDK to reconstruct the custom route for turn by turn navigation.

func (*CustomRoute) Descriptor deprecated

func (*CustomRoute) Descriptor() ([]byte, []int)

Deprecated: Use CustomRoute.ProtoReflect.Descriptor instead.

func (*CustomRoute) GetRoute

func (x *CustomRoute) GetRoute() *Route

func (*CustomRoute) GetToken

func (x *CustomRoute) GetToken() string

func (*CustomRoute) ProtoMessage

func (*CustomRoute) ProtoMessage()

func (*CustomRoute) ProtoReflect

func (x *CustomRoute) ProtoReflect() protoreflect.Message

func (*CustomRoute) Reset

func (x *CustomRoute) Reset()

func (*CustomRoute) String

func (x *CustomRoute) String() string

type FallbackInfo

type FallbackInfo struct {

	// Routing mode used for the response. If fallback was triggered, the mode
	// may be different from routing preference set in the original client
	// request.
	RoutingMode FallbackRoutingMode `` /* 142-byte string literal not displayed */
	// The reason why fallback response was used instead of the original response.
	// This field is only populated when the fallback mode is triggered and the
	// fallback response is returned.
	Reason FallbackReason `protobuf:"varint,2,opt,name=reason,proto3,enum=google.maps.routes.v1.FallbackReason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

Information related to how and why a fallback result was used. If this field is set, then it means the server used a different routing mode from your preferred mode as fallback.

func (*FallbackInfo) Descriptor deprecated

func (*FallbackInfo) Descriptor() ([]byte, []int)

Deprecated: Use FallbackInfo.ProtoReflect.Descriptor instead.

func (*FallbackInfo) GetReason

func (x *FallbackInfo) GetReason() FallbackReason

func (*FallbackInfo) GetRoutingMode

func (x *FallbackInfo) GetRoutingMode() FallbackRoutingMode

func (*FallbackInfo) ProtoMessage

func (*FallbackInfo) ProtoMessage()

func (*FallbackInfo) ProtoReflect

func (x *FallbackInfo) ProtoReflect() protoreflect.Message

func (*FallbackInfo) Reset

func (x *FallbackInfo) Reset()

func (*FallbackInfo) String

func (x *FallbackInfo) String() string

type FallbackReason

type FallbackReason int32

Reasons for using fallback response.

const (
	// No fallback reason specified.
	FallbackReason_FALLBACK_REASON_UNSPECIFIED FallbackReason = 0
	// A server error happened while calculating routes with your preferred
	// routing mode, but we were able to return a result calculated by an
	// alternative mode.
	FallbackReason_SERVER_ERROR FallbackReason = 1
	// We were not able to finish the calculation with your preferred routing mode
	// on time, but we were able to return a result calculated by an alternative
	// mode.
	FallbackReason_LATENCY_EXCEEDED FallbackReason = 2
)

func (FallbackReason) Descriptor

func (FallbackReason) Enum

func (x FallbackReason) Enum() *FallbackReason

func (FallbackReason) EnumDescriptor deprecated

func (FallbackReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use FallbackReason.Descriptor instead.

func (FallbackReason) Number

func (FallbackReason) String

func (x FallbackReason) String() string

func (FallbackReason) Type

type FallbackRoutingMode

type FallbackRoutingMode int32

Actual routing mode used for returned fallback response.

const (
	// Not used.
	FallbackRoutingMode_FALLBACK_ROUTING_MODE_UNSPECIFIED FallbackRoutingMode = 0
	// Indicates the "TRAFFIC_UNAWARE" routing mode was used to compute the
	// response.
	FallbackRoutingMode_FALLBACK_TRAFFIC_UNAWARE FallbackRoutingMode = 1
	// Indicates the "TRAFFIC_AWARE" routing mode was used to compute the
	// response.
	FallbackRoutingMode_FALLBACK_TRAFFIC_AWARE FallbackRoutingMode = 2
)

func (FallbackRoutingMode) Descriptor

func (FallbackRoutingMode) Enum

func (FallbackRoutingMode) EnumDescriptor deprecated

func (FallbackRoutingMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use FallbackRoutingMode.Descriptor instead.

func (FallbackRoutingMode) Number

func (FallbackRoutingMode) String

func (x FallbackRoutingMode) String() string

func (FallbackRoutingMode) Type

type LicensePlateLastCharacterRestriction

type LicensePlateLastCharacterRestriction struct {

	// The allowed last character of a license plate of a vehicle. Only vehicles
	// whose license plate's last characters match these are allowed to travel on
	// the route. If empty, no vehicle is allowed.
	AllowedLastCharacters []string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates the license plate last character restriction.

func (*LicensePlateLastCharacterRestriction) Descriptor deprecated

func (*LicensePlateLastCharacterRestriction) Descriptor() ([]byte, []int)

Deprecated: Use LicensePlateLastCharacterRestriction.ProtoReflect.Descriptor instead.

func (*LicensePlateLastCharacterRestriction) GetAllowedLastCharacters

func (x *LicensePlateLastCharacterRestriction) GetAllowedLastCharacters() []string

func (*LicensePlateLastCharacterRestriction) ProtoMessage

func (*LicensePlateLastCharacterRestriction) ProtoMessage()

func (*LicensePlateLastCharacterRestriction) ProtoReflect

func (*LicensePlateLastCharacterRestriction) Reset

func (*LicensePlateLastCharacterRestriction) String

type Location

type Location struct {

	// The waypoint's geographic coordinates.
	LatLng *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"`
	// 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` travel modes.
	Heading *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=heading,proto3" json:"heading,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates a location (a geographic point, and an optional heading).

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetHeading

func (x *Location) GetHeading() *wrapperspb.Int32Value

func (*Location) GetLatLng

func (x *Location) GetLatLng() *latlng.LatLng

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Maneuver

type Maneuver int32

A set of values that specify the navigation action to take for the current step (e.g., turn left, merge, straight, etc.).

const (
	// Not used.
	Maneuver_MANEUVER_UNSPECIFIED Maneuver = 0
	// Turn slightly to the left.
	Maneuver_TURN_SLIGHT_LEFT Maneuver = 1
	// Turn sharply to the left.
	Maneuver_TURN_SHARP_LEFT Maneuver = 2
	// Make a left u-turn.
	Maneuver_UTURN_LEFT Maneuver = 3
	// Turn left.
	Maneuver_TURN_LEFT Maneuver = 4
	// Turn slightly to the right.
	Maneuver_TURN_SLIGHT_RIGHT Maneuver = 5
	// Turn sharply to the right.
	Maneuver_TURN_SHARP_RIGHT Maneuver = 6
	// Make a right u-turn.
	Maneuver_UTURN_RIGHT Maneuver = 7
	// Turn right.
	Maneuver_TURN_RIGHT Maneuver = 8
	// Go straight.
	Maneuver_STRAIGHT Maneuver = 9
	// Take the left ramp.
	Maneuver_RAMP_LEFT Maneuver = 10
	// Take the right ramp.
	Maneuver_RAMP_RIGHT Maneuver = 11
	// Merge into traffic.
	Maneuver_MERGE Maneuver = 12
	// Take the left fork.
	Maneuver_FORK_LEFT Maneuver = 13
	// Take the right fork.
	Maneuver_FORK_RIGHT Maneuver = 14
	// Take the ferry.
	Maneuver_FERRY Maneuver = 15
	// Take the train leading onto the ferry.
	Maneuver_FERRY_TRAIN Maneuver = 16
	// Turn left at the roundabout.
	Maneuver_ROUNDABOUT_LEFT Maneuver = 17
	// Turn right at the roundabout.
	Maneuver_ROUNDABOUT_RIGHT Maneuver = 18
)

func (Maneuver) Descriptor

func (Maneuver) Descriptor() protoreflect.EnumDescriptor

func (Maneuver) Enum

func (x Maneuver) Enum() *Maneuver

func (Maneuver) EnumDescriptor deprecated

func (Maneuver) EnumDescriptor() ([]byte, []int)

Deprecated: Use Maneuver.Descriptor instead.

func (Maneuver) Number

func (x Maneuver) Number() protoreflect.EnumNumber

func (Maneuver) String

func (x Maneuver) String() string

func (Maneuver) Type

type NavigationInstruction struct {

	// Encapsulates the navigation instructions for the current step (e.g., turn
	// left, merge, straight, etc.). This field determines which icon to display.
	Maneuver Maneuver `protobuf:"varint,1,opt,name=maneuver,proto3,enum=google.maps.routes.v1.Maneuver" json:"maneuver,omitempty"`
	// Instructions for navigating this step.
	Instructions string `protobuf:"bytes,2,opt,name=instructions,proto3" json:"instructions,omitempty"`
	// contains filtered or unexported fields
}
func (*NavigationInstruction) Descriptor() ([]byte, []int)

Deprecated: Use NavigationInstruction.ProtoReflect.Descriptor instead.

func (x *NavigationInstruction) GetInstructions() string
func (x *NavigationInstruction) GetManeuver() Maneuver
func (*NavigationInstruction) ProtoMessage()
func (x *NavigationInstruction) ProtoReflect() protoreflect.Message
func (x *NavigationInstruction) Reset()
func (x *NavigationInstruction) String() string

type Polyline

type Polyline struct {

	// Encapsulates the type of polyline. Defaults to encoded_polyline.
	//
	// Types that are assignable to PolylineType:
	//	*Polyline_EncodedPolyline
	//	*Polyline_GeoJsonLinestring
	PolylineType isPolyline_PolylineType `protobuf_oneof:"polyline_type"`
	// contains filtered or unexported fields
}

Encapsulates an encoded polyline.

func (*Polyline) Descriptor deprecated

func (*Polyline) Descriptor() ([]byte, []int)

Deprecated: Use Polyline.ProtoReflect.Descriptor instead.

func (*Polyline) GetEncodedPolyline

func (x *Polyline) GetEncodedPolyline() string

func (*Polyline) GetGeoJsonLinestring

func (x *Polyline) GetGeoJsonLinestring() *structpb.Struct

func (*Polyline) GetPolylineType

func (m *Polyline) GetPolylineType() isPolyline_PolylineType

func (*Polyline) ProtoMessage

func (*Polyline) ProtoMessage()

func (*Polyline) ProtoReflect

func (x *Polyline) ProtoReflect() protoreflect.Message

func (*Polyline) Reset

func (x *Polyline) Reset()

func (*Polyline) String

func (x *Polyline) String() string

type PolylineEncoding

type PolylineEncoding int32

Specifies the preferred type of polyline to be returned.

const (
	// No polyline type preference specified. Defaults to `ENCODED_POLYLINE`.
	PolylineEncoding_POLYLINE_ENCODING_UNSPECIFIED PolylineEncoding = 0
	// Specifies a polyline encoded using the [polyline encoding
	// algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
	PolylineEncoding_ENCODED_POLYLINE PolylineEncoding = 1
	// Specifies a polyline using the [GeoJSON LineString
	// format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
	PolylineEncoding_GEO_JSON_LINESTRING PolylineEncoding = 2
)

func (PolylineEncoding) Descriptor

func (PolylineEncoding) Enum

func (PolylineEncoding) EnumDescriptor deprecated

func (PolylineEncoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use PolylineEncoding.Descriptor instead.

func (PolylineEncoding) Number

func (PolylineEncoding) String

func (x PolylineEncoding) String() string

func (PolylineEncoding) Type

type PolylineQuality

type PolylineQuality int32

A set of values that specify the quality of the polyline.

const (
	// No polyline quality preference specified. Defaults to `OVERVIEW`.
	PolylineQuality_POLYLINE_QUALITY_UNSPECIFIED PolylineQuality = 0
	// Specifies a high-quality polyline - which is composed using more points
	// than `OVERVIEW`, at the cost of increased response size. Use this value
	// when you need more precision.
	PolylineQuality_HIGH_QUALITY PolylineQuality = 1
	// Specifies an overview polyline - which is composed using a small number of
	// points. Use this value when displaying an overview of the route. Using this
	// option has a lower request latency compared to using the
	// `HIGH_QUALITY` option.
	PolylineQuality_OVERVIEW PolylineQuality = 2
)

func (PolylineQuality) Descriptor

func (PolylineQuality) Enum

func (x PolylineQuality) Enum() *PolylineQuality

func (PolylineQuality) EnumDescriptor deprecated

func (PolylineQuality) EnumDescriptor() ([]byte, []int)

Deprecated: Use PolylineQuality.Descriptor instead.

func (PolylineQuality) Number

func (PolylineQuality) String

func (x PolylineQuality) String() string

func (PolylineQuality) Type

type Polyline_EncodedPolyline

type Polyline_EncodedPolyline struct {
	// The string encoding of the polyline using the [polyline encoding
	// algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
	EncodedPolyline string `protobuf:"bytes,1,opt,name=encoded_polyline,json=encodedPolyline,proto3,oneof"`
}

type Polyline_GeoJsonLinestring

type Polyline_GeoJsonLinestring struct {
	// Specifies a polyline using the [GeoJSON LineString
	// format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
	GeoJsonLinestring *structpb.Struct `protobuf:"bytes,2,opt,name=geo_json_linestring,json=geoJsonLinestring,proto3,oneof"`
}

type Route

type Route struct {

	// A collection of legs (path segments between waypoints) that make-up the
	// route. Each leg corresponds to the trip between two non-`via` Waypoints.
	// For example, a route with no intermediate waypoints has only one leg. A
	// route that includes one non-`via` intermediate waypoint has two legs. A
	// route that includes one `via` intermediate waypoint has one leg. The order
	// of the legs matches the order of Waypoints from `origin` to `intermediates`
	// to `destination`.
	Legs []*RouteLeg `protobuf:"bytes,1,rep,name=legs,proto3" json:"legs,omitempty"`
	// The travel distance of the route, in meters.
	DistanceMeters int32 `protobuf:"varint,2,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"`
	// The length of time needed to navigate the route. If you set the
	// `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
	// `static_duration`. If you set the `routing_preference` to either
	// `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
	// taking traffic conditions into account.
	Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
	// The duration of traveling through the route without taking traffic
	// conditions into consideration.
	StaticDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"`
	// The overall route polyline. This polyline will be the combined polyline of
	// all `legs`.
	Polyline *Polyline `protobuf:"bytes,5,opt,name=polyline,proto3" json:"polyline,omitempty"`
	// A description of the route.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// An array of warnings to show when displaying the route.
	Warnings []string `protobuf:"bytes,7,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// The viewport bounding box of the polyline.
	Viewport *viewport.Viewport `protobuf:"bytes,8,opt,name=viewport,proto3" json:"viewport,omitempty"`
	// Additional information about the route.
	TravelAdvisory *RouteTravelAdvisory `protobuf:"bytes,9,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"`
	// If ComputeRoutesRequest.optimize_waypoint_order is set to true, this field
	// contains the optimized ordering of intermediates waypoints.
	// otherwise, this field is empty.
	// For example, suppose the input is Origin: LA; Intermediates: Dallas,
	// Bangor, Phoenix;  Destination: New York; and the optimized intermediate
	// waypoint order is:  Phoenix, Dallas, Bangor. Then this field contains the
	// values [2, 0, 1]. The index starts with 0 for the first intermediate
	// waypoint.
	OptimizedIntermediateWaypointIndex []int32 `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.

func (*Route) Descriptor deprecated

func (*Route) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetDescription

func (x *Route) GetDescription() string

func (*Route) GetDistanceMeters

func (x *Route) GetDistanceMeters() int32

func (*Route) GetDuration

func (x *Route) GetDuration() *durationpb.Duration

func (*Route) GetLegs

func (x *Route) GetLegs() []*RouteLeg

func (*Route) GetOptimizedIntermediateWaypointIndex

func (x *Route) GetOptimizedIntermediateWaypointIndex() []int32

func (*Route) GetPolyline

func (x *Route) GetPolyline() *Polyline

func (*Route) GetStaticDuration

func (x *Route) GetStaticDuration() *durationpb.Duration

func (*Route) GetTravelAdvisory

func (x *Route) GetTravelAdvisory() *RouteTravelAdvisory

func (*Route) GetViewport

func (x *Route) GetViewport() *viewport.Viewport

func (*Route) GetWarnings

func (x *Route) GetWarnings() []string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type RouteLeg

type RouteLeg struct {

	// The travel distance of the route leg, in meters.
	DistanceMeters int32 `protobuf:"varint,1,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"`
	// The length of time needed to navigate the leg. If the `route_preference`
	// is set to `TRAFFIC_UNAWARE`, then this value is the same as
	// `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
	// `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
	// conditions into account.
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// The duration of traveling through the leg, calculated without taking
	// traffic conditions into consideration.
	StaticDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"`
	// The overall polyline for this leg. This includes that each `step`'s
	// polyline.
	Polyline *Polyline `protobuf:"bytes,4,opt,name=polyline,proto3" json:"polyline,omitempty"`
	// The start location of this leg. This might be different from the provided
	// `origin`. For example, when the provided `origin` is not near a road, this
	// is a point on the road.
	StartLocation *Location `protobuf:"bytes,5,opt,name=start_location,json=startLocation,proto3" json:"start_location,omitempty"`
	// The end location of this leg. This might be different from the provided
	// `destination`. For example, when the provided `destination` is not near a
	// road, this is a point on the road.
	EndLocation *Location `protobuf:"bytes,6,opt,name=end_location,json=endLocation,proto3" json:"end_location,omitempty"`
	// An array of steps denoting segments within this leg. Each step represents
	// one navigation instruction.
	Steps []*RouteLegStep `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"`
	// Encapsulates the additional information that the user should be informed
	// about, such as possible traffic zone restriction etc. on a route leg.
	TravelAdvisory *RouteLegTravelAdvisory `protobuf:"bytes,8,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates a segment between non-`via` waypoints.

func (*RouteLeg) Descriptor deprecated

func (*RouteLeg) Descriptor() ([]byte, []int)

Deprecated: Use RouteLeg.ProtoReflect.Descriptor instead.

func (*RouteLeg) GetDistanceMeters

func (x *RouteLeg) GetDistanceMeters() int32

func (*RouteLeg) GetDuration

func (x *RouteLeg) GetDuration() *durationpb.Duration

func (*RouteLeg) GetEndLocation

func (x *RouteLeg) GetEndLocation() *Location

func (*RouteLeg) GetPolyline

func (x *RouteLeg) GetPolyline() *Polyline

func (*RouteLeg) GetStartLocation

func (x *RouteLeg) GetStartLocation() *Location

func (*RouteLeg) GetStaticDuration

func (x *RouteLeg) GetStaticDuration() *durationpb.Duration

func (*RouteLeg) GetSteps

func (x *RouteLeg) GetSteps() []*RouteLegStep

func (*RouteLeg) GetTravelAdvisory

func (x *RouteLeg) GetTravelAdvisory() *RouteLegTravelAdvisory

func (*RouteLeg) ProtoMessage

func (*RouteLeg) ProtoMessage()

func (*RouteLeg) ProtoReflect

func (x *RouteLeg) ProtoReflect() protoreflect.Message

func (*RouteLeg) Reset

func (x *RouteLeg) Reset()

func (*RouteLeg) String

func (x *RouteLeg) String() string

type RouteLegStep

type RouteLegStep struct {

	// The travel distance of this step, in meters. In some circumstances, this
	// field might not have a value.
	DistanceMeters int32 `protobuf:"varint,1,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"`
	// The duration of travel through this step without taking traffic conditions
	// into consideration. In some circumstances, this field might not have a
	// value.
	StaticDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"`
	// The polyline associated with this step.
	Polyline *Polyline `protobuf:"bytes,3,opt,name=polyline,proto3" json:"polyline,omitempty"`
	// The start location of this step.
	StartLocation *Location `protobuf:"bytes,4,opt,name=start_location,json=startLocation,proto3" json:"start_location,omitempty"`
	// The end location of this step.
	EndLocation *Location `protobuf:"bytes,5,opt,name=end_location,json=endLocation,proto3" json:"end_location,omitempty"`
	// Navigation instructions.
	NavigationInstruction *NavigationInstruction `protobuf:"bytes,6,opt,name=navigation_instruction,json=navigationInstruction,proto3" json:"navigation_instruction,omitempty"`
	// Encapsulates the additional information that the user should be informed
	// about, such as possible traffic zone restriction on a leg step.
	TravelAdvisory *RouteLegStepTravelAdvisory `protobuf:"bytes,7,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates a segment of a `RouteLeg`. A step corresponds to a single navigation instruction. Route legs are made up of steps.

func (*RouteLegStep) Descriptor deprecated

func (*RouteLegStep) Descriptor() ([]byte, []int)

Deprecated: Use RouteLegStep.ProtoReflect.Descriptor instead.

func (*RouteLegStep) GetDistanceMeters

func (x *RouteLegStep) GetDistanceMeters() int32

func (*RouteLegStep) GetEndLocation

func (x *RouteLegStep) GetEndLocation() *Location

func (*RouteLegStep) GetNavigationInstruction

func (x *RouteLegStep) GetNavigationInstruction() *NavigationInstruction

func (*RouteLegStep) GetPolyline

func (x *RouteLegStep) GetPolyline() *Polyline

func (*RouteLegStep) GetStartLocation

func (x *RouteLegStep) GetStartLocation() *Location

func (*RouteLegStep) GetStaticDuration

func (x *RouteLegStep) GetStaticDuration() *durationpb.Duration

func (*RouteLegStep) GetTravelAdvisory

func (x *RouteLegStep) GetTravelAdvisory() *RouteLegStepTravelAdvisory

func (*RouteLegStep) ProtoMessage

func (*RouteLegStep) ProtoMessage()

func (*RouteLegStep) ProtoReflect

func (x *RouteLegStep) ProtoReflect() protoreflect.Message

func (*RouteLegStep) Reset

func (x *RouteLegStep) Reset()

func (*RouteLegStep) String

func (x *RouteLegStep) String() string

type RouteLegStepTravelAdvisory

type RouteLegStepTravelAdvisory struct {

	// Speed reading intervals detailing traffic density. Applicable in case of
	// `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
	// The intervals cover the entire polyline of the RouteLegStep without
	// overlap. The start point of a specified interval is the same as the end
	// point of the preceding interval.
	//
	// Example:
	//
	//	polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
	//	speed_reading_intervals: [A,C), [C,D), [D,G).
	SpeedReadingIntervals []*SpeedReadingInterval `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction on a leg step.

func (*RouteLegStepTravelAdvisory) Descriptor deprecated

func (*RouteLegStepTravelAdvisory) Descriptor() ([]byte, []int)

Deprecated: Use RouteLegStepTravelAdvisory.ProtoReflect.Descriptor instead.

func (*RouteLegStepTravelAdvisory) GetSpeedReadingIntervals

func (x *RouteLegStepTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval

func (*RouteLegStepTravelAdvisory) ProtoMessage

func (*RouteLegStepTravelAdvisory) ProtoMessage()

func (*RouteLegStepTravelAdvisory) ProtoReflect

func (*RouteLegStepTravelAdvisory) Reset

func (x *RouteLegStepTravelAdvisory) Reset()

func (*RouteLegStepTravelAdvisory) String

func (x *RouteLegStepTravelAdvisory) String() string

type RouteLegTravelAdvisory

type RouteLegTravelAdvisory struct {

	// Encapsulates information about tolls on the specific RouteLeg.
	// This field is only populated if we expect there are tolls on the RouteLeg.
	// If this field is set but the estimated_price subfield is not populated,
	// we expect that road contains tolls but we do not know an estimated price.
	// If this field does not exist, then there is no toll on the RouteLeg.
	TollInfo *TollInfo `protobuf:"bytes,1,opt,name=toll_info,json=tollInfo,proto3" json:"toll_info,omitempty"`
	// Speed reading intervals detailing traffic density. Applicable in case of
	// `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
	// The intervals cover the entire polyline of the RouteLg without overlap.
	// The start point of a specified interval is the same as the end point of the
	// preceding interval.
	//
	// Example:
	//
	//	polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
	//	speed_reading_intervals: [A,C), [C,D), [D,G).
	SpeedReadingIntervals []*SpeedReadingInterval `` /* 126-byte string literal not displayed */
	// Information related to the custom layer data that the customer specified
	// (e.g. time spent in a customer specified area).
	CustomLayerInfo *CustomLayerInfo `protobuf:"bytes,3,opt,name=custom_layer_info,json=customLayerInfo,proto3" json:"custom_layer_info,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc. on a route leg.

func (*RouteLegTravelAdvisory) Descriptor deprecated

func (*RouteLegTravelAdvisory) Descriptor() ([]byte, []int)

Deprecated: Use RouteLegTravelAdvisory.ProtoReflect.Descriptor instead.

func (*RouteLegTravelAdvisory) GetCustomLayerInfo

func (x *RouteLegTravelAdvisory) GetCustomLayerInfo() *CustomLayerInfo

func (*RouteLegTravelAdvisory) GetSpeedReadingIntervals

func (x *RouteLegTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval

func (*RouteLegTravelAdvisory) GetTollInfo

func (x *RouteLegTravelAdvisory) GetTollInfo() *TollInfo

func (*RouteLegTravelAdvisory) ProtoMessage

func (*RouteLegTravelAdvisory) ProtoMessage()

func (*RouteLegTravelAdvisory) ProtoReflect

func (x *RouteLegTravelAdvisory) ProtoReflect() protoreflect.Message

func (*RouteLegTravelAdvisory) Reset

func (x *RouteLegTravelAdvisory) Reset()

func (*RouteLegTravelAdvisory) String

func (x *RouteLegTravelAdvisory) String() string

type RouteMatrixDestination

type RouteMatrixDestination struct {

	// Required. Destination waypoint
	Waypoint *Waypoint `protobuf:"bytes,1,opt,name=waypoint,proto3" json:"waypoint,omitempty"`
	// contains filtered or unexported fields
}

A single destination for ComputeRouteMatrixRequest

func (*RouteMatrixDestination) Descriptor deprecated

func (*RouteMatrixDestination) Descriptor() ([]byte, []int)

Deprecated: Use RouteMatrixDestination.ProtoReflect.Descriptor instead.

func (*RouteMatrixDestination) GetWaypoint

func (x *RouteMatrixDestination) GetWaypoint() *Waypoint

func (*RouteMatrixDestination) ProtoMessage

func (*RouteMatrixDestination) ProtoMessage()

func (*RouteMatrixDestination) ProtoReflect

func (x *RouteMatrixDestination) ProtoReflect() protoreflect.Message

func (*RouteMatrixDestination) Reset

func (x *RouteMatrixDestination) Reset()

func (*RouteMatrixDestination) String

func (x *RouteMatrixDestination) String() string

type RouteMatrixElement

type RouteMatrixElement struct {

	// Zero-based index of the origin in the request.
	OriginIndex int32 `protobuf:"varint,1,opt,name=origin_index,json=originIndex,proto3" json:"origin_index,omitempty"`
	// Zero-based index of the destination in the request.
	DestinationIndex int32 `protobuf:"varint,2,opt,name=destination_index,json=destinationIndex,proto3" json:"destination_index,omitempty"`
	// Error status code for this element.
	Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// Indicates whether the route was found or not. Independent of status.
	Condition RouteMatrixElementCondition `` /* 127-byte string literal not displayed */
	// The travel distance of the route, in meters.
	DistanceMeters int32 `protobuf:"varint,4,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"`
	// The length of time needed to navigate the route. If you set the
	// `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
	// `static_duration`. If you set the `routing_preference` to either
	// `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
	// taking traffic conditions into account.
	Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"`
	// The duration of traveling through the route without taking traffic
	// conditions into consideration.
	StaticDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"`
	// Additional information about the route. For example: restriction
	// information and toll information
	TravelAdvisory *RouteTravelAdvisory `protobuf:"bytes,7,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"`
	// In some cases when the server is not able to compute the route with the
	// given preferences for this particular origin/destination pair, it may
	// fall back to using a different mode of computation. When fallback mode is
	// used, this field contains detailed information about the fallback response.
	// Otherwise this field is unset.
	FallbackInfo *FallbackInfo `protobuf:"bytes,8,opt,name=fallback_info,json=fallbackInfo,proto3" json:"fallback_info,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.

func (*RouteMatrixElement) Descriptor deprecated

func (*RouteMatrixElement) Descriptor() ([]byte, []int)

Deprecated: Use RouteMatrixElement.ProtoReflect.Descriptor instead.

func (*RouteMatrixElement) GetCondition

func (*RouteMatrixElement) GetDestinationIndex

func (x *RouteMatrixElement) GetDestinationIndex() int32

func (*RouteMatrixElement) GetDistanceMeters

func (x *RouteMatrixElement) GetDistanceMeters() int32

func (*RouteMatrixElement) GetDuration

func (x *RouteMatrixElement) GetDuration() *durationpb.Duration

func (*RouteMatrixElement) GetFallbackInfo

func (x *RouteMatrixElement) GetFallbackInfo() *FallbackInfo

func (*RouteMatrixElement) GetOriginIndex

func (x *RouteMatrixElement) GetOriginIndex() int32

func (*RouteMatrixElement) GetStaticDuration

func (x *RouteMatrixElement) GetStaticDuration() *durationpb.Duration

func (*RouteMatrixElement) GetStatus

func (x *RouteMatrixElement) GetStatus() *status.Status

func (*RouteMatrixElement) GetTravelAdvisory

func (x *RouteMatrixElement) GetTravelAdvisory() *RouteTravelAdvisory

func (*RouteMatrixElement) ProtoMessage

func (*RouteMatrixElement) ProtoMessage()

func (*RouteMatrixElement) ProtoReflect

func (x *RouteMatrixElement) ProtoReflect() protoreflect.Message

func (*RouteMatrixElement) Reset

func (x *RouteMatrixElement) Reset()

func (*RouteMatrixElement) String

func (x *RouteMatrixElement) String() string

type RouteMatrixElementCondition

type RouteMatrixElementCondition int32

The condition of the route being returned.

const (
	// Only used when the `status` of the element is not OK.
	RouteMatrixElementCondition_ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED RouteMatrixElementCondition = 0
	// A route was found, and the corresponding information was filled out for the
	// element.
	RouteMatrixElementCondition_ROUTE_EXISTS RouteMatrixElementCondition = 1
	// No route could be found. Fields containing route information, such as
	// `distance_meters` or `duration`, will not be filled out in the element.
	RouteMatrixElementCondition_ROUTE_NOT_FOUND RouteMatrixElementCondition = 2
)

func (RouteMatrixElementCondition) Descriptor

func (RouteMatrixElementCondition) Enum

func (RouteMatrixElementCondition) EnumDescriptor deprecated

func (RouteMatrixElementCondition) EnumDescriptor() ([]byte, []int)

Deprecated: Use RouteMatrixElementCondition.Descriptor instead.

func (RouteMatrixElementCondition) Number

func (RouteMatrixElementCondition) String

func (RouteMatrixElementCondition) Type

type RouteMatrixOrigin

type RouteMatrixOrigin struct {

	// Required. Origin waypoint
	Waypoint *Waypoint `protobuf:"bytes,1,opt,name=waypoint,proto3" json:"waypoint,omitempty"`
	// Optional. Modifiers for every route that takes this as the origin
	RouteModifiers *RouteModifiers `protobuf:"bytes,2,opt,name=route_modifiers,json=routeModifiers,proto3" json:"route_modifiers,omitempty"`
	// contains filtered or unexported fields
}

A single origin for ComputeRouteMatrixRequest

func (*RouteMatrixOrigin) Descriptor deprecated

func (*RouteMatrixOrigin) Descriptor() ([]byte, []int)

Deprecated: Use RouteMatrixOrigin.ProtoReflect.Descriptor instead.

func (*RouteMatrixOrigin) GetRouteModifiers

func (x *RouteMatrixOrigin) GetRouteModifiers() *RouteModifiers

func (*RouteMatrixOrigin) GetWaypoint

func (x *RouteMatrixOrigin) GetWaypoint() *Waypoint

func (*RouteMatrixOrigin) ProtoMessage

func (*RouteMatrixOrigin) ProtoMessage()

func (*RouteMatrixOrigin) ProtoReflect

func (x *RouteMatrixOrigin) ProtoReflect() protoreflect.Message

func (*RouteMatrixOrigin) Reset

func (x *RouteMatrixOrigin) Reset()

func (*RouteMatrixOrigin) String

func (x *RouteMatrixOrigin) String() string

type RouteModifiers

type RouteModifiers struct {

	// Specifies whether to avoid toll roads where reasonable. Preference will be
	// given to routes not containing toll roads. Applies only to the `DRIVE` and
	// `TWO_WHEELER` travel modes.
	AvoidTolls bool `protobuf:"varint,1,opt,name=avoid_tolls,json=avoidTolls,proto3" json:"avoid_tolls,omitempty"`
	// Specifies whether to avoid highways where reasonable. Preference will be
	// given to routes not containing highways. Applies only to the `DRIVE` and
	// `TWO_WHEELER` travel modes.
	AvoidHighways bool `protobuf:"varint,2,opt,name=avoid_highways,json=avoidHighways,proto3" json:"avoid_highways,omitempty"`
	// Specifies whether to avoid ferries where reasonable. Preference will be
	// given to routes not containing travel by ferries.
	// Applies only to the `DRIVE` and`TWO_WHEELER` travel modes.
	AvoidFerries bool `protobuf:"varint,3,opt,name=avoid_ferries,json=avoidFerries,proto3" json:"avoid_ferries,omitempty"`
	// Specifies whether to avoid navigating indoors where reasonable. Preference
	// will be given to routes not containing indoor navigation.
	// Applies only to the `WALK` travel mode.
	AvoidIndoor bool `protobuf:"varint,4,opt,name=avoid_indoor,json=avoidIndoor,proto3" json:"avoid_indoor,omitempty"`
	// Specifies the vehicle information.
	VehicleInfo *VehicleInfo `protobuf:"bytes,5,opt,name=vehicle_info,json=vehicleInfo,proto3" json:"vehicle_info,omitempty"`
	// Encapsulates information about toll passes.
	// If toll passes are provided, the API tries to return the pass price. If
	// toll passes are not provided, the API treats the toll pass as unknown and
	// tries to return the cash price.
	// Applies only to the DRIVE and TWO_WHEELER travel modes.
	TollPasses []TollPass `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates a set of optional conditions to satisfy when calculating the routes.

func (*RouteModifiers) Descriptor deprecated

func (*RouteModifiers) Descriptor() ([]byte, []int)

Deprecated: Use RouteModifiers.ProtoReflect.Descriptor instead.

func (*RouteModifiers) GetAvoidFerries

func (x *RouteModifiers) GetAvoidFerries() bool

func (*RouteModifiers) GetAvoidHighways

func (x *RouteModifiers) GetAvoidHighways() bool

func (*RouteModifiers) GetAvoidIndoor

func (x *RouteModifiers) GetAvoidIndoor() bool

func (*RouteModifiers) GetAvoidTolls

func (x *RouteModifiers) GetAvoidTolls() bool

func (*RouteModifiers) GetTollPasses

func (x *RouteModifiers) GetTollPasses() []TollPass

func (*RouteModifiers) GetVehicleInfo

func (x *RouteModifiers) GetVehicleInfo() *VehicleInfo

func (*RouteModifiers) ProtoMessage

func (*RouteModifiers) ProtoMessage()

func (*RouteModifiers) ProtoReflect

func (x *RouteModifiers) ProtoReflect() protoreflect.Message

func (*RouteModifiers) Reset

func (x *RouteModifiers) Reset()

func (*RouteModifiers) String

func (x *RouteModifiers) String() string

type RouteObjective

type RouteObjective struct {

	// The route objective.
	//
	// Types that are assignable to Objective:
	//	*RouteObjective_RateCard_
	Objective isRouteObjective_Objective `protobuf_oneof:"objective"`
	// Optional. Specifies the custom data layer being used to affect generated routes.
	// Customers can turn off the custom layer by not setting this field. Once a
	// custom layer is being set, the custom layer will be used to generate route
	// annotations (CustomLayerInfo) in the returned routes, the annotations can
	// be turned off using `X-Goog-FieldMask` header (see
	// https://cloud.google.com/apis/docs/system-parameters).
	CustomLayer *RouteObjective_CustomLayer `protobuf:"bytes,2,opt,name=custom_layer,json=customLayer,proto3" json:"custom_layer,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates an objective to optimize for by ComputeCustomRoutes.

func (*RouteObjective) Descriptor deprecated

func (*RouteObjective) Descriptor() ([]byte, []int)

Deprecated: Use RouteObjective.ProtoReflect.Descriptor instead.

func (*RouteObjective) GetCustomLayer

func (x *RouteObjective) GetCustomLayer() *RouteObjective_CustomLayer

func (*RouteObjective) GetObjective

func (m *RouteObjective) GetObjective() isRouteObjective_Objective

func (*RouteObjective) GetRateCard

func (x *RouteObjective) GetRateCard() *RouteObjective_RateCard

func (*RouteObjective) ProtoMessage

func (*RouteObjective) ProtoMessage()

func (*RouteObjective) ProtoReflect

func (x *RouteObjective) ProtoReflect() protoreflect.Message

func (*RouteObjective) Reset

func (x *RouteObjective) Reset()

func (*RouteObjective) String

func (x *RouteObjective) String() string

type RouteObjective_CustomLayer

type RouteObjective_CustomLayer struct {

	// Required. A dataset that the customer uploaded in advance.
	DatasetInfo *RouteObjective_CustomLayer_DatasetInfo `protobuf:"bytes,1,opt,name=dataset_info,json=datasetInfo,proto3" json:"dataset_info,omitempty"`
	// contains filtered or unexported fields
}

Customized data layer that customers use to generated route annotations or influence the generated route.

func (*RouteObjective_CustomLayer) Descriptor deprecated

func (*RouteObjective_CustomLayer) Descriptor() ([]byte, []int)

Deprecated: Use RouteObjective_CustomLayer.ProtoReflect.Descriptor instead.

func (*RouteObjective_CustomLayer) GetDatasetInfo

func (*RouteObjective_CustomLayer) ProtoMessage

func (*RouteObjective_CustomLayer) ProtoMessage()

func (*RouteObjective_CustomLayer) ProtoReflect

func (*RouteObjective_CustomLayer) Reset

func (x *RouteObjective_CustomLayer) Reset()

func (*RouteObjective_CustomLayer) String

func (x *RouteObjective_CustomLayer) String() string

type RouteObjective_CustomLayer_DatasetInfo

type RouteObjective_CustomLayer_DatasetInfo struct {

	// Required. ID of a customer uploaded dataset for which will be used to annotate or
	// influence the route. If the dataset does not exist or is not yet ready,
	// the request will fail.
	DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
	// contains filtered or unexported fields
}

Information about a dataset that customers uploaded in advance. The dataset information will be used for generating route annotations or to influence routing.

func (*RouteObjective_CustomLayer_DatasetInfo) Descriptor deprecated

func (*RouteObjective_CustomLayer_DatasetInfo) Descriptor() ([]byte, []int)

Deprecated: Use RouteObjective_CustomLayer_DatasetInfo.ProtoReflect.Descriptor instead.

func (*RouteObjective_CustomLayer_DatasetInfo) GetDatasetId

func (*RouteObjective_CustomLayer_DatasetInfo) ProtoMessage

func (*RouteObjective_CustomLayer_DatasetInfo) ProtoReflect

func (*RouteObjective_CustomLayer_DatasetInfo) Reset

func (*RouteObjective_CustomLayer_DatasetInfo) String

type RouteObjective_RateCard

type RouteObjective_RateCard struct {

	// Optional. Cost per minute.
	CostPerMinute *RouteObjective_RateCard_MonetaryCost `protobuf:"bytes,2,opt,name=cost_per_minute,json=costPerMinute,proto3" json:"cost_per_minute,omitempty"`
	// Optional. Cost per kilometer.
	CostPerKm *RouteObjective_RateCard_MonetaryCost `protobuf:"bytes,3,opt,name=cost_per_km,json=costPerKm,proto3" json:"cost_per_km,omitempty"`
	// Optional. Whether to include toll cost in the overall cost.
	IncludeTolls bool `protobuf:"varint,4,opt,name=include_tolls,json=includeTolls,proto3" json:"include_tolls,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates a RateCard route objective.

func (*RouteObjective_RateCard) Descriptor deprecated

func (*RouteObjective_RateCard) Descriptor() ([]byte, []int)

Deprecated: Use RouteObjective_RateCard.ProtoReflect.Descriptor instead.

func (*RouteObjective_RateCard) GetCostPerKm

func (*RouteObjective_RateCard) GetCostPerMinute

func (*RouteObjective_RateCard) GetIncludeTolls

func (x *RouteObjective_RateCard) GetIncludeTolls() bool

func (*RouteObjective_RateCard) ProtoMessage

func (*RouteObjective_RateCard) ProtoMessage()

func (*RouteObjective_RateCard) ProtoReflect

func (x *RouteObjective_RateCard) ProtoReflect() protoreflect.Message

func (*RouteObjective_RateCard) Reset

func (x *RouteObjective_RateCard) Reset()

func (*RouteObjective_RateCard) String

func (x *RouteObjective_RateCard) String() string

type RouteObjective_RateCard_

type RouteObjective_RateCard_ struct {
	// The RateCard objective.
	RateCard *RouteObjective_RateCard `protobuf:"bytes,1,opt,name=rate_card,json=rateCard,proto3,oneof"`
}

type RouteObjective_RateCard_MonetaryCost

type RouteObjective_RateCard_MonetaryCost struct {

	// Required. The cost value in local currency inferred from the request.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates the cost used in the rate card.

func (*RouteObjective_RateCard_MonetaryCost) Descriptor deprecated

func (*RouteObjective_RateCard_MonetaryCost) Descriptor() ([]byte, []int)

Deprecated: Use RouteObjective_RateCard_MonetaryCost.ProtoReflect.Descriptor instead.

func (*RouteObjective_RateCard_MonetaryCost) GetValue

func (*RouteObjective_RateCard_MonetaryCost) ProtoMessage

func (*RouteObjective_RateCard_MonetaryCost) ProtoMessage()

func (*RouteObjective_RateCard_MonetaryCost) ProtoReflect

func (*RouteObjective_RateCard_MonetaryCost) Reset

func (*RouteObjective_RateCard_MonetaryCost) String

type RouteTravelAdvisory

type RouteTravelAdvisory struct {

	// The traffic restriction that applies to the route. A vehicle that is
	// subject to the restriction is not allowed to travel on the route. As of
	// October 2019, only Jakarta, Indonesia takes into consideration.
	TrafficRestriction *TrafficRestriction `protobuf:"bytes,1,opt,name=traffic_restriction,json=trafficRestriction,proto3" json:"traffic_restriction,omitempty"`
	// Encapsulates information about tolls on the Route.
	// This field is only populated if we expect there are tolls on the Route.
	// If this field is set but the estimated_price subfield is not populated,
	// we expect that road contains tolls but we do not know an estimated price.
	// If this field is not set, then we expect there is no toll on the Route.
	TollInfo *TollInfo `protobuf:"bytes,2,opt,name=toll_info,json=tollInfo,proto3" json:"toll_info,omitempty"`
	// Speed reading intervals detailing traffic density. Applicable in case of
	// `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
	// The intervals cover the entire polyline of the route without overlap.
	// The start point of a specified interval is the same as the end point of the
	// preceding interval.
	//
	// Example:
	//
	//	polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
	//	speed_reading_intervals: [A,C), [C,D), [D,G).
	SpeedReadingIntervals []*SpeedReadingInterval `` /* 126-byte string literal not displayed */
	// Information related to the custom layer data that the customer specified
	// (e.g. time spent in a customer specified area).
	CustomLayerInfo *CustomLayerInfo `protobuf:"bytes,4,opt,name=custom_layer_info,json=customLayerInfo,proto3" json:"custom_layer_info,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc.

func (*RouteTravelAdvisory) Descriptor deprecated

func (*RouteTravelAdvisory) Descriptor() ([]byte, []int)

Deprecated: Use RouteTravelAdvisory.ProtoReflect.Descriptor instead.

func (*RouteTravelAdvisory) GetCustomLayerInfo

func (x *RouteTravelAdvisory) GetCustomLayerInfo() *CustomLayerInfo

func (*RouteTravelAdvisory) GetSpeedReadingIntervals

func (x *RouteTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval

func (*RouteTravelAdvisory) GetTollInfo

func (x *RouteTravelAdvisory) GetTollInfo() *TollInfo

func (*RouteTravelAdvisory) GetTrafficRestriction

func (x *RouteTravelAdvisory) GetTrafficRestriction() *TrafficRestriction

func (*RouteTravelAdvisory) ProtoMessage

func (*RouteTravelAdvisory) ProtoMessage()

func (*RouteTravelAdvisory) ProtoReflect

func (x *RouteTravelAdvisory) ProtoReflect() protoreflect.Message

func (*RouteTravelAdvisory) Reset

func (x *RouteTravelAdvisory) Reset()

func (*RouteTravelAdvisory) String

func (x *RouteTravelAdvisory) String() string

type RouteTravelMode

type RouteTravelMode int32

A set of values used to specify the mode of travel.

const (
	// No travel mode specified. Defaults to `DRIVE`.
	RouteTravelMode_TRAVEL_MODE_UNSPECIFIED RouteTravelMode = 0
	// Travel by passenger car.
	RouteTravelMode_DRIVE RouteTravelMode = 1
	// Travel by bicycle.
	RouteTravelMode_BICYCLE RouteTravelMode = 2
	// Travel by walking.
	RouteTravelMode_WALK RouteTravelMode = 3
	// Two-wheeled, motorized vehicle. For example, motorcycle. Note that this
	// differs from the `BICYCLE` travel mode which covers human-powered mode.
	RouteTravelMode_TWO_WHEELER RouteTravelMode = 4
	// Travel by licensed taxi, which may allow the vehicle to travel on
	// designated taxi lanes in some areas.
	RouteTravelMode_TAXI RouteTravelMode = 5
)

func (RouteTravelMode) Descriptor

func (RouteTravelMode) Enum

func (x RouteTravelMode) Enum() *RouteTravelMode

func (RouteTravelMode) EnumDescriptor deprecated

func (RouteTravelMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use RouteTravelMode.Descriptor instead.

func (RouteTravelMode) Number

func (RouteTravelMode) String

func (x RouteTravelMode) String() string

func (RouteTravelMode) Type

type RoutesPreferredClient

type RoutesPreferredClient interface {
	// Returns the primary route along with optional alternate routes, given a set
	// of terminal and intermediate waypoints.
	//
	// **NOTE:** This method requires that you specify a response field mask in
	// the input. You can provide the response field mask by using URL parameter
	// `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask`
	// (see the [available URL parameters and
	// headers](https://cloud.google.com/apis/docs/system-parameters). The value
	// is a comma separated list of field paths. See detailed documentation about
	// [how to construct the field
	// paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
	//
	// For example, in this method:
	//
	// * Field mask of all available fields (for manual inspection):
	//   `X-Goog-FieldMask: *`
	// * Field mask of Route-level duration, distance, and polyline (an example
	// production setup):
	//   `X-Goog-FieldMask:
	//   routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline`
	//
	// Google discourage the use of the wildcard (`*`) response field mask, or
	// specifying the field mask at the top level (`routes`), because:
	//
	// * Selecting only the fields that you need helps our server save computation
	// cycles, allowing us to return the result to you with a lower latency.
	// * Selecting only the fields that you need
	// in your production job ensures stable latency performance. We might add
	// more response fields in the future, and those new fields might require
	// extra computation time. If you select all fields, or if you select all
	// fields at the top level, then you might experience performance degradation
	// because any new field we add will be automatically included in the
	// response.
	// * Selecting only the fields that you need results in a smaller response
	// size, and thus higher network throughput.
	ComputeRoutes(ctx context.Context, in *ComputeRoutesRequest, opts ...grpc.CallOption) (*ComputeRoutesResponse, error)
	// Takes in a list of origins and destinations and returns a stream containing
	// route information for each combination of origin and destination.
	//
	// **NOTE:** This method requires that you specify a response field mask in
	// the input. You can provide the response field mask by using the URL
	// parameter `$fields` or `fields`, or by using the HTTP/gRPC header
	// `X-Goog-FieldMask` (see the [available URL parameters and
	// headers](https://cloud.google.com/apis/docs/system-parameters). The value
	// is a comma separated list of field paths. See this detailed documentation
	// about [how to construct the field
	// paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
	//
	// For example, in this method:
	//
	// * Field mask of all available fields (for manual inspection):
	//   `X-Goog-FieldMask: *`
	// * Field mask of route durations, distances, element status, condition, and
	//   element indices (an example production setup):
	//   `X-Goog-FieldMask:
	//   originIndex,destinationIndex,status,condition,distanceMeters,duration`
	//
	// It is critical that you include `status` in your field mask as otherwise
	// all messages will appear to be OK. Google discourages the use of the
	// wildcard (`*`) response field mask, because:
	//
	// * Selecting only the fields that you need helps our server save computation
	// cycles, allowing us to return the result to you with a lower latency.
	// * Selecting only the fields that you need in your production job ensures
	// stable latency performance. We might add more response fields in the
	// future, and those new fields might require extra computation time. If you
	// select all fields, or if you select all fields at the top level, then you
	// might experience performance degradation because any new field we add will
	// be automatically included in the response.
	// * Selecting only the fields that you need results in a smaller response
	// size, and thus higher network throughput.
	ComputeRouteMatrix(ctx context.Context, in *ComputeRouteMatrixRequest, opts ...grpc.CallOption) (RoutesPreferred_ComputeRouteMatrixClient, error)
	// Given a set of terminal and intermediate waypoints, and a route objective,
	// computes the best route for the route objective. Also returns fastest route
	// and shortest route as reference routes.
	//
	// **NOTE:** This method requires that you specify a response field mask in
	// the input. You can provide the response field mask by using the URL
	// parameter `$fields` or `fields`, or by using the HTTP/gRPC header
	// `X-Goog-FieldMask` (see the [available URL parameters and
	// headers](https://cloud.google.com/apis/docs/system-parameters). The value
	// is a comma separated list of field paths. See this detailed documentation
	// about [how to construct the field
	// paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
	//
	// For example, in this method:
	//
	// * Field mask of all available fields (for manual inspection):
	//   `X-Goog-FieldMask: *`
	// * Field mask of route distances, durations, token and toll info:
	//   `X-Goog-FieldMask:
	//   routes.route.distanceMeters,routes.route.duration,routes.token,routes.route.travelAdvisory.tollInfo`
	//
	// Google discourages the use of the wildcard (`*`) response field mask, or
	// specifying the field mask at the top level (`routes`), because:
	//
	// * Selecting only the fields that you need helps our server save computation
	// cycles, allowing us to return the result to you with a lower latency.
	// * Selecting only the fields that you need in your production job ensures
	// stable latency performance. We might add more response fields in the
	// future, and those new fields might require extra computation time. If you
	// select all fields, or if you select all fields at the top level, then you
	// might experience performance degradation because any new field we add will
	// be automatically included in the response.
	// * Selecting only the fields that you need results in a smaller response
	// size, and thus higher network throughput.
	ComputeCustomRoutes(ctx context.Context, in *ComputeCustomRoutesRequest, opts ...grpc.CallOption) (*ComputeCustomRoutesResponse, error)
}

RoutesPreferredClient is the client API for RoutesPreferred service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type RoutesPreferredServer

type RoutesPreferredServer interface {
	// Returns the primary route along with optional alternate routes, given a set
	// of terminal and intermediate waypoints.
	//
	// **NOTE:** This method requires that you specify a response field mask in
	// the input. You can provide the response field mask by using URL parameter
	// `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask`
	// (see the [available URL parameters and
	// headers](https://cloud.google.com/apis/docs/system-parameters). The value
	// is a comma separated list of field paths. See detailed documentation about
	// [how to construct the field
	// paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
	//
	// For example, in this method:
	//
	// * Field mask of all available fields (for manual inspection):
	//   `X-Goog-FieldMask: *`
	// * Field mask of Route-level duration, distance, and polyline (an example
	// production setup):
	//   `X-Goog-FieldMask:
	//   routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline`
	//
	// Google discourage the use of the wildcard (`*`) response field mask, or
	// specifying the field mask at the top level (`routes`), because:
	//
	// * Selecting only the fields that you need helps our server save computation
	// cycles, allowing us to return the result to you with a lower latency.
	// * Selecting only the fields that you need
	// in your production job ensures stable latency performance. We might add
	// more response fields in the future, and those new fields might require
	// extra computation time. If you select all fields, or if you select all
	// fields at the top level, then you might experience performance degradation
	// because any new field we add will be automatically included in the
	// response.
	// * Selecting only the fields that you need results in a smaller response
	// size, and thus higher network throughput.
	ComputeRoutes(context.Context, *ComputeRoutesRequest) (*ComputeRoutesResponse, error)
	// Takes in a list of origins and destinations and returns a stream containing
	// route information for each combination of origin and destination.
	//
	// **NOTE:** This method requires that you specify a response field mask in
	// the input. You can provide the response field mask by using the URL
	// parameter `$fields` or `fields`, or by using the HTTP/gRPC header
	// `X-Goog-FieldMask` (see the [available URL parameters and
	// headers](https://cloud.google.com/apis/docs/system-parameters). The value
	// is a comma separated list of field paths. See this detailed documentation
	// about [how to construct the field
	// paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
	//
	// For example, in this method:
	//
	// * Field mask of all available fields (for manual inspection):
	//   `X-Goog-FieldMask: *`
	// * Field mask of route durations, distances, element status, condition, and
	//   element indices (an example production setup):
	//   `X-Goog-FieldMask:
	//   originIndex,destinationIndex,status,condition,distanceMeters,duration`
	//
	// It is critical that you include `status` in your field mask as otherwise
	// all messages will appear to be OK. Google discourages the use of the
	// wildcard (`*`) response field mask, because:
	//
	// * Selecting only the fields that you need helps our server save computation
	// cycles, allowing us to return the result to you with a lower latency.
	// * Selecting only the fields that you need in your production job ensures
	// stable latency performance. We might add more response fields in the
	// future, and those new fields might require extra computation time. If you
	// select all fields, or if you select all fields at the top level, then you
	// might experience performance degradation because any new field we add will
	// be automatically included in the response.
	// * Selecting only the fields that you need results in a smaller response
	// size, and thus higher network throughput.
	ComputeRouteMatrix(*ComputeRouteMatrixRequest, RoutesPreferred_ComputeRouteMatrixServer) error
	// Given a set of terminal and intermediate waypoints, and a route objective,
	// computes the best route for the route objective. Also returns fastest route
	// and shortest route as reference routes.
	//
	// **NOTE:** This method requires that you specify a response field mask in
	// the input. You can provide the response field mask by using the URL
	// parameter `$fields` or `fields`, or by using the HTTP/gRPC header
	// `X-Goog-FieldMask` (see the [available URL parameters and
	// headers](https://cloud.google.com/apis/docs/system-parameters). The value
	// is a comma separated list of field paths. See this detailed documentation
	// about [how to construct the field
	// paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
	//
	// For example, in this method:
	//
	// * Field mask of all available fields (for manual inspection):
	//   `X-Goog-FieldMask: *`
	// * Field mask of route distances, durations, token and toll info:
	//   `X-Goog-FieldMask:
	//   routes.route.distanceMeters,routes.route.duration,routes.token,routes.route.travelAdvisory.tollInfo`
	//
	// Google discourages the use of the wildcard (`*`) response field mask, or
	// specifying the field mask at the top level (`routes`), because:
	//
	// * Selecting only the fields that you need helps our server save computation
	// cycles, allowing us to return the result to you with a lower latency.
	// * Selecting only the fields that you need in your production job ensures
	// stable latency performance. We might add more response fields in the
	// future, and those new fields might require extra computation time. If you
	// select all fields, or if you select all fields at the top level, then you
	// might experience performance degradation because any new field we add will
	// be automatically included in the response.
	// * Selecting only the fields that you need results in a smaller response
	// size, and thus higher network throughput.
	ComputeCustomRoutes(context.Context, *ComputeCustomRoutesRequest) (*ComputeCustomRoutesResponse, error)
}

RoutesPreferredServer is the server API for RoutesPreferred service.

type RoutesPreferred_ComputeRouteMatrixClient

type RoutesPreferred_ComputeRouteMatrixClient interface {
	Recv() (*RouteMatrixElement, error)
	grpc.ClientStream
}

type RoutesPreferred_ComputeRouteMatrixServer

type RoutesPreferred_ComputeRouteMatrixServer interface {
	Send(*RouteMatrixElement) error
	grpc.ServerStream
}

type RoutingPreference

type RoutingPreference int32

A set of values that specify factors to take into consideration when calculating the route.

const (
	// No routing preference specified. Default to `TRAFFIC_AWARE`.
	RoutingPreference_ROUTING_PREFERENCE_UNSPECIFIED RoutingPreference = 0
	// Computes routes without taking traffic conditions into consideration.
	// Suitable when traffic conditions don't matter. Using this value produces
	// the lowest latency.
	RoutingPreference_TRAFFIC_UNAWARE RoutingPreference = 1
	// Calculates routes taking traffic conditions into consideration. In contrast
	// to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to significantly
	// reduce latency.
	RoutingPreference_TRAFFIC_AWARE RoutingPreference = 2
	// Calculates the routes taking traffic conditions into consideration,
	// without applying most performance optimizations. Using this value produces
	// the highest latency.
	RoutingPreference_TRAFFIC_AWARE_OPTIMAL RoutingPreference = 3
)

func (RoutingPreference) Descriptor

func (RoutingPreference) Enum

func (RoutingPreference) EnumDescriptor deprecated

func (RoutingPreference) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoutingPreference.Descriptor instead.

func (RoutingPreference) Number

func (RoutingPreference) String

func (x RoutingPreference) String() string

func (RoutingPreference) Type

type SpeedReadingInterval

type SpeedReadingInterval struct {

	// The starting index of this interval in the polyline.
	// In JSON, when the index is 0, the field appears to be unpopulated.
	StartPolylinePointIndex int32 `` /* 135-byte string literal not displayed */
	// The ending index of this interval in the polyline.
	// In JSON, when the index is 0, the field appears to be unpopulated.
	EndPolylinePointIndex int32 `` /* 129-byte string literal not displayed */
	// Traffic speed in this interval.
	Speed SpeedReadingInterval_Speed `protobuf:"varint,3,opt,name=speed,proto3,enum=google.maps.routes.v1.SpeedReadingInterval_Speed" json:"speed,omitempty"`
	// contains filtered or unexported fields
}

Traffic density indicator on a contiguous segment of a polyline or path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval defines an interval and describes its traffic using the following categories.

func (*SpeedReadingInterval) Descriptor deprecated

func (*SpeedReadingInterval) Descriptor() ([]byte, []int)

Deprecated: Use SpeedReadingInterval.ProtoReflect.Descriptor instead.

func (*SpeedReadingInterval) GetEndPolylinePointIndex

func (x *SpeedReadingInterval) GetEndPolylinePointIndex() int32

func (*SpeedReadingInterval) GetSpeed

func (*SpeedReadingInterval) GetStartPolylinePointIndex

func (x *SpeedReadingInterval) GetStartPolylinePointIndex() int32

func (*SpeedReadingInterval) ProtoMessage

func (*SpeedReadingInterval) ProtoMessage()

func (*SpeedReadingInterval) ProtoReflect

func (x *SpeedReadingInterval) ProtoReflect() protoreflect.Message

func (*SpeedReadingInterval) Reset

func (x *SpeedReadingInterval) Reset()

func (*SpeedReadingInterval) String

func (x *SpeedReadingInterval) String() string

type SpeedReadingInterval_Speed

type SpeedReadingInterval_Speed int32

The classification of polyline speed based on traffic data.

const (
	// Default value. This value is unused.
	SpeedReadingInterval_SPEED_UNSPECIFIED SpeedReadingInterval_Speed = 0
	// Normal speed, no slowdown is detected.
	SpeedReadingInterval_NORMAL SpeedReadingInterval_Speed = 1
	// Slowdown detected, but no traffic jam formed.
	SpeedReadingInterval_SLOW SpeedReadingInterval_Speed = 2
	// Traffic jam detected.
	SpeedReadingInterval_TRAFFIC_JAM SpeedReadingInterval_Speed = 3
)

func (SpeedReadingInterval_Speed) Descriptor

func (SpeedReadingInterval_Speed) Enum

func (SpeedReadingInterval_Speed) EnumDescriptor deprecated

func (SpeedReadingInterval_Speed) EnumDescriptor() ([]byte, []int)

Deprecated: Use SpeedReadingInterval_Speed.Descriptor instead.

func (SpeedReadingInterval_Speed) Number

func (SpeedReadingInterval_Speed) String

func (SpeedReadingInterval_Speed) Type

type TollInfo

type TollInfo struct {

	// The monetary amount of tolls for the corresponding Route or RouteLeg.
	// This list contains a money amount for each currency that is expected
	// to be charged by the toll stations. Typically this list will contain only
	// one item for routes with tolls in one currency. For international trips,
	// this list may contain multiple items to reflect tolls in different
	// currencies.
	EstimatedPrice []*money.Money `protobuf:"bytes,1,rep,name=estimated_price,json=estimatedPrice,proto3" json:"estimated_price,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates toll information on a `Route` or on a `RouteLeg`.

func (*TollInfo) Descriptor deprecated

func (*TollInfo) Descriptor() ([]byte, []int)

Deprecated: Use TollInfo.ProtoReflect.Descriptor instead.

func (*TollInfo) GetEstimatedPrice

func (x *TollInfo) GetEstimatedPrice() []*money.Money

func (*TollInfo) ProtoMessage

func (*TollInfo) ProtoMessage()

func (*TollInfo) ProtoReflect

func (x *TollInfo) ProtoReflect() protoreflect.Message

func (*TollInfo) Reset

func (x *TollInfo) Reset()

func (*TollInfo) String

func (x *TollInfo) String() string

type TollPass

type TollPass int32

List of toll passes around the world that we support.

const (
	// Not used. If this value is used, then the request fails.
	TollPass_TOLL_PASS_UNSPECIFIED TollPass = 0
	// One of many Sydney toll pass providers.
	//  https://www.myetoll.com.au
	TollPass_AU_ETOLL_TAG TollPass = 82
	// One of many Sydney toll pass providers.
	//  https://www.tollpay.com.au/
	TollPass_AU_EWAY_TAG TollPass = 83
	// Australia-wide toll pass.
	// See additional details at https://www.linkt.com.au/.
	TollPass_AU_LINKT TollPass = 2
	// Argentina toll pass. See additional details at https://telepase.com.ar
	TollPass_AR_TELEPASE TollPass = 3
	// Brazil toll pass. See additional details at https://www.autoexpreso.com
	TollPass_BR_AUTO_EXPRESO TollPass = 81
	// Brazil toll pass. See additional details at https://conectcar.com.
	TollPass_BR_CONECTCAR TollPass = 7
	// Brazil toll pass. See additional details at https://movemais.com.
	TollPass_BR_MOVE_MAIS TollPass = 8
	// Brazil toll pass. See additional details at https://pasorapido.gob.do/
	TollPass_BR_PASSA_RAPIDO TollPass = 88
	// Brazil toll pass. See additional details at https://www.semparar.com.br.
	TollPass_BR_SEM_PARAR TollPass = 9
	// Brazil toll pass. See additional details at https://taggy.com.br.
	TollPass_BR_TAGGY TollPass = 10
	// Brazil toll pass. See additional details at
	// https://veloe.com.br/site/onde-usar.
	TollPass_BR_VELOE TollPass = 11
	// Canada to United States border crossing.
	TollPass_CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD TollPass = 84
	// Canada to United States border crossing.
	TollPass_CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD TollPass = 85
	// Ontario, Canada to Michigan, United States border crossing.
	TollPass_CA_US_BLUE_WATER_EDGE_PASS TollPass = 18
	// Ontario, Canada to Michigan, United States border crossing.
	TollPass_CA_US_CONNEXION TollPass = 19
	// Canada to United States border crossing.
	TollPass_CA_US_NEXUS_CARD TollPass = 20
	// Indonesia.
	// E-card provided by multiple banks used to pay for tolls. All e-cards
	// via banks are charged the same so only one enum value is needed. E.g.
	// Bank Mandiri https://www.bankmandiri.co.id/e-money
	// BCA https://www.bca.co.id/flazz
	// BNI https://www.bni.co.id/id-id/ebanking/tapcash
	TollPass_ID_E_TOLL TollPass = 16
	// India.
	TollPass_IN_FASTAG TollPass = 78
	// India, HP state plate exemption.
	TollPass_IN_LOCAL_HP_PLATE_EXEMPT TollPass = 79
	// Mexico toll pass.
	TollPass_MX_TAG_IAVE TollPass = 12
	// Mexico toll pass company. One of many operating in Mexico City. See
	// additional details at https://www.televia.com.mx.
	TollPass_MX_TAG_TELEVIA TollPass = 13
	// Mexico toll pass. See additional details at
	// https://www.viapass.com.mx/viapass/web_home.aspx.
	TollPass_MX_VIAPASS TollPass = 14
	// AL, USA.
	TollPass_US_AL_FREEDOM_PASS TollPass = 21
	// AK, USA.
	TollPass_US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS TollPass = 22
	// CA, USA.
	TollPass_US_CA_FASTRAK TollPass = 4
	// Indicates driver has any FasTrak pass in addition to the DMV issued Clean
	// Air Vehicle (CAV) sticker.
	// https://www.bayareafastrak.org/en/guide/doINeedFlex.shtml
	TollPass_US_CA_FASTRAK_CAV_STICKER TollPass = 86
	// CO, USA.
	TollPass_US_CO_EXPRESSTOLL TollPass = 23
	// CO, USA.
	TollPass_US_CO_GO_PASS TollPass = 24
	// DE, USA.
	TollPass_US_DE_EZPASSDE TollPass = 25
	// FL, USA.
	TollPass_US_FL_BOB_SIKES_TOLL_BRIDGE_PASS TollPass = 65
	// FL, USA.
	TollPass_US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD TollPass = 66
	// FL, USA.
	TollPass_US_FL_EPASS TollPass = 67
	// FL, USA.
	TollPass_US_FL_GIBA_TOLL_PASS TollPass = 68
	// FL, USA.
	TollPass_US_FL_LEEWAY TollPass = 69
	// FL, USA.
	TollPass_US_FL_SUNPASS TollPass = 70
	// FL, USA.
	TollPass_US_FL_SUNPASS_PRO TollPass = 71
	// IL, USA.
	TollPass_US_IL_EZPASSIL TollPass = 73
	// IL, USA.
	TollPass_US_IL_IPASS TollPass = 72
	// IN, USA.
	TollPass_US_IN_EZPASSIN TollPass = 26
	// KS, USA.
	TollPass_US_KS_BESTPASS_HORIZON TollPass = 27
	// KS, USA.
	TollPass_US_KS_KTAG TollPass = 28
	// KS, USA.
	TollPass_US_KS_NATIONALPASS TollPass = 29
	// KS, USA.
	TollPass_US_KS_PREPASS_ELITEPASS TollPass = 30
	// KY, USA.
	TollPass_US_KY_RIVERLINK TollPass = 31
	// LA, USA.
	TollPass_US_LA_GEAUXPASS TollPass = 32
	// LA, USA.
	TollPass_US_LA_TOLL_TAG TollPass = 33
	// MA, USA.
	TollPass_US_MA_EZPASSMA TollPass = 6
	// MD, USA.
	TollPass_US_MD_EZPASSMD TollPass = 34
	// ME, USA.
	TollPass_US_ME_EZPASSME TollPass = 35
	// MI, USA.
	TollPass_US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD TollPass = 36
	// MI, USA.
	TollPass_US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG TollPass = 37
	// MI, USA.
	TollPass_US_MI_IQ_PROX_CARD TollPass = 38
	// MI, USA.
	TollPass_US_MI_MACKINAC_BRIDGE_MAC_PASS TollPass = 39
	// MI, USA.
	TollPass_US_MI_NEXPRESS_TOLL TollPass = 40
	// MN, USA.
	TollPass_US_MN_EZPASSMN TollPass = 41
	// NC, USA.
	TollPass_US_NC_EZPASSNC TollPass = 42
	// NC, USA.
	TollPass_US_NC_PEACH_PASS TollPass = 87
	// NC, USA.
	TollPass_US_NC_QUICK_PASS TollPass = 43
	// NH, USA.
	TollPass_US_NH_EZPASSNH TollPass = 80
	// NJ, USA.
	TollPass_US_NJ_DOWNBEACH_EXPRESS_PASS TollPass = 75
	// NJ, USA.
	TollPass_US_NJ_EZPASSNJ TollPass = 74
	// NY, USA.
	TollPass_US_NY_EXPRESSPASS TollPass = 76
	// NY, USA.
	TollPass_US_NY_EZPASSNY TollPass = 77
	// OH, USA.
	TollPass_US_OH_EZPASSOH TollPass = 44
	// PA, USA.
	TollPass_US_PA_EZPASSPA TollPass = 45
	// RI, USA.
	TollPass_US_RI_EZPASSRI TollPass = 46
	// SC, USA.
	TollPass_US_SC_PALPASS TollPass = 47
	// TX, USA.
	TollPass_US_TX_BANCPASS TollPass = 48
	// TX, USA.
	TollPass_US_TX_DEL_RIO_PASS TollPass = 49
	// TX, USA.
	TollPass_US_TX_EFAST_PASS TollPass = 50
	// TX, USA.
	TollPass_US_TX_EAGLE_PASS_EXPRESS_CARD TollPass = 51
	// TX, USA.
	TollPass_US_TX_EPTOLL TollPass = 52
	// TX, USA.
	TollPass_US_TX_EZ_CROSS TollPass = 53
	// TX, USA.
	TollPass_US_TX_EZTAG TollPass = 54
	// TX, USA.
	TollPass_US_TX_LAREDO_TRADE_TAG TollPass = 55
	// TX, USA.
	TollPass_US_TX_PLUSPASS TollPass = 56
	// TX, USA.
	TollPass_US_TX_TOLLTAG TollPass = 57
	// TX, USA.
	TollPass_US_TX_TXTAG TollPass = 58
	// TX, USA.
	TollPass_US_TX_XPRESS_CARD TollPass = 59
	// UT, USA.
	TollPass_US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD TollPass = 60
	// VA, USA.
	TollPass_US_VA_EZPASSVA TollPass = 61
	// WA, USA.
	TollPass_US_WA_BREEZEBY TollPass = 17
	// WA, USA.
	TollPass_US_WA_GOOD_TO_GO TollPass = 1
	// WV, USA.
	TollPass_US_WV_EZPASSWV TollPass = 62
	// WV, USA.
	TollPass_US_WV_MEMORIAL_BRIDGE_TICKETS TollPass = 63
	// WV, USA.
	TollPass_US_WV_NEWELL_TOLL_BRIDGE_TICKET TollPass = 64
)

func (TollPass) Descriptor

func (TollPass) Descriptor() protoreflect.EnumDescriptor

func (TollPass) Enum

func (x TollPass) Enum() *TollPass

func (TollPass) EnumDescriptor deprecated

func (TollPass) EnumDescriptor() ([]byte, []int)

Deprecated: Use TollPass.Descriptor instead.

func (TollPass) Number

func (x TollPass) Number() protoreflect.EnumNumber

func (TollPass) String

func (x TollPass) String() string

func (TollPass) Type

type TrafficRestriction

type TrafficRestriction struct {

	// The restriction based on the vehicle's license plate last character. If
	// this field does not exist, then no restriction on route.
	LicensePlateLastCharacterRestriction *LicensePlateLastCharacterRestriction `` /* 175-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates the traffic restriction applied to the route. As of October 2019, only Jakarta, Indonesia takes into consideration.

func (*TrafficRestriction) Descriptor deprecated

func (*TrafficRestriction) Descriptor() ([]byte, []int)

Deprecated: Use TrafficRestriction.ProtoReflect.Descriptor instead.

func (*TrafficRestriction) GetLicensePlateLastCharacterRestriction

func (x *TrafficRestriction) GetLicensePlateLastCharacterRestriction() *LicensePlateLastCharacterRestriction

func (*TrafficRestriction) ProtoMessage

func (*TrafficRestriction) ProtoMessage()

func (*TrafficRestriction) ProtoReflect

func (x *TrafficRestriction) ProtoReflect() protoreflect.Message

func (*TrafficRestriction) Reset

func (x *TrafficRestriction) Reset()

func (*TrafficRestriction) String

func (x *TrafficRestriction) String() string

type UnimplementedRoutesPreferredServer

type UnimplementedRoutesPreferredServer struct {
}

UnimplementedRoutesPreferredServer can be embedded to have forward compatible implementations.

func (*UnimplementedRoutesPreferredServer) ComputeCustomRoutes

func (*UnimplementedRoutesPreferredServer) ComputeRoutes

type Units

type Units int32

A set of values that specify the unit of measure used in the display.

const (
	// Units of measure not specified. Defaults to the unit of measure inferred
	// from the request.
	Units_UNITS_UNSPECIFIED Units = 0
	// Metric units of measure.
	Units_METRIC Units = 1
	// Imperial (English) units of measure.
	Units_IMPERIAL Units = 2
)

func (Units) Descriptor

func (Units) Descriptor() protoreflect.EnumDescriptor

func (Units) Enum

func (x Units) Enum() *Units

func (Units) EnumDescriptor deprecated

func (Units) EnumDescriptor() ([]byte, []int)

Deprecated: Use Units.Descriptor instead.

func (Units) Number

func (x Units) Number() protoreflect.EnumNumber

func (Units) String

func (x Units) String() string

func (Units) Type

func (Units) Type() protoreflect.EnumType

type VehicleEmissionType

type VehicleEmissionType int32

A set of values describing the vehicle's emission type. Applies only to the DRIVE travel mode.

const (
	// No emission type specified. Default to GASOLINE.
	VehicleEmissionType_VEHICLE_EMISSION_TYPE_UNSPECIFIED VehicleEmissionType = 0
	// Gasoline/petrol fueled vehicle.
	VehicleEmissionType_GASOLINE VehicleEmissionType = 1
	// Electricity powered vehicle.
	VehicleEmissionType_ELECTRIC VehicleEmissionType = 2
	// Hybrid fuel (such as gasoline + electric) vehicle.
	VehicleEmissionType_HYBRID VehicleEmissionType = 3
)

func (VehicleEmissionType) Descriptor

func (VehicleEmissionType) Enum

func (VehicleEmissionType) EnumDescriptor deprecated

func (VehicleEmissionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VehicleEmissionType.Descriptor instead.

func (VehicleEmissionType) Number

func (VehicleEmissionType) String

func (x VehicleEmissionType) String() string

func (VehicleEmissionType) Type

type VehicleInfo

type VehicleInfo struct {

	// Specifies the license plate last character. Could be a digit or a letter.
	LicensePlateLastCharacter string `` /* 140-byte string literal not displayed */
	// Describes the vehicle's emission type.
	// Applies only to the DRIVE travel mode.
	EmissionType VehicleEmissionType `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Encapsulates the vehicle information, such as the license plate last character.

func (*VehicleInfo) Descriptor deprecated

func (*VehicleInfo) Descriptor() ([]byte, []int)

Deprecated: Use VehicleInfo.ProtoReflect.Descriptor instead.

func (*VehicleInfo) GetEmissionType

func (x *VehicleInfo) GetEmissionType() VehicleEmissionType

func (*VehicleInfo) GetLicensePlateLastCharacter

func (x *VehicleInfo) GetLicensePlateLastCharacter() string

func (*VehicleInfo) ProtoMessage

func (*VehicleInfo) ProtoMessage()

func (*VehicleInfo) ProtoReflect

func (x *VehicleInfo) ProtoReflect() protoreflect.Message

func (*VehicleInfo) Reset

func (x *VehicleInfo) Reset()

func (*VehicleInfo) String

func (x *VehicleInfo) String() string

type Waypoint

type Waypoint struct {

	// Different ways to represent a location.
	//
	// Types that are assignable to LocationType:
	//	*Waypoint_Location
	//	*Waypoint_PlaceId
	LocationType isWaypoint_LocationType `protobuf_oneof:"location_type"`
	// Marks this waypoint as a milestone rather a stopping point. For
	// each non-via waypoint in the request, the response appends an entry to the
	// `legs` array to provide the details for stopovers on that leg of the
	// trip. Set this value to true when you want the route to pass through this
	// waypoint without stopping over. Via waypoints don't cause an entry to be
	// added to the `legs` array, but they do route the journey through the
	// waypoint. You can only set this value on waypoints that are intermediates.
	// The request fails if you set this field on terminal waypoints.
	// If ComputeRoutesRequest.optimize_waypoint_order is set to true then
	// this field cannot be set to true; otherwise, the request fails.
	Via bool `protobuf:"varint,3,opt,name=via,proto3" json:"via,omitempty"`
	// Indicates that the waypoint is meant for vehicles to stop at, where the
	// intention is to either pickup or drop-off. When you set this value, the
	// calculated route won't include non-`via` waypoints on roads that are
	// unsuitable for pickup and drop-off. This option works only for `DRIVE` and
	// `TWO_WHEELER` travel modes, and when the `location_type` is `location`.
	VehicleStopover bool `protobuf:"varint,4,opt,name=vehicle_stopover,json=vehicleStopover,proto3" json:"vehicle_stopover,omitempty"`
	// Indicates that the location of this waypoint is meant to have a preference
	// for the vehicle to stop at a particular side of road. When you set this
	// value, the route will pass through the location so that the vehicle can
	// stop at the side of road that the location is biased towards from the
	// center of the road. This option works only for 'DRIVE' and 'TWO_WHEELER'
	// travel modes, and when the 'location_type' is set to 'location'.
	SideOfRoad bool `protobuf:"varint,5,opt,name=side_of_road,json=sideOfRoad,proto3" json:"side_of_road,omitempty"`
	// contains filtered or unexported fields
}

Encapsulates a waypoint. Waypoints mark both the beginning and end of a route, and include intermediate stops along the route.

func (*Waypoint) Descriptor deprecated

func (*Waypoint) Descriptor() ([]byte, []int)

Deprecated: Use Waypoint.ProtoReflect.Descriptor instead.

func (*Waypoint) GetLocation

func (x *Waypoint) GetLocation() *Location

func (*Waypoint) GetLocationType

func (m *Waypoint) GetLocationType() isWaypoint_LocationType

func (*Waypoint) GetPlaceId

func (x *Waypoint) GetPlaceId() string

func (*Waypoint) GetSideOfRoad

func (x *Waypoint) GetSideOfRoad() bool

func (*Waypoint) GetVehicleStopover

func (x *Waypoint) GetVehicleStopover() bool

func (*Waypoint) GetVia

func (x *Waypoint) GetVia() bool

func (*Waypoint) ProtoMessage

func (*Waypoint) ProtoMessage()

func (*Waypoint) ProtoReflect

func (x *Waypoint) ProtoReflect() protoreflect.Message

func (*Waypoint) Reset

func (x *Waypoint) Reset()

func (*Waypoint) String

func (x *Waypoint) String() string

type Waypoint_Location

type Waypoint_Location struct {
	// A point specified using geographic coordinates, including an optional
	// heading.
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3,oneof"`
}

type Waypoint_PlaceId

type Waypoint_PlaceId struct {
	// The POI Place ID associated with the waypoint.
	PlaceId string `protobuf:"bytes,2,opt,name=place_id,json=placeId,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL