Documentation ¶
Index ¶
- Variables
- func RegisterRoutesServer(s *grpc.Server, srv RoutesServer)
- type ComputeRouteMatrixRequest
- func (*ComputeRouteMatrixRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ComputeRouteMatrixRequest) GetArrivalTime() *timestamppb.Timestamp
- func (x *ComputeRouteMatrixRequest) GetDepartureTime() *timestamppb.Timestamp
- func (x *ComputeRouteMatrixRequest) GetDestinations() []*RouteMatrixDestination
- func (x *ComputeRouteMatrixRequest) GetExtraComputations() []ComputeRouteMatrixRequest_ExtraComputation
- func (x *ComputeRouteMatrixRequest) GetLanguageCode() string
- func (x *ComputeRouteMatrixRequest) GetOrigins() []*RouteMatrixOrigin
- func (x *ComputeRouteMatrixRequest) GetRegionCode() string
- func (x *ComputeRouteMatrixRequest) GetRoutingPreference() RoutingPreference
- func (x *ComputeRouteMatrixRequest) GetTrafficModel() TrafficModel
- func (x *ComputeRouteMatrixRequest) GetTransitPreferences() *TransitPreferences
- func (x *ComputeRouteMatrixRequest) GetTravelMode() RouteTravelMode
- func (x *ComputeRouteMatrixRequest) GetUnits() Units
- func (*ComputeRouteMatrixRequest) ProtoMessage()
- func (x *ComputeRouteMatrixRequest) ProtoReflect() protoreflect.Message
- func (x *ComputeRouteMatrixRequest) Reset()
- func (x *ComputeRouteMatrixRequest) String() string
- type ComputeRouteMatrixRequest_ExtraComputation
- func (ComputeRouteMatrixRequest_ExtraComputation) Descriptor() protoreflect.EnumDescriptor
- func (x ComputeRouteMatrixRequest_ExtraComputation) Enum() *ComputeRouteMatrixRequest_ExtraComputation
- func (ComputeRouteMatrixRequest_ExtraComputation) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComputeRouteMatrixRequest_ExtraComputation) Number() protoreflect.EnumNumber
- func (x ComputeRouteMatrixRequest_ExtraComputation) String() string
- func (ComputeRouteMatrixRequest_ExtraComputation) Type() protoreflect.EnumType
- type ComputeRoutesRequest
- func (*ComputeRoutesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ComputeRoutesRequest) GetArrivalTime() *timestamppb.Timestamp
- func (x *ComputeRoutesRequest) GetComputeAlternativeRoutes() bool
- func (x *ComputeRoutesRequest) GetDepartureTime() *timestamppb.Timestamp
- func (x *ComputeRoutesRequest) GetDestination() *Waypoint
- func (x *ComputeRoutesRequest) GetExtraComputations() []ComputeRoutesRequest_ExtraComputation
- func (x *ComputeRoutesRequest) GetIntermediates() []*Waypoint
- func (x *ComputeRoutesRequest) GetLanguageCode() string
- func (x *ComputeRoutesRequest) GetOptimizeWaypointOrder() bool
- func (x *ComputeRoutesRequest) GetOrigin() *Waypoint
- func (x *ComputeRoutesRequest) GetPolylineEncoding() PolylineEncoding
- func (x *ComputeRoutesRequest) GetPolylineQuality() PolylineQuality
- func (x *ComputeRoutesRequest) GetRegionCode() string
- func (x *ComputeRoutesRequest) GetRequestedReferenceRoutes() []ComputeRoutesRequest_ReferenceRoute
- func (x *ComputeRoutesRequest) GetRouteModifiers() *RouteModifiers
- func (x *ComputeRoutesRequest) GetRoutingPreference() RoutingPreference
- func (x *ComputeRoutesRequest) GetTrafficModel() TrafficModel
- func (x *ComputeRoutesRequest) GetTransitPreferences() *TransitPreferences
- func (x *ComputeRoutesRequest) GetTravelMode() RouteTravelMode
- func (x *ComputeRoutesRequest) GetUnits() Units
- func (*ComputeRoutesRequest) ProtoMessage()
- func (x *ComputeRoutesRequest) ProtoReflect() protoreflect.Message
- func (x *ComputeRoutesRequest) Reset()
- func (x *ComputeRoutesRequest) String() string
- type ComputeRoutesRequest_ExtraComputation
- func (ComputeRoutesRequest_ExtraComputation) Descriptor() protoreflect.EnumDescriptor
- func (x ComputeRoutesRequest_ExtraComputation) Enum() *ComputeRoutesRequest_ExtraComputation
- func (ComputeRoutesRequest_ExtraComputation) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComputeRoutesRequest_ExtraComputation) Number() protoreflect.EnumNumber
- func (x ComputeRoutesRequest_ExtraComputation) String() string
- func (ComputeRoutesRequest_ExtraComputation) Type() protoreflect.EnumType
- type ComputeRoutesRequest_ReferenceRoute
- func (ComputeRoutesRequest_ReferenceRoute) Descriptor() protoreflect.EnumDescriptor
- func (x ComputeRoutesRequest_ReferenceRoute) Enum() *ComputeRoutesRequest_ReferenceRoute
- func (ComputeRoutesRequest_ReferenceRoute) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComputeRoutesRequest_ReferenceRoute) Number() protoreflect.EnumNumber
- func (x ComputeRoutesRequest_ReferenceRoute) String() string
- func (ComputeRoutesRequest_ReferenceRoute) Type() protoreflect.EnumType
- type ComputeRoutesResponse
- func (*ComputeRoutesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ComputeRoutesResponse) GetFallbackInfo() *FallbackInfo
- func (x *ComputeRoutesResponse) GetGeocodingResults() *GeocodingResults
- func (x *ComputeRoutesResponse) GetRoutes() []*Route
- func (*ComputeRoutesResponse) ProtoMessage()
- func (x *ComputeRoutesResponse) ProtoReflect() protoreflect.Message
- func (x *ComputeRoutesResponse) Reset()
- func (x *ComputeRoutesResponse) String() string
- type FallbackInfo
- func (*FallbackInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FallbackInfo) GetReason() FallbackReason
- func (x *FallbackInfo) GetRoutingMode() FallbackRoutingMode
- func (*FallbackInfo) ProtoMessage()
- func (x *FallbackInfo) ProtoReflect() protoreflect.Message
- func (x *FallbackInfo) Reset()
- func (x *FallbackInfo) String() string
- type FallbackReason
- func (FallbackReason) Descriptor() protoreflect.EnumDescriptor
- func (x FallbackReason) Enum() *FallbackReason
- func (FallbackReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FallbackReason) Number() protoreflect.EnumNumber
- func (x FallbackReason) String() string
- func (FallbackReason) Type() protoreflect.EnumType
- type FallbackRoutingMode
- func (FallbackRoutingMode) Descriptor() protoreflect.EnumDescriptor
- func (x FallbackRoutingMode) Enum() *FallbackRoutingMode
- func (FallbackRoutingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x FallbackRoutingMode) Number() protoreflect.EnumNumber
- func (x FallbackRoutingMode) String() string
- func (FallbackRoutingMode) Type() protoreflect.EnumType
- type GeocodedWaypoint
- func (*GeocodedWaypoint) Descriptor() ([]byte, []int)deprecated
- func (x *GeocodedWaypoint) GetGeocoderStatus() *status.Status
- func (x *GeocodedWaypoint) GetIntermediateWaypointRequestIndex() int32
- func (x *GeocodedWaypoint) GetPartialMatch() bool
- func (x *GeocodedWaypoint) GetPlaceId() string
- func (x *GeocodedWaypoint) GetType() []string
- func (*GeocodedWaypoint) ProtoMessage()
- func (x *GeocodedWaypoint) ProtoReflect() protoreflect.Message
- func (x *GeocodedWaypoint) Reset()
- func (x *GeocodedWaypoint) String() string
- type GeocodingResults
- func (*GeocodingResults) Descriptor() ([]byte, []int)deprecated
- func (x *GeocodingResults) GetDestination() *GeocodedWaypoint
- func (x *GeocodingResults) GetIntermediates() []*GeocodedWaypoint
- func (x *GeocodingResults) GetOrigin() *GeocodedWaypoint
- func (*GeocodingResults) ProtoMessage()
- func (x *GeocodingResults) ProtoReflect() protoreflect.Message
- func (x *GeocodingResults) Reset()
- func (x *GeocodingResults) String() string
- type LocalizedTime
- func (*LocalizedTime) Descriptor() ([]byte, []int)deprecated
- func (x *LocalizedTime) GetTime() *localized_text.LocalizedText
- func (x *LocalizedTime) GetTimeZone() string
- func (*LocalizedTime) ProtoMessage()
- func (x *LocalizedTime) ProtoReflect() protoreflect.Message
- func (x *LocalizedTime) Reset()
- func (x *LocalizedTime) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetHeading() *wrapperspb.Int32Value
- func (x *Location) GetLatLng() *latlng.LatLng
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type Maneuver
- type NavigationInstruction
- func (*NavigationInstruction) Descriptor() ([]byte, []int)deprecated
- 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
- func (*Polyline) Descriptor() ([]byte, []int)deprecated
- func (x *Polyline) GetEncodedPolyline() string
- func (x *Polyline) GetGeoJsonLinestring() *structpb.Struct
- func (m *Polyline) GetPolylineType() isPolyline_PolylineType
- func (*Polyline) ProtoMessage()
- func (x *Polyline) ProtoReflect() protoreflect.Message
- func (x *Polyline) Reset()
- func (x *Polyline) String() string
- type PolylineEncoding
- func (PolylineEncoding) Descriptor() protoreflect.EnumDescriptor
- func (x PolylineEncoding) Enum() *PolylineEncoding
- func (PolylineEncoding) EnumDescriptor() ([]byte, []int)deprecated
- func (x PolylineEncoding) Number() protoreflect.EnumNumber
- func (x PolylineEncoding) String() string
- func (PolylineEncoding) Type() protoreflect.EnumType
- type PolylineQuality
- func (PolylineQuality) Descriptor() protoreflect.EnumDescriptor
- func (x PolylineQuality) Enum() *PolylineQuality
- func (PolylineQuality) EnumDescriptor() ([]byte, []int)deprecated
- func (x PolylineQuality) Number() protoreflect.EnumNumber
- func (x PolylineQuality) String() string
- func (PolylineQuality) Type() protoreflect.EnumType
- type Polyline_EncodedPolyline
- type Polyline_GeoJsonLinestring
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetDescription() string
- func (x *Route) GetDistanceMeters() int32
- func (x *Route) GetDuration() *durationpb.Duration
- func (x *Route) GetLegs() []*RouteLeg
- func (x *Route) GetLocalizedValues() *Route_RouteLocalizedValues
- func (x *Route) GetOptimizedIntermediateWaypointIndex() []int32
- func (x *Route) GetPolyline() *Polyline
- func (x *Route) GetRouteLabels() []RouteLabel
- func (x *Route) GetRouteToken() string
- func (x *Route) GetStaticDuration() *durationpb.Duration
- func (x *Route) GetTravelAdvisory() *RouteTravelAdvisory
- func (x *Route) GetViewport() *viewport.Viewport
- func (x *Route) GetWarnings() []string
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type RouteLabel
- type RouteLeg
- func (*RouteLeg) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLeg) GetDistanceMeters() int32
- func (x *RouteLeg) GetDuration() *durationpb.Duration
- func (x *RouteLeg) GetEndLocation() *Location
- func (x *RouteLeg) GetLocalizedValues() *RouteLeg_RouteLegLocalizedValues
- func (x *RouteLeg) GetPolyline() *Polyline
- func (x *RouteLeg) GetStartLocation() *Location
- func (x *RouteLeg) GetStaticDuration() *durationpb.Duration
- func (x *RouteLeg) GetSteps() []*RouteLegStep
- func (x *RouteLeg) GetStepsOverview() *RouteLeg_StepsOverview
- func (x *RouteLeg) GetTravelAdvisory() *RouteLegTravelAdvisory
- func (*RouteLeg) ProtoMessage()
- func (x *RouteLeg) ProtoReflect() protoreflect.Message
- func (x *RouteLeg) Reset()
- func (x *RouteLeg) String() string
- type RouteLegStep
- func (*RouteLegStep) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegStep) GetDistanceMeters() int32
- func (x *RouteLegStep) GetEndLocation() *Location
- func (x *RouteLegStep) GetLocalizedValues() *RouteLegStep_RouteLegStepLocalizedValues
- func (x *RouteLegStep) GetNavigationInstruction() *NavigationInstruction
- func (x *RouteLegStep) GetPolyline() *Polyline
- func (x *RouteLegStep) GetStartLocation() *Location
- func (x *RouteLegStep) GetStaticDuration() *durationpb.Duration
- func (x *RouteLegStep) GetTransitDetails() *RouteLegStepTransitDetails
- func (x *RouteLegStep) GetTravelAdvisory() *RouteLegStepTravelAdvisory
- func (x *RouteLegStep) GetTravelMode() RouteTravelMode
- func (*RouteLegStep) ProtoMessage()
- func (x *RouteLegStep) ProtoReflect() protoreflect.Message
- func (x *RouteLegStep) Reset()
- func (x *RouteLegStep) String() string
- type RouteLegStepTransitDetails
- func (*RouteLegStepTransitDetails) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegStepTransitDetails) GetHeadsign() string
- func (x *RouteLegStepTransitDetails) GetHeadway() *durationpb.Duration
- func (x *RouteLegStepTransitDetails) GetLocalizedValues() *RouteLegStepTransitDetails_TransitDetailsLocalizedValues
- func (x *RouteLegStepTransitDetails) GetStopCount() int32
- func (x *RouteLegStepTransitDetails) GetStopDetails() *RouteLegStepTransitDetails_TransitStopDetails
- func (x *RouteLegStepTransitDetails) GetTransitLine() *TransitLine
- func (x *RouteLegStepTransitDetails) GetTripShortText() string
- func (*RouteLegStepTransitDetails) ProtoMessage()
- func (x *RouteLegStepTransitDetails) ProtoReflect() protoreflect.Message
- func (x *RouteLegStepTransitDetails) Reset()
- func (x *RouteLegStepTransitDetails) String() string
- type RouteLegStepTransitDetails_TransitDetailsLocalizedValues
- func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) GetArrivalTime() *LocalizedTime
- func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) GetDepartureTime() *LocalizedTime
- func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) ProtoMessage()
- func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) ProtoReflect() protoreflect.Message
- func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) Reset()
- func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) String() string
- type RouteLegStepTransitDetails_TransitStopDetails
- func (*RouteLegStepTransitDetails_TransitStopDetails) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegStepTransitDetails_TransitStopDetails) GetArrivalStop() *TransitStop
- func (x *RouteLegStepTransitDetails_TransitStopDetails) GetArrivalTime() *timestamppb.Timestamp
- func (x *RouteLegStepTransitDetails_TransitStopDetails) GetDepartureStop() *TransitStop
- func (x *RouteLegStepTransitDetails_TransitStopDetails) GetDepartureTime() *timestamppb.Timestamp
- func (*RouteLegStepTransitDetails_TransitStopDetails) ProtoMessage()
- func (x *RouteLegStepTransitDetails_TransitStopDetails) ProtoReflect() protoreflect.Message
- func (x *RouteLegStepTransitDetails_TransitStopDetails) Reset()
- func (x *RouteLegStepTransitDetails_TransitStopDetails) String() string
- type RouteLegStepTravelAdvisory
- func (*RouteLegStepTravelAdvisory) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegStepTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval
- func (*RouteLegStepTravelAdvisory) ProtoMessage()
- func (x *RouteLegStepTravelAdvisory) ProtoReflect() protoreflect.Message
- func (x *RouteLegStepTravelAdvisory) Reset()
- func (x *RouteLegStepTravelAdvisory) String() string
- type RouteLegStep_RouteLegStepLocalizedValues
- func (*RouteLegStep_RouteLegStepLocalizedValues) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegStep_RouteLegStepLocalizedValues) GetDistance() *localized_text.LocalizedText
- func (x *RouteLegStep_RouteLegStepLocalizedValues) GetStaticDuration() *localized_text.LocalizedText
- func (*RouteLegStep_RouteLegStepLocalizedValues) ProtoMessage()
- func (x *RouteLegStep_RouteLegStepLocalizedValues) ProtoReflect() protoreflect.Message
- func (x *RouteLegStep_RouteLegStepLocalizedValues) Reset()
- func (x *RouteLegStep_RouteLegStepLocalizedValues) String() string
- type RouteLegTravelAdvisory
- func (*RouteLegTravelAdvisory) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLegTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval
- func (x *RouteLegTravelAdvisory) GetTollInfo() *TollInfo
- func (*RouteLegTravelAdvisory) ProtoMessage()
- func (x *RouteLegTravelAdvisory) ProtoReflect() protoreflect.Message
- func (x *RouteLegTravelAdvisory) Reset()
- func (x *RouteLegTravelAdvisory) String() string
- type RouteLeg_RouteLegLocalizedValues
- func (*RouteLeg_RouteLegLocalizedValues) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLeg_RouteLegLocalizedValues) GetDistance() *localized_text.LocalizedText
- func (x *RouteLeg_RouteLegLocalizedValues) GetDuration() *localized_text.LocalizedText
- func (x *RouteLeg_RouteLegLocalizedValues) GetStaticDuration() *localized_text.LocalizedText
- func (*RouteLeg_RouteLegLocalizedValues) ProtoMessage()
- func (x *RouteLeg_RouteLegLocalizedValues) ProtoReflect() protoreflect.Message
- func (x *RouteLeg_RouteLegLocalizedValues) Reset()
- func (x *RouteLeg_RouteLegLocalizedValues) String() string
- type RouteLeg_StepsOverview
- func (*RouteLeg_StepsOverview) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLeg_StepsOverview) GetMultiModalSegments() []*RouteLeg_StepsOverview_MultiModalSegment
- func (*RouteLeg_StepsOverview) ProtoMessage()
- func (x *RouteLeg_StepsOverview) ProtoReflect() protoreflect.Message
- func (x *RouteLeg_StepsOverview) Reset()
- func (x *RouteLeg_StepsOverview) String() string
- type RouteLeg_StepsOverview_MultiModalSegment
- func (*RouteLeg_StepsOverview_MultiModalSegment) Descriptor() ([]byte, []int)deprecated
- func (x *RouteLeg_StepsOverview_MultiModalSegment) GetNavigationInstruction() *NavigationInstruction
- func (x *RouteLeg_StepsOverview_MultiModalSegment) GetStepEndIndex() int32
- func (x *RouteLeg_StepsOverview_MultiModalSegment) GetStepStartIndex() int32
- func (x *RouteLeg_StepsOverview_MultiModalSegment) GetTravelMode() RouteTravelMode
- func (*RouteLeg_StepsOverview_MultiModalSegment) ProtoMessage()
- func (x *RouteLeg_StepsOverview_MultiModalSegment) ProtoReflect() protoreflect.Message
- func (x *RouteLeg_StepsOverview_MultiModalSegment) Reset()
- func (x *RouteLeg_StepsOverview_MultiModalSegment) String() string
- type RouteMatrixDestination
- func (*RouteMatrixDestination) Descriptor() ([]byte, []int)deprecated
- func (x *RouteMatrixDestination) GetWaypoint() *Waypoint
- func (*RouteMatrixDestination) ProtoMessage()
- func (x *RouteMatrixDestination) ProtoReflect() protoreflect.Message
- func (x *RouteMatrixDestination) Reset()
- func (x *RouteMatrixDestination) String() string
- type RouteMatrixElement
- func (*RouteMatrixElement) Descriptor() ([]byte, []int)deprecated
- func (x *RouteMatrixElement) GetCondition() RouteMatrixElementCondition
- func (x *RouteMatrixElement) GetDestinationIndex() int32
- func (x *RouteMatrixElement) GetDistanceMeters() int32
- func (x *RouteMatrixElement) GetDuration() *durationpb.Duration
- func (x *RouteMatrixElement) GetFallbackInfo() *FallbackInfo
- func (x *RouteMatrixElement) GetLocalizedValues() *RouteMatrixElement_LocalizedValues
- func (x *RouteMatrixElement) GetOriginIndex() int32
- func (x *RouteMatrixElement) GetStaticDuration() *durationpb.Duration
- func (x *RouteMatrixElement) GetStatus() *status.Status
- func (x *RouteMatrixElement) GetTravelAdvisory() *RouteTravelAdvisory
- func (*RouteMatrixElement) ProtoMessage()
- func (x *RouteMatrixElement) ProtoReflect() protoreflect.Message
- func (x *RouteMatrixElement) Reset()
- func (x *RouteMatrixElement) String() string
- type RouteMatrixElementCondition
- func (RouteMatrixElementCondition) Descriptor() protoreflect.EnumDescriptor
- func (x RouteMatrixElementCondition) Enum() *RouteMatrixElementCondition
- func (RouteMatrixElementCondition) EnumDescriptor() ([]byte, []int)deprecated
- func (x RouteMatrixElementCondition) Number() protoreflect.EnumNumber
- func (x RouteMatrixElementCondition) String() string
- func (RouteMatrixElementCondition) Type() protoreflect.EnumType
- type RouteMatrixElement_LocalizedValues
- func (*RouteMatrixElement_LocalizedValues) Descriptor() ([]byte, []int)deprecated
- func (x *RouteMatrixElement_LocalizedValues) GetDistance() *localized_text.LocalizedText
- func (x *RouteMatrixElement_LocalizedValues) GetDuration() *localized_text.LocalizedText
- func (x *RouteMatrixElement_LocalizedValues) GetStaticDuration() *localized_text.LocalizedText
- func (x *RouteMatrixElement_LocalizedValues) GetTransitFare() *localized_text.LocalizedText
- func (*RouteMatrixElement_LocalizedValues) ProtoMessage()
- func (x *RouteMatrixElement_LocalizedValues) ProtoReflect() protoreflect.Message
- func (x *RouteMatrixElement_LocalizedValues) Reset()
- func (x *RouteMatrixElement_LocalizedValues) String() string
- type RouteMatrixOrigin
- func (*RouteMatrixOrigin) Descriptor() ([]byte, []int)deprecated
- func (x *RouteMatrixOrigin) GetRouteModifiers() *RouteModifiers
- func (x *RouteMatrixOrigin) GetWaypoint() *Waypoint
- func (*RouteMatrixOrigin) ProtoMessage()
- func (x *RouteMatrixOrigin) ProtoReflect() protoreflect.Message
- func (x *RouteMatrixOrigin) Reset()
- func (x *RouteMatrixOrigin) String() string
- type RouteModifiers
- func (*RouteModifiers) Descriptor() ([]byte, []int)deprecated
- func (x *RouteModifiers) GetAvoidFerries() bool
- func (x *RouteModifiers) GetAvoidHighways() bool
- func (x *RouteModifiers) GetAvoidIndoor() bool
- func (x *RouteModifiers) GetAvoidTolls() bool
- func (x *RouteModifiers) GetTollPasses() []TollPass
- func (x *RouteModifiers) GetVehicleInfo() *VehicleInfo
- func (*RouteModifiers) ProtoMessage()
- func (x *RouteModifiers) ProtoReflect() protoreflect.Message
- func (x *RouteModifiers) Reset()
- func (x *RouteModifiers) String() string
- type RouteTravelAdvisory
- func (*RouteTravelAdvisory) Descriptor() ([]byte, []int)deprecated
- func (x *RouteTravelAdvisory) GetFuelConsumptionMicroliters() int64
- func (x *RouteTravelAdvisory) GetRouteRestrictionsPartiallyIgnored() bool
- func (x *RouteTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval
- func (x *RouteTravelAdvisory) GetTollInfo() *TollInfo
- func (x *RouteTravelAdvisory) GetTransitFare() *money.Money
- func (*RouteTravelAdvisory) ProtoMessage()
- func (x *RouteTravelAdvisory) ProtoReflect() protoreflect.Message
- func (x *RouteTravelAdvisory) Reset()
- func (x *RouteTravelAdvisory) String() string
- type RouteTravelMode
- func (RouteTravelMode) Descriptor() protoreflect.EnumDescriptor
- func (x RouteTravelMode) Enum() *RouteTravelMode
- func (RouteTravelMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x RouteTravelMode) Number() protoreflect.EnumNumber
- func (x RouteTravelMode) String() string
- func (RouteTravelMode) Type() protoreflect.EnumType
- type Route_RouteLocalizedValues
- func (*Route_RouteLocalizedValues) Descriptor() ([]byte, []int)deprecated
- func (x *Route_RouteLocalizedValues) GetDistance() *localized_text.LocalizedText
- func (x *Route_RouteLocalizedValues) GetDuration() *localized_text.LocalizedText
- func (x *Route_RouteLocalizedValues) GetStaticDuration() *localized_text.LocalizedText
- func (x *Route_RouteLocalizedValues) GetTransitFare() *localized_text.LocalizedText
- func (*Route_RouteLocalizedValues) ProtoMessage()
- func (x *Route_RouteLocalizedValues) ProtoReflect() protoreflect.Message
- func (x *Route_RouteLocalizedValues) Reset()
- func (x *Route_RouteLocalizedValues) String() string
- type RoutesClient
- type RoutesServer
- type Routes_ComputeRouteMatrixClient
- type Routes_ComputeRouteMatrixServer
- type RoutingPreference
- func (RoutingPreference) Descriptor() protoreflect.EnumDescriptor
- func (x RoutingPreference) Enum() *RoutingPreference
- func (RoutingPreference) EnumDescriptor() ([]byte, []int)deprecated
- func (x RoutingPreference) Number() protoreflect.EnumNumber
- func (x RoutingPreference) String() string
- func (RoutingPreference) Type() protoreflect.EnumType
- type SpeedReadingInterval
- func (*SpeedReadingInterval) Descriptor() ([]byte, []int)deprecated
- func (x *SpeedReadingInterval) GetEndPolylinePointIndex() int32
- func (x *SpeedReadingInterval) GetSpeed() SpeedReadingInterval_Speed
- func (m *SpeedReadingInterval) GetSpeedType() isSpeedReadingInterval_SpeedType
- func (x *SpeedReadingInterval) GetStartPolylinePointIndex() int32
- func (*SpeedReadingInterval) ProtoMessage()
- func (x *SpeedReadingInterval) ProtoReflect() protoreflect.Message
- func (x *SpeedReadingInterval) Reset()
- func (x *SpeedReadingInterval) String() string
- type SpeedReadingInterval_Speed
- func (SpeedReadingInterval_Speed) Descriptor() protoreflect.EnumDescriptor
- func (x SpeedReadingInterval_Speed) Enum() *SpeedReadingInterval_Speed
- func (SpeedReadingInterval_Speed) EnumDescriptor() ([]byte, []int)deprecated
- func (x SpeedReadingInterval_Speed) Number() protoreflect.EnumNumber
- func (x SpeedReadingInterval_Speed) String() string
- func (SpeedReadingInterval_Speed) Type() protoreflect.EnumType
- type SpeedReadingInterval_Speed_
- type TollInfo
- type TollPass
- type TrafficModel
- func (TrafficModel) Descriptor() protoreflect.EnumDescriptor
- func (x TrafficModel) Enum() *TrafficModel
- func (TrafficModel) EnumDescriptor() ([]byte, []int)deprecated
- func (x TrafficModel) Number() protoreflect.EnumNumber
- func (x TrafficModel) String() string
- func (TrafficModel) Type() protoreflect.EnumType
- type TransitAgency
- func (*TransitAgency) Descriptor() ([]byte, []int)deprecated
- func (x *TransitAgency) GetName() string
- func (x *TransitAgency) GetPhoneNumber() string
- func (x *TransitAgency) GetUri() string
- func (*TransitAgency) ProtoMessage()
- func (x *TransitAgency) ProtoReflect() protoreflect.Message
- func (x *TransitAgency) Reset()
- func (x *TransitAgency) String() string
- type TransitLine
- func (*TransitLine) Descriptor() ([]byte, []int)deprecated
- func (x *TransitLine) GetAgencies() []*TransitAgency
- func (x *TransitLine) GetColor() string
- func (x *TransitLine) GetIconUri() string
- func (x *TransitLine) GetName() string
- func (x *TransitLine) GetNameShort() string
- func (x *TransitLine) GetTextColor() string
- func (x *TransitLine) GetUri() string
- func (x *TransitLine) GetVehicle() *TransitVehicle
- func (*TransitLine) ProtoMessage()
- func (x *TransitLine) ProtoReflect() protoreflect.Message
- func (x *TransitLine) Reset()
- func (x *TransitLine) String() string
- type TransitPreferences
- func (*TransitPreferences) Descriptor() ([]byte, []int)deprecated
- func (x *TransitPreferences) GetAllowedTravelModes() []TransitPreferences_TransitTravelMode
- func (x *TransitPreferences) GetRoutingPreference() TransitPreferences_TransitRoutingPreference
- func (*TransitPreferences) ProtoMessage()
- func (x *TransitPreferences) ProtoReflect() protoreflect.Message
- func (x *TransitPreferences) Reset()
- func (x *TransitPreferences) String() string
- type TransitPreferences_TransitRoutingPreference
- func (TransitPreferences_TransitRoutingPreference) Descriptor() protoreflect.EnumDescriptor
- func (x TransitPreferences_TransitRoutingPreference) Enum() *TransitPreferences_TransitRoutingPreference
- func (TransitPreferences_TransitRoutingPreference) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransitPreferences_TransitRoutingPreference) Number() protoreflect.EnumNumber
- func (x TransitPreferences_TransitRoutingPreference) String() string
- func (TransitPreferences_TransitRoutingPreference) Type() protoreflect.EnumType
- type TransitPreferences_TransitTravelMode
- func (TransitPreferences_TransitTravelMode) Descriptor() protoreflect.EnumDescriptor
- func (x TransitPreferences_TransitTravelMode) Enum() *TransitPreferences_TransitTravelMode
- func (TransitPreferences_TransitTravelMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransitPreferences_TransitTravelMode) Number() protoreflect.EnumNumber
- func (x TransitPreferences_TransitTravelMode) String() string
- func (TransitPreferences_TransitTravelMode) Type() protoreflect.EnumType
- type TransitStop
- func (*TransitStop) Descriptor() ([]byte, []int)deprecated
- func (x *TransitStop) GetLocation() *Location
- func (x *TransitStop) GetName() string
- func (*TransitStop) ProtoMessage()
- func (x *TransitStop) ProtoReflect() protoreflect.Message
- func (x *TransitStop) Reset()
- func (x *TransitStop) String() string
- type TransitVehicle
- func (*TransitVehicle) Descriptor() ([]byte, []int)deprecated
- func (x *TransitVehicle) GetIconUri() string
- func (x *TransitVehicle) GetLocalIconUri() string
- func (x *TransitVehicle) GetName() *localized_text.LocalizedText
- func (x *TransitVehicle) GetType() TransitVehicle_TransitVehicleType
- func (*TransitVehicle) ProtoMessage()
- func (x *TransitVehicle) ProtoReflect() protoreflect.Message
- func (x *TransitVehicle) Reset()
- func (x *TransitVehicle) String() string
- type TransitVehicle_TransitVehicleType
- func (TransitVehicle_TransitVehicleType) Descriptor() protoreflect.EnumDescriptor
- func (x TransitVehicle_TransitVehicleType) Enum() *TransitVehicle_TransitVehicleType
- func (TransitVehicle_TransitVehicleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransitVehicle_TransitVehicleType) Number() protoreflect.EnumNumber
- func (x TransitVehicle_TransitVehicleType) String() string
- func (TransitVehicle_TransitVehicleType) Type() protoreflect.EnumType
- type UnimplementedRoutesServer
- type Units
- type VehicleEmissionType
- func (VehicleEmissionType) Descriptor() protoreflect.EnumDescriptor
- func (x VehicleEmissionType) Enum() *VehicleEmissionType
- func (VehicleEmissionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x VehicleEmissionType) Number() protoreflect.EnumNumber
- func (x VehicleEmissionType) String() string
- func (VehicleEmissionType) Type() protoreflect.EnumType
- type VehicleInfo
- type Waypoint
- func (*Waypoint) Descriptor() ([]byte, []int)deprecated
- func (x *Waypoint) GetAddress() string
- func (x *Waypoint) GetLocation() *Location
- func (m *Waypoint) GetLocationType() isWaypoint_LocationType
- func (x *Waypoint) GetPlaceId() string
- func (x *Waypoint) GetSideOfRoad() bool
- func (x *Waypoint) GetVehicleStopover() bool
- func (x *Waypoint) GetVia() bool
- func (*Waypoint) ProtoMessage()
- func (x *Waypoint) ProtoReflect() protoreflect.Message
- func (x *Waypoint) Reset()
- func (x *Waypoint) String() string
- type Waypoint_Address
- type Waypoint_Location
- type Waypoint_PlaceId
Constants ¶
This section is empty.
Variables ¶
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.
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.
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", 19: "DEPART", 20: "NAME_CHANGE", } 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, "DEPART": 19, "NAME_CHANGE": 20, } )
Enum value maps for Maneuver.
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.
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.
var ( RouteLabel_name = map[int32]string{ 0: "ROUTE_LABEL_UNSPECIFIED", 1: "DEFAULT_ROUTE", 2: "DEFAULT_ROUTE_ALTERNATE", 3: "FUEL_EFFICIENT", } RouteLabel_value = map[string]int32{ "ROUTE_LABEL_UNSPECIFIED": 0, "DEFAULT_ROUTE": 1, "DEFAULT_ROUTE_ALTERNATE": 2, "FUEL_EFFICIENT": 3, } )
Enum value maps for RouteLabel.
var ( RouteTravelMode_name = map[int32]string{ 0: "TRAVEL_MODE_UNSPECIFIED", 1: "DRIVE", 2: "BICYCLE", 3: "WALK", 4: "TWO_WHEELER", 7: "TRANSIT", } RouteTravelMode_value = map[string]int32{ "TRAVEL_MODE_UNSPECIFIED": 0, "DRIVE": 1, "BICYCLE": 2, "WALK": 3, "TWO_WHEELER": 4, "TRANSIT": 7, } )
Enum value maps for RouteTravelMode.
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.
var ( ComputeRoutesRequest_ReferenceRoute_name = map[int32]string{ 0: "REFERENCE_ROUTE_UNSPECIFIED", 1: "FUEL_EFFICIENT", } ComputeRoutesRequest_ReferenceRoute_value = map[string]int32{ "REFERENCE_ROUTE_UNSPECIFIED": 0, "FUEL_EFFICIENT": 1, } )
Enum value maps for ComputeRoutesRequest_ReferenceRoute.
var ( ComputeRoutesRequest_ExtraComputation_name = map[int32]string{ 0: "EXTRA_COMPUTATION_UNSPECIFIED", 1: "TOLLS", 2: "FUEL_CONSUMPTION", 3: "TRAFFIC_ON_POLYLINE", 4: "HTML_FORMATTED_NAVIGATION_INSTRUCTIONS", } ComputeRoutesRequest_ExtraComputation_value = map[string]int32{ "EXTRA_COMPUTATION_UNSPECIFIED": 0, "TOLLS": 1, "FUEL_CONSUMPTION": 2, "TRAFFIC_ON_POLYLINE": 3, "HTML_FORMATTED_NAVIGATION_INSTRUCTIONS": 4, } )
Enum value maps for ComputeRoutesRequest_ExtraComputation.
var ( ComputeRouteMatrixRequest_ExtraComputation_name = map[int32]string{ 0: "EXTRA_COMPUTATION_UNSPECIFIED", 1: "TOLLS", } ComputeRouteMatrixRequest_ExtraComputation_value = map[string]int32{ "EXTRA_COMPUTATION_UNSPECIFIED": 0, "TOLLS": 1, } )
Enum value maps for ComputeRouteMatrixRequest_ExtraComputation.
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.
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.
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", 98: "JP_ETC", 99: "JP_ETC2", 90: "MX_IAVE", 91: "MX_PASE", 93: "MX_QUICKPASS", 89: "MX_SISTEMA_TELEPEAJE_CHIHUAHUA", 12: "MX_TAG_IAVE", 13: "MX_TAG_TELEVIA", 92: "MX_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", 94: "US_MI_BCPASS", 37: "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG", 38: "US_MI_IQ_PROX_CARD", 95: "US_MI_IQ_TAG", 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", 97: "US_TX_AVI_TAG", 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", 96: "US_TX_FUEGO_TAG", 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", 100: "US_WV_MOV_PASS", 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, "JP_ETC": 98, "JP_ETC2": 99, "MX_IAVE": 90, "MX_PASE": 91, "MX_QUICKPASS": 93, "MX_SISTEMA_TELEPEAJE_CHIHUAHUA": 89, "MX_TAG_IAVE": 12, "MX_TAG_TELEVIA": 13, "MX_TELEVIA": 92, "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_BCPASS": 94, "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG": 37, "US_MI_IQ_PROX_CARD": 38, "US_MI_IQ_TAG": 95, "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_AVI_TAG": 97, "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_FUEGO_TAG": 96, "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_MOV_PASS": 100, "US_WV_NEWELL_TOLL_BRIDGE_TICKET": 64, } )
Enum value maps for TollPass.
var ( TrafficModel_name = map[int32]string{ 0: "TRAFFIC_MODEL_UNSPECIFIED", 1: "BEST_GUESS", 2: "PESSIMISTIC", 3: "OPTIMISTIC", } TrafficModel_value = map[string]int32{ "TRAFFIC_MODEL_UNSPECIFIED": 0, "BEST_GUESS": 1, "PESSIMISTIC": 2, "OPTIMISTIC": 3, } )
Enum value maps for TrafficModel.
var ( TransitVehicle_TransitVehicleType_name = map[int32]string{ 0: "TRANSIT_VEHICLE_TYPE_UNSPECIFIED", 1: "BUS", 2: "CABLE_CAR", 3: "COMMUTER_TRAIN", 4: "FERRY", 5: "FUNICULAR", 6: "GONDOLA_LIFT", 7: "HEAVY_RAIL", 8: "HIGH_SPEED_TRAIN", 9: "INTERCITY_BUS", 10: "LONG_DISTANCE_TRAIN", 11: "METRO_RAIL", 12: "MONORAIL", 13: "OTHER", 14: "RAIL", 15: "SHARE_TAXI", 16: "SUBWAY", 17: "TRAM", 18: "TROLLEYBUS", } TransitVehicle_TransitVehicleType_value = map[string]int32{ "TRANSIT_VEHICLE_TYPE_UNSPECIFIED": 0, "BUS": 1, "CABLE_CAR": 2, "COMMUTER_TRAIN": 3, "FERRY": 4, "FUNICULAR": 5, "GONDOLA_LIFT": 6, "HEAVY_RAIL": 7, "HIGH_SPEED_TRAIN": 8, "INTERCITY_BUS": 9, "LONG_DISTANCE_TRAIN": 10, "METRO_RAIL": 11, "MONORAIL": 12, "OTHER": 13, "RAIL": 14, "SHARE_TAXI": 15, "SUBWAY": 16, "TRAM": 17, "TROLLEYBUS": 18, } )
Enum value maps for TransitVehicle_TransitVehicleType.
var ( TransitPreferences_TransitTravelMode_name = map[int32]string{ 0: "TRANSIT_TRAVEL_MODE_UNSPECIFIED", 1: "BUS", 2: "SUBWAY", 3: "TRAIN", 4: "LIGHT_RAIL", 5: "RAIL", } TransitPreferences_TransitTravelMode_value = map[string]int32{ "TRANSIT_TRAVEL_MODE_UNSPECIFIED": 0, "BUS": 1, "SUBWAY": 2, "TRAIN": 3, "LIGHT_RAIL": 4, "RAIL": 5, } )
Enum value maps for TransitPreferences_TransitTravelMode.
var ( TransitPreferences_TransitRoutingPreference_name = map[int32]string{ 0: "TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED", 1: "LESS_WALKING", 2: "FEWER_TRANSFERS", } TransitPreferences_TransitRoutingPreference_value = map[string]int32{ "TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED": 0, "LESS_WALKING": 1, "FEWER_TRANSFERS": 2, } )
Enum value maps for TransitPreferences_TransitRoutingPreference.
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.
var ( VehicleEmissionType_name = map[int32]string{ 0: "VEHICLE_EMISSION_TYPE_UNSPECIFIED", 1: "GASOLINE", 2: "ELECTRIC", 3: "HYBRID", 4: "DIESEL", } VehicleEmissionType_value = map[string]int32{ "VEHICLE_EMISSION_TYPE_UNSPECIFIED": 0, "GASOLINE": 1, "ELECTRIC": 2, "HYBRID": 3, "DIESEL": 4, } )
Enum value maps for VehicleEmissionType.
var File_google_maps_routing_v2_fallback_info_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_geocoding_results_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_localized_time_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_location_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_maneuver_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_polyline_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_route_label_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_route_modifiers_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_route_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_route_travel_mode_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_routes_service_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_routing_preference_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_speed_reading_interval_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_toll_info_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_toll_passes_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_traffic_model_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_transit_preferences_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_transit_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_units_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_vehicle_emission_type_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_vehicle_info_proto protoreflect.FileDescriptor
var File_google_maps_routing_v2_waypoint_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRoutesServer ¶
func RegisterRoutesServer(s *grpc.Server, srv RoutesServer)
Types ¶
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 sum of the number of origins + the number of destinations specified // as either `place_id` or `address` must be no greater than 50. // * The product of number of origins × number of destinations must be no // greater than 625 in any case. // * The product of the number of origins × number of destinations must be no // greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. // * The product of the number of origins × number of destinations must be no // greater than 100 if travel_mode is set to `TRANSIT`. 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 `` /* 136-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. You can specify this option only when the `travel_mode` is // `DRIVE` or `TWO_WHEELER`, otherwise the request fails. RoutingPreference RoutingPreference `` /* 159-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. // NOTE: You can only specify a `departure_time` in the past when // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to // `TRANSIT`. DepartureTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"` // Optional. The arrival time. // NOTE: Can only be set when // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to // `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but // not both. ArrivalTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=arrival_time,json=arrivalTime,proto3" json:"arrival_time,omitempty"` // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more // information, see [Unicode Locale // Identifier](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 first origin. LanguageCode string `protobuf:"bytes,6,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. The region code, specified as a ccTLD ("top-level domain") // two-character value. For more information see [Country code top-level // domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains). RegionCode string `protobuf:"bytes,9,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` // Optional. Specifies the units of measure for the display fields. Units Units `protobuf:"varint,7,opt,name=units,proto3,enum=google.maps.routing.v2.Units" json:"units,omitempty"` // Optional. A list of extra computations which may be used to complete the // request. Note: These extra computations may return extra fields on the // response. These extra fields must also be specified in the field mask to be // returned in the response. ExtraComputations []ComputeRouteMatrixRequest_ExtraComputation `` /* 191-byte string literal not displayed */ // Optional. Specifies the assumptions to use when calculating time in // traffic. This setting affects the value returned in the duration field in // the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which // contains the predicted time in traffic based on historical averages. // [RoutingPreference][google.maps.routing.v2.RoutingPreference] to // `TRAFFIC_AWARE_OPTIMAL` and // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. // Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not // specified. TrafficModel TrafficModel `` /* 140-byte string literal not displayed */ // Optional. Specifies preferences that influence the route returned for // `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to // `TRANSIT`. TransitPreferences *TransitPreferences `protobuf:"bytes,12,opt,name=transit_preferences,json=transitPreferences,proto3" json:"transit_preferences,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) GetArrivalTime ¶ added in v1.3.0
func (x *ComputeRouteMatrixRequest) GetArrivalTime() *timestamppb.Timestamp
func (*ComputeRouteMatrixRequest) GetDepartureTime ¶
func (x *ComputeRouteMatrixRequest) GetDepartureTime() *timestamppb.Timestamp
func (*ComputeRouteMatrixRequest) GetDestinations ¶
func (x *ComputeRouteMatrixRequest) GetDestinations() []*RouteMatrixDestination
func (*ComputeRouteMatrixRequest) GetExtraComputations ¶ added in v0.5.0
func (x *ComputeRouteMatrixRequest) GetExtraComputations() []ComputeRouteMatrixRequest_ExtraComputation
func (*ComputeRouteMatrixRequest) GetLanguageCode ¶ added in v0.7.0
func (x *ComputeRouteMatrixRequest) GetLanguageCode() string
func (*ComputeRouteMatrixRequest) GetOrigins ¶
func (x *ComputeRouteMatrixRequest) GetOrigins() []*RouteMatrixOrigin
func (*ComputeRouteMatrixRequest) GetRegionCode ¶ added in v0.7.0
func (x *ComputeRouteMatrixRequest) GetRegionCode() string
func (*ComputeRouteMatrixRequest) GetRoutingPreference ¶
func (x *ComputeRouteMatrixRequest) GetRoutingPreference() RoutingPreference
func (*ComputeRouteMatrixRequest) GetTrafficModel ¶ added in v1.3.0
func (x *ComputeRouteMatrixRequest) GetTrafficModel() TrafficModel
func (*ComputeRouteMatrixRequest) GetTransitPreferences ¶ added in v1.3.0
func (x *ComputeRouteMatrixRequest) GetTransitPreferences() *TransitPreferences
func (*ComputeRouteMatrixRequest) GetTravelMode ¶
func (x *ComputeRouteMatrixRequest) GetTravelMode() RouteTravelMode
func (*ComputeRouteMatrixRequest) GetUnits ¶ added in v1.7.2
func (x *ComputeRouteMatrixRequest) GetUnits() Units
func (*ComputeRouteMatrixRequest) ProtoMessage ¶
func (*ComputeRouteMatrixRequest) ProtoMessage()
func (*ComputeRouteMatrixRequest) ProtoReflect ¶
func (x *ComputeRouteMatrixRequest) ProtoReflect() protoreflect.Message
func (*ComputeRouteMatrixRequest) Reset ¶
func (x *ComputeRouteMatrixRequest) Reset()
func (*ComputeRouteMatrixRequest) String ¶
func (x *ComputeRouteMatrixRequest) String() string
type ComputeRouteMatrixRequest_ExtraComputation ¶ added in v0.5.0
type ComputeRouteMatrixRequest_ExtraComputation int32
Extra computations to perform while completing the request.
const ( // Not used. Requests containing this value will fail. ComputeRouteMatrixRequest_EXTRA_COMPUTATION_UNSPECIFIED ComputeRouteMatrixRequest_ExtraComputation = 0 // Toll information for the matrix element(s). ComputeRouteMatrixRequest_TOLLS ComputeRouteMatrixRequest_ExtraComputation = 1 )
func (ComputeRouteMatrixRequest_ExtraComputation) Descriptor ¶ added in v0.5.0
func (ComputeRouteMatrixRequest_ExtraComputation) Descriptor() protoreflect.EnumDescriptor
func (ComputeRouteMatrixRequest_ExtraComputation) EnumDescriptor
deprecated
added in
v0.5.0
func (ComputeRouteMatrixRequest_ExtraComputation) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComputeRouteMatrixRequest_ExtraComputation.Descriptor instead.
func (ComputeRouteMatrixRequest_ExtraComputation) Number ¶ added in v0.5.0
func (x ComputeRouteMatrixRequest_ExtraComputation) Number() protoreflect.EnumNumber
func (ComputeRouteMatrixRequest_ExtraComputation) String ¶ added in v0.5.0
func (x ComputeRouteMatrixRequest_ExtraComputation) String() string
func (ComputeRouteMatrixRequest_ExtraComputation) Type ¶ added in v0.5.0
func (ComputeRouteMatrixRequest_ExtraComputation) Type() protoreflect.EnumType
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 `` /* 136-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. You can specify this option only when the // `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. RoutingPreference RoutingPreference `` /* 159-byte string literal not displayed */ // Optional. Specifies your preference for the quality of the polyline. PolylineQuality PolylineQuality `` /* 151-byte string literal not displayed */ // Optional. Specifies the preferred encoding for the polyline. PolylineEncoding PolylineEncoding `` /* 156-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. // NOTE: You can only specify a `departure_time` in the past when // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to // `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 // days in the future. DepartureTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"` // Optional. The arrival time. // NOTE: Can only be set when // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to // `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but // not both. Transit trips are available for up to 7 days in the past or 100 // days in the future. ArrivalTime *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=arrival_time,json=arrivalTime,proto3" json:"arrival_time,omitempty"` // Optional. Specifies whether to calculate alternate routes in addition to // the route. No alternative routes are returned for requests that have // intermediate waypoints. 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 [Unicode Locale // Identifier](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. The region code, specified as a ccTLD ("top-level domain") // two-character value. For more information see [Country code top-level // domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains). RegionCode string `protobuf:"bytes,16,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` // Optional. Specifies the units of measure for the display fields. These // fields include the `instruction` field in // [`NavigationInstruction`][google.maps.routing.v2.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 first origin. Units Units `protobuf:"varint,11,opt,name=units,proto3,enum=google.maps.routing.v2.Units" json:"units,omitempty"` // Optional. If set to true, the service attempts to minimize the overall cost // of the route by re-ordering the specified intermediate waypoints. The // request fails if any of the intermediate waypoints is a `via` waypoint. Use // `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to // find the new ordering. // If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is // not requested in the `X-Goog-FieldMask` header, the request fails. // If `optimize_waypoint_order` is set to false, // `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be // empty. OptimizeWaypointOrder bool `` /* 128-byte string literal not displayed */ // Optional. Specifies what reference routes to calculate as part of the // request in addition to the default route. A reference route is a route with // a different route calculation objective than the default route. For example // a `FUEL_EFFICIENT` reference route calculation takes into account various // parameters that would generate an optimal fuel efficient route. RequestedReferenceRoutes []ComputeRoutesRequest_ReferenceRoute `` /* 208-byte string literal not displayed */ // Optional. A list of extra computations which may be used to complete the // request. Note: These extra computations may return extra fields on the // response. These extra fields must also be specified in the field mask to be // returned in the response. ExtraComputations []ComputeRoutesRequest_ExtraComputation `` /* 187-byte string literal not displayed */ // Optional. Specifies the assumptions to use when calculating time in // traffic. This setting affects the value returned in the duration field in // the // [`Route`][google.maps.routing.v2.Route] and // [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted // time in traffic based on historical averages. // `TrafficModel` is only available for requests that have set // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to // `TRAFFIC_AWARE_OPTIMAL` and // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. // Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not // specified. TrafficModel TrafficModel `` /* 140-byte string literal not displayed */ // Optional. Specifies preferences that influence the route returned for // `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to // `TRANSIT`. TransitPreferences *TransitPreferences `protobuf:"bytes,20,opt,name=transit_preferences,json=transitPreferences,proto3" json:"transit_preferences,omitempty"` // 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) GetArrivalTime ¶ added in v1.3.0
func (x *ComputeRoutesRequest) GetArrivalTime() *timestamppb.Timestamp
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) GetExtraComputations ¶ added in v0.5.0
func (x *ComputeRoutesRequest) GetExtraComputations() []ComputeRoutesRequest_ExtraComputation
func (*ComputeRoutesRequest) GetIntermediates ¶
func (x *ComputeRoutesRequest) GetIntermediates() []*Waypoint
func (*ComputeRoutesRequest) GetLanguageCode ¶
func (x *ComputeRoutesRequest) GetLanguageCode() string
func (*ComputeRoutesRequest) GetOptimizeWaypointOrder ¶ added in v1.3.0
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) GetRegionCode ¶ added in v0.7.0
func (x *ComputeRoutesRequest) GetRegionCode() string
func (*ComputeRoutesRequest) GetRequestedReferenceRoutes ¶
func (x *ComputeRoutesRequest) GetRequestedReferenceRoutes() []ComputeRoutesRequest_ReferenceRoute
func (*ComputeRoutesRequest) GetRouteModifiers ¶
func (x *ComputeRoutesRequest) GetRouteModifiers() *RouteModifiers
func (*ComputeRoutesRequest) GetRoutingPreference ¶
func (x *ComputeRoutesRequest) GetRoutingPreference() RoutingPreference
func (*ComputeRoutesRequest) GetTrafficModel ¶ added in v1.3.0
func (x *ComputeRoutesRequest) GetTrafficModel() TrafficModel
func (*ComputeRoutesRequest) GetTransitPreferences ¶ added in v1.3.0
func (x *ComputeRoutesRequest) GetTransitPreferences() *TransitPreferences
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 ComputeRoutesRequest_ExtraComputation ¶ added in v0.5.0
type ComputeRoutesRequest_ExtraComputation int32
Extra computations to perform while completing the request.
const ( // Not used. Requests containing this value will fail. ComputeRoutesRequest_EXTRA_COMPUTATION_UNSPECIFIED ComputeRoutesRequest_ExtraComputation = 0 // Toll information for the route(s). ComputeRoutesRequest_TOLLS ComputeRoutesRequest_ExtraComputation = 1 // Estimated fuel consumption for the route(s). ComputeRoutesRequest_FUEL_CONSUMPTION ComputeRoutesRequest_ExtraComputation = 2 // Traffic aware polylines for the route(s). ComputeRoutesRequest_TRAFFIC_ON_POLYLINE ComputeRoutesRequest_ExtraComputation = 3 // [`NavigationInstructions`](google.maps.routing.v2.NavigationInstructions.instructions) // presented as a formatted HTML text string. This content // is meant to be read as-is. This content is for display only. // Do not programmatically parse it. ComputeRoutesRequest_HTML_FORMATTED_NAVIGATION_INSTRUCTIONS ComputeRoutesRequest_ExtraComputation = 4 )
func (ComputeRoutesRequest_ExtraComputation) Descriptor ¶ added in v0.5.0
func (ComputeRoutesRequest_ExtraComputation) Descriptor() protoreflect.EnumDescriptor
func (ComputeRoutesRequest_ExtraComputation) EnumDescriptor
deprecated
added in
v0.5.0
func (ComputeRoutesRequest_ExtraComputation) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComputeRoutesRequest_ExtraComputation.Descriptor instead.
func (ComputeRoutesRequest_ExtraComputation) Number ¶ added in v0.5.0
func (x ComputeRoutesRequest_ExtraComputation) Number() protoreflect.EnumNumber
func (ComputeRoutesRequest_ExtraComputation) String ¶ added in v0.5.0
func (x ComputeRoutesRequest_ExtraComputation) String() string
func (ComputeRoutesRequest_ExtraComputation) Type ¶ added in v0.5.0
func (ComputeRoutesRequest_ExtraComputation) Type() protoreflect.EnumType
type ComputeRoutesRequest_ReferenceRoute ¶
type ComputeRoutesRequest_ReferenceRoute int32
A supported reference route on the ComputeRoutesRequest.
const ( // Not used. Requests containing this value fail. ComputeRoutesRequest_REFERENCE_ROUTE_UNSPECIFIED ComputeRoutesRequest_ReferenceRoute = 0 // Fuel efficient route. Routes labeled with this value are determined to be // optimized for parameters such as fuel consumption. ComputeRoutesRequest_FUEL_EFFICIENT ComputeRoutesRequest_ReferenceRoute = 1 )
func (ComputeRoutesRequest_ReferenceRoute) Descriptor ¶
func (ComputeRoutesRequest_ReferenceRoute) Descriptor() protoreflect.EnumDescriptor
func (ComputeRoutesRequest_ReferenceRoute) Enum ¶
func (x ComputeRoutesRequest_ReferenceRoute) Enum() *ComputeRoutesRequest_ReferenceRoute
func (ComputeRoutesRequest_ReferenceRoute) EnumDescriptor
deprecated
func (ComputeRoutesRequest_ReferenceRoute) EnumDescriptor() ([]byte, []int)
Deprecated: Use ComputeRoutesRequest_ReferenceRoute.Descriptor instead.
func (ComputeRoutesRequest_ReferenceRoute) Number ¶
func (x ComputeRoutesRequest_ReferenceRoute) Number() protoreflect.EnumNumber
func (ComputeRoutesRequest_ReferenceRoute) String ¶
func (x ComputeRoutesRequest_ReferenceRoute) String() string
func (ComputeRoutesRequest_ReferenceRoute) Type ¶
func (ComputeRoutesRequest_ReferenceRoute) Type() protoreflect.EnumType
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 geocoding response info for waypoints specified as addresses. GeocodingResults *GeocodingResults `protobuf:"bytes,3,opt,name=geocoding_results,json=geocodingResults,proto3" json:"geocoding_results,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) GetGeocodingResults ¶ added in v0.7.0
func (x *ComputeRoutesResponse) GetGeocodingResults() *GeocodingResults
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 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 `` /* 143-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.routing.v2.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) Descriptor() protoreflect.EnumDescriptor
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 (x FallbackReason) Number() protoreflect.EnumNumber
func (FallbackReason) String ¶
func (x FallbackReason) String() string
func (FallbackReason) Type ¶
func (FallbackReason) Type() protoreflect.EnumType
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` // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] was used to // compute the response. FallbackRoutingMode_FALLBACK_TRAFFIC_UNAWARE FallbackRoutingMode = 1 // Indicates the `TRAFFIC_AWARE` // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] was used to // compute the response. FallbackRoutingMode_FALLBACK_TRAFFIC_AWARE FallbackRoutingMode = 2 )
func (FallbackRoutingMode) Descriptor ¶
func (FallbackRoutingMode) Descriptor() protoreflect.EnumDescriptor
func (FallbackRoutingMode) Enum ¶
func (x FallbackRoutingMode) Enum() *FallbackRoutingMode
func (FallbackRoutingMode) EnumDescriptor
deprecated
func (FallbackRoutingMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use FallbackRoutingMode.Descriptor instead.
func (FallbackRoutingMode) Number ¶
func (x FallbackRoutingMode) Number() protoreflect.EnumNumber
func (FallbackRoutingMode) String ¶
func (x FallbackRoutingMode) String() string
func (FallbackRoutingMode) Type ¶
func (FallbackRoutingMode) Type() protoreflect.EnumType
type GeocodedWaypoint ¶ added in v0.7.0
type GeocodedWaypoint struct { // Indicates the status code resulting from the geocoding operation. GeocoderStatus *status.Status `protobuf:"bytes,1,opt,name=geocoder_status,json=geocoderStatus,proto3" json:"geocoder_status,omitempty"` // The index of the corresponding intermediate waypoint in the request. // Only populated if the corresponding waypoint is an intermediate // waypoint. IntermediateWaypointRequestIndex *int32 `` /* 168-byte string literal not displayed */ // The type(s) of the result, in the form of zero or more type tags. // Supported types: [Address types and address component // types](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types). Type []string `protobuf:"bytes,3,rep,name=type,proto3" json:"type,omitempty"` // Indicates that the geocoder did not return an exact match for the original // request, though it was able to match part of the requested address. You may // wish to examine the original request for misspellings and/or an incomplete // address. PartialMatch bool `protobuf:"varint,4,opt,name=partial_match,json=partialMatch,proto3" json:"partial_match,omitempty"` // The place ID for this result. PlaceId string `protobuf:"bytes,5,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"` // contains filtered or unexported fields }
Details about the locations used as waypoints. Only populated for address waypoints. Includes details about the geocoding results for the purposes of determining what the address was geocoded to.
func (*GeocodedWaypoint) Descriptor
deprecated
added in
v0.7.0
func (*GeocodedWaypoint) Descriptor() ([]byte, []int)
Deprecated: Use GeocodedWaypoint.ProtoReflect.Descriptor instead.
func (*GeocodedWaypoint) GetGeocoderStatus ¶ added in v0.7.0
func (x *GeocodedWaypoint) GetGeocoderStatus() *status.Status
func (*GeocodedWaypoint) GetIntermediateWaypointRequestIndex ¶ added in v0.7.0
func (x *GeocodedWaypoint) GetIntermediateWaypointRequestIndex() int32
func (*GeocodedWaypoint) GetPartialMatch ¶ added in v0.7.0
func (x *GeocodedWaypoint) GetPartialMatch() bool
func (*GeocodedWaypoint) GetPlaceId ¶ added in v0.7.0
func (x *GeocodedWaypoint) GetPlaceId() string
func (*GeocodedWaypoint) GetType ¶ added in v0.7.0
func (x *GeocodedWaypoint) GetType() []string
func (*GeocodedWaypoint) ProtoMessage ¶ added in v0.7.0
func (*GeocodedWaypoint) ProtoMessage()
func (*GeocodedWaypoint) ProtoReflect ¶ added in v0.7.0
func (x *GeocodedWaypoint) ProtoReflect() protoreflect.Message
func (*GeocodedWaypoint) Reset ¶ added in v0.7.0
func (x *GeocodedWaypoint) Reset()
func (*GeocodedWaypoint) String ¶ added in v0.7.0
func (x *GeocodedWaypoint) String() string
type GeocodingResults ¶ added in v0.7.0
type GeocodingResults struct { // Origin geocoded waypoint. Origin *GeocodedWaypoint `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` // Destination geocoded waypoint. Destination *GeocodedWaypoint `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // A list of intermediate geocoded waypoints each containing an index field // that corresponds to the zero-based position of the waypoint in the order // they were specified in the request. Intermediates []*GeocodedWaypoint `protobuf:"bytes,3,rep,name=intermediates,proto3" json:"intermediates,omitempty"` // contains filtered or unexported fields }
Contains [`GeocodedWaypoints`][google.maps.routing.v2.GeocodedWaypoint] for origin, destination and intermediate waypoints. Only populated for address waypoints.
func (*GeocodingResults) Descriptor
deprecated
added in
v0.7.0
func (*GeocodingResults) Descriptor() ([]byte, []int)
Deprecated: Use GeocodingResults.ProtoReflect.Descriptor instead.
func (*GeocodingResults) GetDestination ¶ added in v0.7.0
func (x *GeocodingResults) GetDestination() *GeocodedWaypoint
func (*GeocodingResults) GetIntermediates ¶ added in v0.7.0
func (x *GeocodingResults) GetIntermediates() []*GeocodedWaypoint
func (*GeocodingResults) GetOrigin ¶ added in v0.7.0
func (x *GeocodingResults) GetOrigin() *GeocodedWaypoint
func (*GeocodingResults) ProtoMessage ¶ added in v0.7.0
func (*GeocodingResults) ProtoMessage()
func (*GeocodingResults) ProtoReflect ¶ added in v0.7.0
func (x *GeocodingResults) ProtoReflect() protoreflect.Message
func (*GeocodingResults) Reset ¶ added in v0.7.0
func (x *GeocodingResults) Reset()
func (*GeocodingResults) String ¶ added in v0.7.0
func (x *GeocodingResults) String() string
type LocalizedTime ¶ added in v1.3.0
type LocalizedTime struct { // The time specified as a string in a given time zone. Time *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // Contains the time zone. The value is the name of the time zone as defined // in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g. // "America/New_York". TimeZone string `protobuf:"bytes,2,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` // contains filtered or unexported fields }
Localized description of time.
func (*LocalizedTime) Descriptor
deprecated
added in
v1.3.0
func (*LocalizedTime) Descriptor() ([]byte, []int)
Deprecated: Use LocalizedTime.ProtoReflect.Descriptor instead.
func (*LocalizedTime) GetTime ¶ added in v1.3.0
func (x *LocalizedTime) GetTime() *localized_text.LocalizedText
func (*LocalizedTime) GetTimeZone ¶ added in v1.3.0
func (x *LocalizedTime) GetTimeZone() string
func (*LocalizedTime) ProtoMessage ¶ added in v1.3.0
func (*LocalizedTime) ProtoMessage()
func (*LocalizedTime) ProtoReflect ¶ added in v1.3.0
func (x *LocalizedTime) ProtoReflect() protoreflect.Message
func (*LocalizedTime) Reset ¶ added in v1.3.0
func (x *LocalizedTime) Reset()
func (*LocalizedTime) String ¶ added in v1.3.0
func (x *LocalizedTime) String() 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 specifies the side of the road 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, and so on. You can use this field only for // `DRIVE` and `TWO_WHEELER` // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. 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) GetHeading ¶
func (x *Location) GetHeading() *wrapperspb.Int32Value
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type Maneuver ¶
type Maneuver int32
A set of values that specify the navigation action to take for the current step (for example, turn left, merge, or straight).
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 // Initial maneuver. Maneuver_DEPART Maneuver = 19 // Used to indicate a street name change. Maneuver_NAME_CHANGE Maneuver = 20 )
func (Maneuver) Descriptor ¶
func (Maneuver) Descriptor() protoreflect.EnumDescriptor
func (Maneuver) EnumDescriptor
deprecated
func (Maneuver) Number ¶
func (x Maneuver) Number() protoreflect.EnumNumber
func (Maneuver) Type ¶
func (Maneuver) Type() protoreflect.EnumType
type NavigationInstruction ¶
type NavigationInstruction struct { // turn left, merge, or straight). This field determines which icon to // display. Maneuver Maneuver `protobuf:"varint,1,opt,name=maneuver,proto3,enum=google.maps.routing.v2.Maneuver" json:"maneuver,omitempty"` Instructions string `protobuf:"bytes,2,opt,name=instructions,proto3" json:"instructions,omitempty"` // contains filtered or unexported fields }
Encapsulates navigation instructions for a [`RouteLegStep`][google.maps.routing.v2.RouteLegStep].
func (*NavigationInstruction) Descriptor
deprecated
func (*NavigationInstruction) Descriptor() ([]byte, []int)
Deprecated: Use NavigationInstruction.ProtoReflect.Descriptor instead.
func (*NavigationInstruction) GetInstructions ¶
func (x *NavigationInstruction) GetInstructions() string
func (*NavigationInstruction) GetManeuver ¶
func (x *NavigationInstruction) GetManeuver() Maneuver
func (*NavigationInstruction) ProtoMessage ¶
func (*NavigationInstruction) ProtoMessage()
func (*NavigationInstruction) ProtoReflect ¶
func (x *NavigationInstruction) ProtoReflect() protoreflect.Message
func (*NavigationInstruction) Reset ¶
func (x *NavigationInstruction) Reset()
func (*NavigationInstruction) String ¶
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) GetEncodedPolyline ¶
func (*Polyline) GetGeoJsonLinestring ¶
func (*Polyline) GetPolylineType ¶
func (m *Polyline) GetPolylineType() isPolyline_PolylineType
func (*Polyline) ProtoMessage ¶
func (*Polyline) ProtoMessage()
func (*Polyline) ProtoReflect ¶
func (x *Polyline) ProtoReflect() protoreflect.Message
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](/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) Descriptor() protoreflect.EnumDescriptor
func (PolylineEncoding) Enum ¶
func (x PolylineEncoding) Enum() *PolylineEncoding
func (PolylineEncoding) EnumDescriptor
deprecated
func (PolylineEncoding) EnumDescriptor() ([]byte, []int)
Deprecated: Use PolylineEncoding.Descriptor instead.
func (PolylineEncoding) Number ¶
func (x PolylineEncoding) Number() protoreflect.EnumNumber
func (PolylineEncoding) String ¶
func (x PolylineEncoding) String() string
func (PolylineEncoding) Type ¶
func (PolylineEncoding) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x PolylineQuality) Number() protoreflect.EnumNumber
func (PolylineQuality) String ¶
func (x PolylineQuality) String() string
func (PolylineQuality) Type ¶
func (PolylineQuality) Type() protoreflect.EnumType
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 { // Labels for the `Route` that are useful to identify specific properties // of the route to compare against others. RouteLabels []RouteLabel `` /* 142-byte string literal not displayed */ // A collection of legs (path segments between waypoints) that make up the // route. Each leg corresponds to the trip between two non-`via` // [`Waypoints`][google.maps.routing.v2.Waypoint]. 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 travel 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 is 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 you set // [`optimize_waypoint_order`][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] // to true, this field contains the optimized ordering of intermediate // waypoints. Otherwise, this field is empty. // For example, if you give an input of Origin: LA; Intermediate waypoints: // 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 provided in the input. OptimizedIntermediateWaypointIndex []int32 `` /* 176-byte string literal not displayed */ // Text representations of properties of the `Route`. LocalizedValues *Route_RouteLocalizedValues `protobuf:"bytes,11,opt,name=localized_values,json=localizedValues,proto3" json:"localized_values,omitempty"` // A web-safe, base64-encoded route token that can be passed to the Navigation // SDK, that allows the Navigation SDK to reconstruct the route during // navigation, and, in the event of rerouting, honor the original intention // when you created the route by calling ComputeRoutes. Customers should treat // this token as an opaque blob. It is not meant for reading or mutating. // NOTE: `Route.route_token` is only available for requests that have set // `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or // `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests // that have Via waypoints. RouteToken string `protobuf:"bytes,12,opt,name=route_token,json=routeToken,proto3" json:"route_token,omitempty"` // contains filtered or unexported fields }
Contains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.
func (*Route) Descriptor
deprecated
func (*Route) GetDescription ¶
func (*Route) GetDistanceMeters ¶
func (*Route) GetDuration ¶
func (x *Route) GetDuration() *durationpb.Duration
func (*Route) GetLocalizedValues ¶ added in v1.3.0
func (x *Route) GetLocalizedValues() *Route_RouteLocalizedValues
func (*Route) GetOptimizedIntermediateWaypointIndex ¶ added in v1.3.0
func (*Route) GetPolyline ¶
func (*Route) GetRouteLabels ¶
func (x *Route) GetRouteLabels() []RouteLabel
func (*Route) GetRouteToken ¶
func (*Route) GetStaticDuration ¶
func (x *Route) GetStaticDuration() *durationpb.Duration
func (*Route) GetTravelAdvisory ¶
func (x *Route) GetTravelAdvisory() *RouteTravelAdvisory
func (*Route) GetViewport ¶
func (*Route) GetWarnings ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type RouteLabel ¶
type RouteLabel int32
Labels for the [`Route`][google.maps.routing.v2.Route] that are useful to identify specific properties of the route to compare against others.
const ( // Default - not used. RouteLabel_ROUTE_LABEL_UNSPECIFIED RouteLabel = 0 // The default "best" route returned for the route computation. RouteLabel_DEFAULT_ROUTE RouteLabel = 1 // An alternative to the default "best" route. Routes like this will be // returned when // [`compute_alternative_routes`][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes] // is specified. RouteLabel_DEFAULT_ROUTE_ALTERNATE RouteLabel = 2 // Fuel efficient route. Routes labeled with this value are determined to be // optimized for Eco parameters such as fuel consumption. RouteLabel_FUEL_EFFICIENT RouteLabel = 3 )
func (RouteLabel) Descriptor ¶
func (RouteLabel) Descriptor() protoreflect.EnumDescriptor
func (RouteLabel) Enum ¶
func (x RouteLabel) Enum() *RouteLabel
func (RouteLabel) EnumDescriptor
deprecated
func (RouteLabel) EnumDescriptor() ([]byte, []int)
Deprecated: Use RouteLabel.Descriptor instead.
func (RouteLabel) Number ¶
func (x RouteLabel) Number() protoreflect.EnumNumber
func (RouteLabel) String ¶
func (x RouteLabel) String() string
func (RouteLabel) Type ¶
func (RouteLabel) Type() protoreflect.EnumType
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 travel 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 that includes each `step`'s // polyline. Polyline *Polyline `protobuf:"bytes,4,opt,name=polyline,proto3" json:"polyline,omitempty"` // The start location of this leg. This location 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 location 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"` // Contains the additional information that the user should be informed // about, such as possible traffic zone restrictions, on a route leg. TravelAdvisory *RouteLegTravelAdvisory `protobuf:"bytes,8,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"` // Text representations of properties of the `RouteLeg`. LocalizedValues *RouteLeg_RouteLegLocalizedValues `protobuf:"bytes,9,opt,name=localized_values,json=localizedValues,proto3" json:"localized_values,omitempty"` // Overview information about the steps in this `RouteLeg`. This field is only // populated for TRANSIT routes. StepsOverview *RouteLeg_StepsOverview `protobuf:"bytes,10,opt,name=steps_overview,json=stepsOverview,proto3" json:"steps_overview,omitempty"` // contains filtered or unexported fields }
Contains a segment between non-`via` waypoints.
func (*RouteLeg) Descriptor
deprecated
func (*RouteLeg) GetDistanceMeters ¶
func (*RouteLeg) GetDuration ¶
func (x *RouteLeg) GetDuration() *durationpb.Duration
func (*RouteLeg) GetEndLocation ¶
func (*RouteLeg) GetLocalizedValues ¶ added in v1.3.0
func (x *RouteLeg) GetLocalizedValues() *RouteLeg_RouteLegLocalizedValues
func (*RouteLeg) GetPolyline ¶
func (*RouteLeg) GetStartLocation ¶
func (*RouteLeg) GetStaticDuration ¶
func (x *RouteLeg) GetStaticDuration() *durationpb.Duration
func (*RouteLeg) GetSteps ¶
func (x *RouteLeg) GetSteps() []*RouteLegStep
func (*RouteLeg) GetStepsOverview ¶ added in v1.3.0
func (x *RouteLeg) GetStepsOverview() *RouteLeg_StepsOverview
func (*RouteLeg) GetTravelAdvisory ¶
func (x *RouteLeg) GetTravelAdvisory() *RouteLegTravelAdvisory
func (*RouteLeg) ProtoMessage ¶
func (*RouteLeg) ProtoMessage()
func (*RouteLeg) ProtoReflect ¶
func (x *RouteLeg) ProtoReflect() protoreflect.Message
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"` NavigationInstruction *NavigationInstruction `protobuf:"bytes,6,opt,name=navigation_instruction,json=navigationInstruction,proto3" json:"navigation_instruction,omitempty"` // Contains the additional information that the user should be informed // about, such as possible traffic zone restrictions, on a leg step. TravelAdvisory *RouteLegStepTravelAdvisory `protobuf:"bytes,7,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"` // Text representations of properties of the `RouteLegStep`. LocalizedValues *RouteLegStep_RouteLegStepLocalizedValues `protobuf:"bytes,8,opt,name=localized_values,json=localizedValues,proto3" json:"localized_values,omitempty"` // Details pertaining to this step if the travel mode is `TRANSIT`. TransitDetails *RouteLegStepTransitDetails `protobuf:"bytes,9,opt,name=transit_details,json=transitDetails,proto3" json:"transit_details,omitempty"` // The travel mode used for this step. TravelMode RouteTravelMode `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
Contains a segment of a [`RouteLeg`][google.maps.routing.v2.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) GetLocalizedValues ¶ added in v1.3.0
func (x *RouteLegStep) GetLocalizedValues() *RouteLegStep_RouteLegStepLocalizedValues
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) GetTransitDetails ¶ added in v1.3.0
func (x *RouteLegStep) GetTransitDetails() *RouteLegStepTransitDetails
func (*RouteLegStep) GetTravelAdvisory ¶
func (x *RouteLegStep) GetTravelAdvisory() *RouteLegStepTravelAdvisory
func (*RouteLegStep) GetTravelMode ¶ added in v1.3.0
func (x *RouteLegStep) GetTravelMode() RouteTravelMode
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 RouteLegStepTransitDetails ¶ added in v1.3.0
type RouteLegStepTransitDetails struct { // Information about the arrival and departure stops for the step. StopDetails *RouteLegStepTransitDetails_TransitStopDetails `protobuf:"bytes,1,opt,name=stop_details,json=stopDetails,proto3" json:"stop_details,omitempty"` // Text representations of properties of the `RouteLegStepTransitDetails`. LocalizedValues *RouteLegStepTransitDetails_TransitDetailsLocalizedValues `protobuf:"bytes,2,opt,name=localized_values,json=localizedValues,proto3" json:"localized_values,omitempty"` // Specifies the direction in which to travel on this line as marked on // the vehicle or at the departure stop. The direction is often the terminus // station. Headsign string `protobuf:"bytes,3,opt,name=headsign,proto3" json:"headsign,omitempty"` // Specifies the expected time as a duration between departures from the same // stop at this time. For example, with a headway seconds value of 600, you // would expect a ten minute wait if you should miss your bus. Headway *durationpb.Duration `protobuf:"bytes,4,opt,name=headway,proto3" json:"headway,omitempty"` // Information about the transit line used in this step. TransitLine *TransitLine `protobuf:"bytes,5,opt,name=transit_line,json=transitLine,proto3" json:"transit_line,omitempty"` // The number of stops from the departure to the arrival stop. This count // includes the arrival stop, but excludes the departure stop. For example, if // your route leaves from Stop A, passes through stops B and C, and arrives at // stop D, stop_count will return 3. StopCount int32 `protobuf:"varint,6,opt,name=stop_count,json=stopCount,proto3" json:"stop_count,omitempty"` // The text that appears in schedules and sign boards to identify a transit // trip to passengers. The text should uniquely identify a trip within a // service day. For example, "538" is the `trip_short_text` of the Amtrak // train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA. TripShortText string `protobuf:"bytes,7,opt,name=trip_short_text,json=tripShortText,proto3" json:"trip_short_text,omitempty"` // contains filtered or unexported fields }
Additional information for the `RouteLegStep` related to `TRANSIT` routes.
func (*RouteLegStepTransitDetails) Descriptor
deprecated
added in
v1.3.0
func (*RouteLegStepTransitDetails) Descriptor() ([]byte, []int)
Deprecated: Use RouteLegStepTransitDetails.ProtoReflect.Descriptor instead.
func (*RouteLegStepTransitDetails) GetHeadsign ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetHeadsign() string
func (*RouteLegStepTransitDetails) GetHeadway ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetHeadway() *durationpb.Duration
func (*RouteLegStepTransitDetails) GetLocalizedValues ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetLocalizedValues() *RouteLegStepTransitDetails_TransitDetailsLocalizedValues
func (*RouteLegStepTransitDetails) GetStopCount ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetStopCount() int32
func (*RouteLegStepTransitDetails) GetStopDetails ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetStopDetails() *RouteLegStepTransitDetails_TransitStopDetails
func (*RouteLegStepTransitDetails) GetTransitLine ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetTransitLine() *TransitLine
func (*RouteLegStepTransitDetails) GetTripShortText ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) GetTripShortText() string
func (*RouteLegStepTransitDetails) ProtoMessage ¶ added in v1.3.0
func (*RouteLegStepTransitDetails) ProtoMessage()
func (*RouteLegStepTransitDetails) ProtoReflect ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) ProtoReflect() protoreflect.Message
func (*RouteLegStepTransitDetails) Reset ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) Reset()
func (*RouteLegStepTransitDetails) String ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails) String() string
type RouteLegStepTransitDetails_TransitDetailsLocalizedValues ¶ added in v1.3.0
type RouteLegStepTransitDetails_TransitDetailsLocalizedValues struct { // Time in its formatted text representation with a corresponding time zone. ArrivalTime *LocalizedTime `protobuf:"bytes,1,opt,name=arrival_time,json=arrivalTime,proto3" json:"arrival_time,omitempty"` // Time in its formatted text representation with a corresponding time zone. DepartureTime *LocalizedTime `protobuf:"bytes,2,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"` // contains filtered or unexported fields }
Localized descriptions of values for `RouteTransitDetails`.
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) Descriptor
deprecated
added in
v1.3.0
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) Descriptor() ([]byte, []int)
Deprecated: Use RouteLegStepTransitDetails_TransitDetailsLocalizedValues.ProtoReflect.Descriptor instead.
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) GetArrivalTime ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) GetArrivalTime() *LocalizedTime
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) GetDepartureTime ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) GetDepartureTime() *LocalizedTime
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) ProtoMessage ¶ added in v1.3.0
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) ProtoMessage()
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) ProtoReflect ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) ProtoReflect() protoreflect.Message
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) Reset ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) Reset()
func (*RouteLegStepTransitDetails_TransitDetailsLocalizedValues) String ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitDetailsLocalizedValues) String() string
type RouteLegStepTransitDetails_TransitStopDetails ¶ added in v1.3.0
type RouteLegStepTransitDetails_TransitStopDetails struct { // Information about the arrival stop for the step. ArrivalStop *TransitStop `protobuf:"bytes,1,opt,name=arrival_stop,json=arrivalStop,proto3" json:"arrival_stop,omitempty"` // The estimated time of arrival for the step. ArrivalTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=arrival_time,json=arrivalTime,proto3" json:"arrival_time,omitempty"` // Information about the departure stop for the step. DepartureStop *TransitStop `protobuf:"bytes,3,opt,name=departure_stop,json=departureStop,proto3" json:"departure_stop,omitempty"` // The estimated time of departure for the step. DepartureTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"` // contains filtered or unexported fields }
Details about the transit stops for the `RouteLegStep`.
func (*RouteLegStepTransitDetails_TransitStopDetails) Descriptor
deprecated
added in
v1.3.0
func (*RouteLegStepTransitDetails_TransitStopDetails) Descriptor() ([]byte, []int)
Deprecated: Use RouteLegStepTransitDetails_TransitStopDetails.ProtoReflect.Descriptor instead.
func (*RouteLegStepTransitDetails_TransitStopDetails) GetArrivalStop ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) GetArrivalStop() *TransitStop
func (*RouteLegStepTransitDetails_TransitStopDetails) GetArrivalTime ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) GetArrivalTime() *timestamppb.Timestamp
func (*RouteLegStepTransitDetails_TransitStopDetails) GetDepartureStop ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) GetDepartureStop() *TransitStop
func (*RouteLegStepTransitDetails_TransitStopDetails) GetDepartureTime ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) GetDepartureTime() *timestamppb.Timestamp
func (*RouteLegStepTransitDetails_TransitStopDetails) ProtoMessage ¶ added in v1.3.0
func (*RouteLegStepTransitDetails_TransitStopDetails) ProtoMessage()
func (*RouteLegStepTransitDetails_TransitStopDetails) ProtoReflect ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) ProtoReflect() protoreflect.Message
func (*RouteLegStepTransitDetails_TransitStopDetails) Reset ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) Reset()
func (*RouteLegStepTransitDetails_TransitStopDetails) String ¶ added in v1.3.0
func (x *RouteLegStepTransitDetails_TransitStopDetails) String() string
type RouteLegStepTravelAdvisory ¶
type RouteLegStepTravelAdvisory struct { // NOTE: This field is not currently populated. SpeedReadingIntervals []*SpeedReadingInterval `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions 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 (x *RouteLegStepTravelAdvisory) ProtoReflect() protoreflect.Message
func (*RouteLegStepTravelAdvisory) Reset ¶
func (x *RouteLegStepTravelAdvisory) Reset()
func (*RouteLegStepTravelAdvisory) String ¶
func (x *RouteLegStepTravelAdvisory) String() string
type RouteLegStep_RouteLegStepLocalizedValues ¶ added in v1.3.0
type RouteLegStep_RouteLegStepLocalizedValues struct { // Travel distance represented in text form. Distance *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=distance,proto3" json:"distance,omitempty"` // Duration without taking traffic conditions into // consideration, represented in text form. StaticDuration *localized_text.LocalizedText `protobuf:"bytes,3,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // contains filtered or unexported fields }
Text representations of certain properties.
func (*RouteLegStep_RouteLegStepLocalizedValues) Descriptor
deprecated
added in
v1.3.0
func (*RouteLegStep_RouteLegStepLocalizedValues) Descriptor() ([]byte, []int)
Deprecated: Use RouteLegStep_RouteLegStepLocalizedValues.ProtoReflect.Descriptor instead.
func (*RouteLegStep_RouteLegStepLocalizedValues) GetDistance ¶ added in v1.3.0
func (x *RouteLegStep_RouteLegStepLocalizedValues) GetDistance() *localized_text.LocalizedText
func (*RouteLegStep_RouteLegStepLocalizedValues) GetStaticDuration ¶ added in v1.3.0
func (x *RouteLegStep_RouteLegStepLocalizedValues) GetStaticDuration() *localized_text.LocalizedText
func (*RouteLegStep_RouteLegStepLocalizedValues) ProtoMessage ¶ added in v1.3.0
func (*RouteLegStep_RouteLegStepLocalizedValues) ProtoMessage()
func (*RouteLegStep_RouteLegStepLocalizedValues) ProtoReflect ¶ added in v1.3.0
func (x *RouteLegStep_RouteLegStepLocalizedValues) ProtoReflect() protoreflect.Message
func (*RouteLegStep_RouteLegStepLocalizedValues) Reset ¶ added in v1.3.0
func (x *RouteLegStep_RouteLegStepLocalizedValues) Reset()
func (*RouteLegStep_RouteLegStepLocalizedValues) String ¶ added in v1.3.0
func (x *RouteLegStep_RouteLegStepLocalizedValues) String() string
type RouteLegTravelAdvisory ¶
type RouteLegTravelAdvisory struct { // Contains 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 `RouteLeg` 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 }
Contains the additional information that the user should be informed about on a leg step, such as possible traffic zone restrictions.
func (*RouteLegTravelAdvisory) Descriptor
deprecated
func (*RouteLegTravelAdvisory) Descriptor() ([]byte, []int)
Deprecated: Use RouteLegTravelAdvisory.ProtoReflect.Descriptor instead.
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 RouteLeg_RouteLegLocalizedValues ¶ added in v1.3.0
type RouteLeg_RouteLegLocalizedValues struct { // Travel distance represented in text form. Distance *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=distance,proto3" json:"distance,omitempty"` // Duration taking traffic conditions into consideration represented in text // form. Note: If you did not request traffic information, this value will // be the same value as static_duration. Duration *localized_text.LocalizedText `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // Duration without taking traffic conditions into // consideration, represented in text form. StaticDuration *localized_text.LocalizedText `protobuf:"bytes,3,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // contains filtered or unexported fields }
Text representations of certain properties.
func (*RouteLeg_RouteLegLocalizedValues) Descriptor
deprecated
added in
v1.3.0
func (*RouteLeg_RouteLegLocalizedValues) Descriptor() ([]byte, []int)
Deprecated: Use RouteLeg_RouteLegLocalizedValues.ProtoReflect.Descriptor instead.
func (*RouteLeg_RouteLegLocalizedValues) GetDistance ¶ added in v1.3.0
func (x *RouteLeg_RouteLegLocalizedValues) GetDistance() *localized_text.LocalizedText
func (*RouteLeg_RouteLegLocalizedValues) GetDuration ¶ added in v1.3.0
func (x *RouteLeg_RouteLegLocalizedValues) GetDuration() *localized_text.LocalizedText
func (*RouteLeg_RouteLegLocalizedValues) GetStaticDuration ¶ added in v1.3.0
func (x *RouteLeg_RouteLegLocalizedValues) GetStaticDuration() *localized_text.LocalizedText
func (*RouteLeg_RouteLegLocalizedValues) ProtoMessage ¶ added in v1.3.0
func (*RouteLeg_RouteLegLocalizedValues) ProtoMessage()
func (*RouteLeg_RouteLegLocalizedValues) ProtoReflect ¶ added in v1.3.0
func (x *RouteLeg_RouteLegLocalizedValues) ProtoReflect() protoreflect.Message
func (*RouteLeg_RouteLegLocalizedValues) Reset ¶ added in v1.3.0
func (x *RouteLeg_RouteLegLocalizedValues) Reset()
func (*RouteLeg_RouteLegLocalizedValues) String ¶ added in v1.3.0
func (x *RouteLeg_RouteLegLocalizedValues) String() string
type RouteLeg_StepsOverview ¶ added in v1.3.0
type RouteLeg_StepsOverview struct { // Summarized information about different multi-modal segments of // the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does // not contain any multi-modal segments in the steps. MultiModalSegments []*RouteLeg_StepsOverview_MultiModalSegment `protobuf:"bytes,1,rep,name=multi_modal_segments,json=multiModalSegments,proto3" json:"multi_modal_segments,omitempty"` // contains filtered or unexported fields }
Provides overview information about a list of `RouteLegStep`s.
func (*RouteLeg_StepsOverview) Descriptor
deprecated
added in
v1.3.0
func (*RouteLeg_StepsOverview) Descriptor() ([]byte, []int)
Deprecated: Use RouteLeg_StepsOverview.ProtoReflect.Descriptor instead.
func (*RouteLeg_StepsOverview) GetMultiModalSegments ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview) GetMultiModalSegments() []*RouteLeg_StepsOverview_MultiModalSegment
func (*RouteLeg_StepsOverview) ProtoMessage ¶ added in v1.3.0
func (*RouteLeg_StepsOverview) ProtoMessage()
func (*RouteLeg_StepsOverview) ProtoReflect ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview) ProtoReflect() protoreflect.Message
func (*RouteLeg_StepsOverview) Reset ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview) Reset()
func (*RouteLeg_StepsOverview) String ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview) String() string
type RouteLeg_StepsOverview_MultiModalSegment ¶ added in v1.3.0
type RouteLeg_StepsOverview_MultiModalSegment struct { // The corresponding `RouteLegStep` index that is the start of a // multi-modal segment. StepStartIndex *int32 `protobuf:"varint,1,opt,name=step_start_index,json=stepStartIndex,proto3,oneof" json:"step_start_index,omitempty"` // The corresponding `RouteLegStep` index that is the end of a // multi-modal segment. StepEndIndex *int32 `protobuf:"varint,2,opt,name=step_end_index,json=stepEndIndex,proto3,oneof" json:"step_end_index,omitempty"` NavigationInstruction *NavigationInstruction `protobuf:"bytes,3,opt,name=navigation_instruction,json=navigationInstruction,proto3" json:"navigation_instruction,omitempty"` // The travel mode of the multi-modal segment. TravelMode RouteTravelMode `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
Provides summarized information about different multi-modal segments of the `RouteLeg.steps`. A multi-modal segment is defined as one or more contiguous `RouteLegStep` that have the same `RouteTravelMode`. This field is not populated if the `RouteLeg` does not contain any multi-modal segments in the steps.
func (*RouteLeg_StepsOverview_MultiModalSegment) Descriptor
deprecated
added in
v1.3.0
func (*RouteLeg_StepsOverview_MultiModalSegment) Descriptor() ([]byte, []int)
Deprecated: Use RouteLeg_StepsOverview_MultiModalSegment.ProtoReflect.Descriptor instead.
func (*RouteLeg_StepsOverview_MultiModalSegment) GetNavigationInstruction ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) GetNavigationInstruction() *NavigationInstruction
func (*RouteLeg_StepsOverview_MultiModalSegment) GetStepEndIndex ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) GetStepEndIndex() int32
func (*RouteLeg_StepsOverview_MultiModalSegment) GetStepStartIndex ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) GetStepStartIndex() int32
func (*RouteLeg_StepsOverview_MultiModalSegment) GetTravelMode ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) GetTravelMode() RouteTravelMode
func (*RouteLeg_StepsOverview_MultiModalSegment) ProtoMessage ¶ added in v1.3.0
func (*RouteLeg_StepsOverview_MultiModalSegment) ProtoMessage()
func (*RouteLeg_StepsOverview_MultiModalSegment) ProtoReflect ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) ProtoReflect() protoreflect.Message
func (*RouteLeg_StepsOverview_MultiModalSegment) Reset ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) Reset()
func (*RouteLeg_StepsOverview_MultiModalSegment) String ¶ added in v1.3.0
func (x *RouteLeg_StepsOverview_MultiModalSegment) 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,oneof" 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,oneof" 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 `` /* 128-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][google.maps.routing.v2.ComputeRouteMatrixRequest.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"` // Text representations of properties of the `RouteMatrixElement`. LocalizedValues *RouteMatrixElement_LocalizedValues `protobuf:"bytes,10,opt,name=localized_values,json=localizedValues,proto3" json:"localized_values,omitempty"` // contains filtered or unexported fields }
Contains 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 (x *RouteMatrixElement) GetCondition() RouteMatrixElementCondition
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) GetLocalizedValues ¶ added in v1.3.0
func (x *RouteMatrixElement) GetLocalizedValues() *RouteMatrixElement_LocalizedValues
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) Descriptor() protoreflect.EnumDescriptor
func (RouteMatrixElementCondition) Enum ¶
func (x RouteMatrixElementCondition) Enum() *RouteMatrixElementCondition
func (RouteMatrixElementCondition) EnumDescriptor
deprecated
func (RouteMatrixElementCondition) EnumDescriptor() ([]byte, []int)
Deprecated: Use RouteMatrixElementCondition.Descriptor instead.
func (RouteMatrixElementCondition) Number ¶
func (x RouteMatrixElementCondition) Number() protoreflect.EnumNumber
func (RouteMatrixElementCondition) String ¶
func (x RouteMatrixElementCondition) String() string
func (RouteMatrixElementCondition) Type ¶
func (RouteMatrixElementCondition) Type() protoreflect.EnumType
type RouteMatrixElement_LocalizedValues ¶ added in v1.3.0
type RouteMatrixElement_LocalizedValues struct { // Travel distance represented in text form. Distance *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=distance,proto3" json:"distance,omitempty"` // Duration represented in text form taking traffic conditions into // consideration. Note: If traffic information was not requested, this value // is the same value as static_duration. Duration *localized_text.LocalizedText `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // Duration represented in text form without taking traffic conditions into // consideration. StaticDuration *localized_text.LocalizedText `protobuf:"bytes,3,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // Transit fare represented in text form. TransitFare *localized_text.LocalizedText `protobuf:"bytes,4,opt,name=transit_fare,json=transitFare,proto3" json:"transit_fare,omitempty"` // contains filtered or unexported fields }
Text representations of certain properties.
func (*RouteMatrixElement_LocalizedValues) Descriptor
deprecated
added in
v1.3.0
func (*RouteMatrixElement_LocalizedValues) Descriptor() ([]byte, []int)
Deprecated: Use RouteMatrixElement_LocalizedValues.ProtoReflect.Descriptor instead.
func (*RouteMatrixElement_LocalizedValues) GetDistance ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) GetDistance() *localized_text.LocalizedText
func (*RouteMatrixElement_LocalizedValues) GetDuration ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) GetDuration() *localized_text.LocalizedText
func (*RouteMatrixElement_LocalizedValues) GetStaticDuration ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) GetStaticDuration() *localized_text.LocalizedText
func (*RouteMatrixElement_LocalizedValues) GetTransitFare ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) GetTransitFare() *localized_text.LocalizedText
func (*RouteMatrixElement_LocalizedValues) ProtoMessage ¶ added in v1.3.0
func (*RouteMatrixElement_LocalizedValues) ProtoMessage()
func (*RouteMatrixElement_LocalizedValues) ProtoReflect ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) ProtoReflect() protoreflect.Message
func (*RouteMatrixElement_LocalizedValues) Reset ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) Reset()
func (*RouteMatrixElement_LocalizedValues) String ¶ added in v1.3.0
func (x *RouteMatrixElement_LocalizedValues) String() string
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 { // When set to true, avoids toll roads where reasonable, giving preference to // routes not containing toll roads. Applies only to the `DRIVE` and // `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. AvoidTolls bool `protobuf:"varint,1,opt,name=avoid_tolls,json=avoidTolls,proto3" json:"avoid_tolls,omitempty"` // When set to true, avoids highways where reasonable, giving preference to // routes not containing highways. Applies only to the `DRIVE` and // `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. AvoidHighways bool `protobuf:"varint,2,opt,name=avoid_highways,json=avoidHighways,proto3" json:"avoid_highways,omitempty"` // When set to true, avoids ferries where reasonable, giving preference to // routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER` // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. AvoidFerries bool `protobuf:"varint,3,opt,name=avoid_ferries,json=avoidFerries,proto3" json:"avoid_ferries,omitempty"` // When set to true, avoids navigating indoors where reasonable, giving // preference to routes not containing indoor navigation. Applies only to the // `WALK` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. 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` // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. TollPasses []TollPass `` /* 136-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 RouteTravelAdvisory ¶
type RouteTravelAdvisory struct { // Contains information about tolls on the route. This field is only populated // if tolls are expected on the route. If this field is set, but the // `estimatedPrice` subfield is not populated, then the route contains tolls, // but the estimated price is unknown. If this field is not set, then there // are no tolls expected 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 */ // The predicted fuel consumption in microliters. FuelConsumptionMicroliters int64 `` /* 142-byte string literal not displayed */ // Returned route may have restrictions that are not suitable for requested // travel mode or route modifiers. RouteRestrictionsPartiallyIgnored bool `` /* 165-byte string literal not displayed */ // If present, contains the total fare or ticket costs on this route // This property is only returned for `TRANSIT` requests and only // for routes where fare information is available for all transit steps. TransitFare *money.Money `protobuf:"bytes,7,opt,name=transit_fare,json=transitFare,proto3" json:"transit_fare,omitempty"` // contains filtered or unexported fields }
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.
func (*RouteTravelAdvisory) Descriptor
deprecated
func (*RouteTravelAdvisory) Descriptor() ([]byte, []int)
Deprecated: Use RouteTravelAdvisory.ProtoReflect.Descriptor instead.
func (*RouteTravelAdvisory) GetFuelConsumptionMicroliters ¶
func (x *RouteTravelAdvisory) GetFuelConsumptionMicroliters() int64
func (*RouteTravelAdvisory) GetRouteRestrictionsPartiallyIgnored ¶ added in v1.3.0
func (x *RouteTravelAdvisory) GetRouteRestrictionsPartiallyIgnored() bool
func (*RouteTravelAdvisory) GetSpeedReadingIntervals ¶
func (x *RouteTravelAdvisory) GetSpeedReadingIntervals() []*SpeedReadingInterval
func (*RouteTravelAdvisory) GetTollInfo ¶
func (x *RouteTravelAdvisory) GetTollInfo() *TollInfo
func (*RouteTravelAdvisory) GetTransitFare ¶ added in v1.3.0
func (x *RouteTravelAdvisory) GetTransitFare() *money.Money
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. NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.
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 public transit routes, where available. RouteTravelMode_TRANSIT RouteTravelMode = 7 )
func (RouteTravelMode) Descriptor ¶
func (RouteTravelMode) Descriptor() protoreflect.EnumDescriptor
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 (x RouteTravelMode) Number() protoreflect.EnumNumber
func (RouteTravelMode) String ¶
func (x RouteTravelMode) String() string
func (RouteTravelMode) Type ¶
func (RouteTravelMode) Type() protoreflect.EnumType
type Route_RouteLocalizedValues ¶ added in v1.3.0
type Route_RouteLocalizedValues struct { // Travel distance represented in text form. Distance *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=distance,proto3" json:"distance,omitempty"` // Duration taking traffic conditions into consideration, represented in // text form. Note: If you did not request traffic information, this value // will be the same value as `static_duration`. Duration *localized_text.LocalizedText `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // Duration without taking traffic conditions into consideration, // represented in text form. StaticDuration *localized_text.LocalizedText `protobuf:"bytes,3,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // Transit fare represented in text form. TransitFare *localized_text.LocalizedText `protobuf:"bytes,4,opt,name=transit_fare,json=transitFare,proto3" json:"transit_fare,omitempty"` // contains filtered or unexported fields }
Text representations of certain properties.
func (*Route_RouteLocalizedValues) Descriptor
deprecated
added in
v1.3.0
func (*Route_RouteLocalizedValues) Descriptor() ([]byte, []int)
Deprecated: Use Route_RouteLocalizedValues.ProtoReflect.Descriptor instead.
func (*Route_RouteLocalizedValues) GetDistance ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) GetDistance() *localized_text.LocalizedText
func (*Route_RouteLocalizedValues) GetDuration ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) GetDuration() *localized_text.LocalizedText
func (*Route_RouteLocalizedValues) GetStaticDuration ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) GetStaticDuration() *localized_text.LocalizedText
func (*Route_RouteLocalizedValues) GetTransitFare ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) GetTransitFare() *localized_text.LocalizedText
func (*Route_RouteLocalizedValues) ProtoMessage ¶ added in v1.3.0
func (*Route_RouteLocalizedValues) ProtoMessage()
func (*Route_RouteLocalizedValues) ProtoReflect ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) ProtoReflect() protoreflect.Message
func (*Route_RouteLocalizedValues) Reset ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) Reset()
func (*Route_RouteLocalizedValues) String ¶ added in v1.3.0
func (x *Route_RouteLocalizedValues) String() string
type RoutesClient ¶
type RoutesClient 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) (Routes_ComputeRouteMatrixClient, error) }
RoutesClient is the client API for Routes service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRoutesClient ¶
func NewRoutesClient(cc grpc.ClientConnInterface) RoutesClient
type RoutesServer ¶
type RoutesServer 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, Routes_ComputeRouteMatrixServer) error }
RoutesServer is the server API for Routes service.
type Routes_ComputeRouteMatrixClient ¶
type Routes_ComputeRouteMatrixClient interface { Recv() (*RouteMatrixElement, error) grpc.ClientStream }
type Routes_ComputeRouteMatrixServer ¶
type Routes_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_UNAWARE`. RoutingPreference_ROUTING_PREFERENCE_UNSPECIFIED RoutingPreference = 0 // Computes routes without taking live traffic conditions into consideration. // Suitable when traffic conditions don't matter or are not applicable. // Using this value produces the lowest latency. // Note: For [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] // `DRIVE` and `TWO_WHEELER`, the route and duration chosen are based on road // network and average time-independent traffic conditions, not current road // conditions. Consequently, routes may include roads that are temporarily // closed. Results for a given // request may vary over time due to changes in the road network, updated // average traffic conditions, and the distributed nature of the service. // Results may also vary between nearly-equivalent routes at any time or // frequency. RoutingPreference_TRAFFIC_UNAWARE RoutingPreference = 1 // Calculates routes taking live 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 live 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) Descriptor() protoreflect.EnumDescriptor
func (RoutingPreference) Enum ¶
func (x RoutingPreference) Enum() *RoutingPreference
func (RoutingPreference) EnumDescriptor
deprecated
func (RoutingPreference) EnumDescriptor() ([]byte, []int)
Deprecated: Use RoutingPreference.Descriptor instead.
func (RoutingPreference) Number ¶
func (x RoutingPreference) Number() protoreflect.EnumNumber
func (RoutingPreference) String ¶
func (x RoutingPreference) String() string
func (RoutingPreference) Type ¶
func (RoutingPreference) Type() protoreflect.EnumType
type SpeedReadingInterval ¶
type SpeedReadingInterval struct { // The starting index of this interval in the polyline. StartPolylinePointIndex *int32 `` /* 141-byte string literal not displayed */ // The ending index of this interval in the polyline. EndPolylinePointIndex *int32 `` /* 135-byte string literal not displayed */ // Types that are assignable to SpeedType: // // *SpeedReadingInterval_Speed_ SpeedType isSpeedReadingInterval_SpeedType `protobuf_oneof:"speed_type"` // 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 (x *SpeedReadingInterval) GetSpeed() SpeedReadingInterval_Speed
func (*SpeedReadingInterval) GetSpeedType ¶ added in v0.7.0
func (m *SpeedReadingInterval) GetSpeedType() isSpeedReadingInterval_SpeedType
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) Descriptor() protoreflect.EnumDescriptor
func (SpeedReadingInterval_Speed) Enum ¶
func (x SpeedReadingInterval_Speed) Enum() *SpeedReadingInterval_Speed
func (SpeedReadingInterval_Speed) EnumDescriptor
deprecated
func (SpeedReadingInterval_Speed) EnumDescriptor() ([]byte, []int)
Deprecated: Use SpeedReadingInterval_Speed.Descriptor instead.
func (SpeedReadingInterval_Speed) Number ¶
func (x SpeedReadingInterval_Speed) Number() protoreflect.EnumNumber
func (SpeedReadingInterval_Speed) String ¶
func (x SpeedReadingInterval_Speed) String() string
func (SpeedReadingInterval_Speed) Type ¶
func (SpeedReadingInterval_Speed) Type() protoreflect.EnumType
type SpeedReadingInterval_Speed_ ¶ added in v0.7.0
type SpeedReadingInterval_Speed_ struct { // Traffic speed in this interval. Speed SpeedReadingInterval_Speed `protobuf:"varint,3,opt,name=speed,proto3,enum=google.maps.routing.v2.SpeedReadingInterval_Speed,oneof"` }
type TollInfo ¶
type TollInfo struct { // The monetary amount of tolls for the corresponding // [`Route`][google.maps.routing.v2.Route] or // [`RouteLeg`][google.maps.routing.v2.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`][google.maps.routing.v2.Route] or on a [`RouteLeg`][google.maps.routing.v2.RouteLeg].
func (*TollInfo) Descriptor
deprecated
func (*TollInfo) GetEstimatedPrice ¶
func (*TollInfo) ProtoMessage ¶
func (*TollInfo) ProtoMessage()
func (*TollInfo) ProtoReflect ¶
func (x *TollInfo) ProtoReflect() protoreflect.Message
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 // Sydney toll pass. See additional details at // https://www.myetoll.com.au. TollPass_AU_ETOLL_TAG TollPass = 82 // Sydney toll pass. See additional details at 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 // Japan // ETC. Electronic wireless system to collect tolls. // https://www.go-etc.jp/ TollPass_JP_ETC TollPass = 98 // Japan // ETC2.0. New version of ETC with further discount and bidirectional // communication between devices on vehicles and antennas on the road. // https://www.go-etc.jp/etc2/index.html TollPass_JP_ETC2 TollPass = 99 // Mexico toll pass. // https://iave.capufe.gob.mx/#/ TollPass_MX_IAVE TollPass = 90 // Mexico // https://www.pase.com.mx TollPass_MX_PASE TollPass = 91 // Mexico // // https://operadoravial.com/quick-pass/ TollPass_MX_QUICKPASS TollPass = 93 // http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf TollPass_MX_SISTEMA_TELEPEAJE_CHIHUAHUA TollPass = 89 // Mexico 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 company. One of many operating in Mexico City. // https://www.televia.com.mx TollPass_MX_TELEVIA TollPass = 92 // 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_BCPASS TollPass = 94 // MI, USA. TollPass_US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG TollPass = 37 // MI, USA. // Deprecated as this pass type no longer exists. // // Deprecated: Marked as deprecated in google/maps/routing/v2/toll_passes.proto. TollPass_US_MI_IQ_PROX_CARD TollPass = 38 // MI, USA. TollPass_US_MI_IQ_TAG TollPass = 95 // 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_AVI_TAG TollPass = 97 // 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_FUEGO_TAG TollPass = 96 // 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_MOV_PASS TollPass = 100 // WV, USA. TollPass_US_WV_NEWELL_TOLL_BRIDGE_TICKET TollPass = 64 )
func (TollPass) Descriptor ¶
func (TollPass) Descriptor() protoreflect.EnumDescriptor
func (TollPass) EnumDescriptor
deprecated
func (TollPass) Number ¶
func (x TollPass) Number() protoreflect.EnumNumber
func (TollPass) Type ¶
func (TollPass) Type() protoreflect.EnumType
type TrafficModel ¶ added in v1.3.0
type TrafficModel int32
Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the `duration` field in the response, which contains the predicted time in traffic based on historical averages.
const ( // Unused. If specified, will default to `BEST_GUESS`. TrafficModel_TRAFFIC_MODEL_UNSPECIFIED TrafficModel = 0 // Indicates that the returned `duration` should be the best // estimate of travel time given what is known about both historical traffic // conditions and live traffic. Live traffic becomes more important the closer // the `departure_time` is to now. TrafficModel_BEST_GUESS TrafficModel = 1 // Indicates that the returned duration should be longer than the // actual travel time on most days, though occasional days with particularly // bad traffic conditions may exceed this value. TrafficModel_PESSIMISTIC TrafficModel = 2 // Indicates that the returned duration should be shorter than the actual // travel time on most days, though occasional days with particularly good // traffic conditions may be faster than this value. TrafficModel_OPTIMISTIC TrafficModel = 3 )
func (TrafficModel) Descriptor ¶ added in v1.3.0
func (TrafficModel) Descriptor() protoreflect.EnumDescriptor
func (TrafficModel) Enum ¶ added in v1.3.0
func (x TrafficModel) Enum() *TrafficModel
func (TrafficModel) EnumDescriptor
deprecated
added in
v1.3.0
func (TrafficModel) EnumDescriptor() ([]byte, []int)
Deprecated: Use TrafficModel.Descriptor instead.
func (TrafficModel) Number ¶ added in v1.3.0
func (x TrafficModel) Number() protoreflect.EnumNumber
func (TrafficModel) String ¶ added in v1.3.0
func (x TrafficModel) String() string
func (TrafficModel) Type ¶ added in v1.3.0
func (TrafficModel) Type() protoreflect.EnumType
type TransitAgency ¶ added in v1.3.0
type TransitAgency struct { // The name of this transit agency. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The transit agency's locale-specific formatted phone number. PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // The transit agency's URI. Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
A transit agency that operates a transit line.
func (*TransitAgency) Descriptor
deprecated
added in
v1.3.0
func (*TransitAgency) Descriptor() ([]byte, []int)
Deprecated: Use TransitAgency.ProtoReflect.Descriptor instead.
func (*TransitAgency) GetName ¶ added in v1.3.0
func (x *TransitAgency) GetName() string
func (*TransitAgency) GetPhoneNumber ¶ added in v1.3.0
func (x *TransitAgency) GetPhoneNumber() string
func (*TransitAgency) GetUri ¶ added in v1.3.0
func (x *TransitAgency) GetUri() string
func (*TransitAgency) ProtoMessage ¶ added in v1.3.0
func (*TransitAgency) ProtoMessage()
func (*TransitAgency) ProtoReflect ¶ added in v1.3.0
func (x *TransitAgency) ProtoReflect() protoreflect.Message
func (*TransitAgency) Reset ¶ added in v1.3.0
func (x *TransitAgency) Reset()
func (*TransitAgency) String ¶ added in v1.3.0
func (x *TransitAgency) String() string
type TransitLine ¶ added in v1.3.0
type TransitLine struct { // The transit agency (or agencies) that operates this transit line. Agencies []*TransitAgency `protobuf:"bytes,1,rep,name=agencies,proto3" json:"agencies,omitempty"` // The full name of this transit line, For example, "8 Avenue Local". Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // the URI for this transit line as provided by the transit agency. Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // The color commonly used in signage for this line. Represented in // hexadecimal. Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` // The URI for the icon associated with this line. IconUri string `protobuf:"bytes,5,opt,name=icon_uri,json=iconUri,proto3" json:"icon_uri,omitempty"` // The short name of this transit line. This name will normally be a line // number, such as "M7" or "355". NameShort string `protobuf:"bytes,6,opt,name=name_short,json=nameShort,proto3" json:"name_short,omitempty"` // The color commonly used in text on signage for this line. Represented in // hexadecimal. TextColor string `protobuf:"bytes,7,opt,name=text_color,json=textColor,proto3" json:"text_color,omitempty"` // The type of vehicle that operates on this transit line. Vehicle *TransitVehicle `protobuf:"bytes,8,opt,name=vehicle,proto3" json:"vehicle,omitempty"` // contains filtered or unexported fields }
Contains information about the transit line used in this step.
func (*TransitLine) Descriptor
deprecated
added in
v1.3.0
func (*TransitLine) Descriptor() ([]byte, []int)
Deprecated: Use TransitLine.ProtoReflect.Descriptor instead.
func (*TransitLine) GetAgencies ¶ added in v1.3.0
func (x *TransitLine) GetAgencies() []*TransitAgency
func (*TransitLine) GetColor ¶ added in v1.3.0
func (x *TransitLine) GetColor() string
func (*TransitLine) GetIconUri ¶ added in v1.3.0
func (x *TransitLine) GetIconUri() string
func (*TransitLine) GetName ¶ added in v1.3.0
func (x *TransitLine) GetName() string
func (*TransitLine) GetNameShort ¶ added in v1.3.0
func (x *TransitLine) GetNameShort() string
func (*TransitLine) GetTextColor ¶ added in v1.3.0
func (x *TransitLine) GetTextColor() string
func (*TransitLine) GetUri ¶ added in v1.3.0
func (x *TransitLine) GetUri() string
func (*TransitLine) GetVehicle ¶ added in v1.3.0
func (x *TransitLine) GetVehicle() *TransitVehicle
func (*TransitLine) ProtoMessage ¶ added in v1.3.0
func (*TransitLine) ProtoMessage()
func (*TransitLine) ProtoReflect ¶ added in v1.3.0
func (x *TransitLine) ProtoReflect() protoreflect.Message
func (*TransitLine) Reset ¶ added in v1.3.0
func (x *TransitLine) Reset()
func (*TransitLine) String ¶ added in v1.3.0
func (x *TransitLine) String() string
type TransitPreferences ¶ added in v1.3.0
type TransitPreferences struct { // A set of travel modes to use when getting a `TRANSIT` route. Defaults to // all supported modes of travel. AllowedTravelModes []TransitPreferences_TransitTravelMode `` /* 190-byte string literal not displayed */ // A routing preference that, when specified, influences the `TRANSIT` route // returned. RoutingPreference TransitPreferences_TransitRoutingPreference `` /* 185-byte string literal not displayed */ // contains filtered or unexported fields }
Preferences for `TRANSIT` based routes that influence the route that is returned.
func (*TransitPreferences) Descriptor
deprecated
added in
v1.3.0
func (*TransitPreferences) Descriptor() ([]byte, []int)
Deprecated: Use TransitPreferences.ProtoReflect.Descriptor instead.
func (*TransitPreferences) GetAllowedTravelModes ¶ added in v1.3.0
func (x *TransitPreferences) GetAllowedTravelModes() []TransitPreferences_TransitTravelMode
func (*TransitPreferences) GetRoutingPreference ¶ added in v1.3.0
func (x *TransitPreferences) GetRoutingPreference() TransitPreferences_TransitRoutingPreference
func (*TransitPreferences) ProtoMessage ¶ added in v1.3.0
func (*TransitPreferences) ProtoMessage()
func (*TransitPreferences) ProtoReflect ¶ added in v1.3.0
func (x *TransitPreferences) ProtoReflect() protoreflect.Message
func (*TransitPreferences) Reset ¶ added in v1.3.0
func (x *TransitPreferences) Reset()
func (*TransitPreferences) String ¶ added in v1.3.0
func (x *TransitPreferences) String() string
type TransitPreferences_TransitRoutingPreference ¶ added in v1.3.0
type TransitPreferences_TransitRoutingPreference int32
Specifies routing preferences for transit routes.
const ( // No preference specified. TransitPreferences_TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED TransitPreferences_TransitRoutingPreference = 0 // Indicates that the calculated route should prefer limited amounts of // walking. TransitPreferences_LESS_WALKING TransitPreferences_TransitRoutingPreference = 1 // Indicates that the calculated route should prefer a limited number of // transfers. TransitPreferences_FEWER_TRANSFERS TransitPreferences_TransitRoutingPreference = 2 )
func (TransitPreferences_TransitRoutingPreference) Descriptor ¶ added in v1.3.0
func (TransitPreferences_TransitRoutingPreference) Descriptor() protoreflect.EnumDescriptor
func (TransitPreferences_TransitRoutingPreference) EnumDescriptor
deprecated
added in
v1.3.0
func (TransitPreferences_TransitRoutingPreference) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransitPreferences_TransitRoutingPreference.Descriptor instead.
func (TransitPreferences_TransitRoutingPreference) Number ¶ added in v1.3.0
func (x TransitPreferences_TransitRoutingPreference) Number() protoreflect.EnumNumber
func (TransitPreferences_TransitRoutingPreference) String ¶ added in v1.3.0
func (x TransitPreferences_TransitRoutingPreference) String() string
func (TransitPreferences_TransitRoutingPreference) Type ¶ added in v1.3.0
func (TransitPreferences_TransitRoutingPreference) Type() protoreflect.EnumType
type TransitPreferences_TransitTravelMode ¶ added in v1.3.0
type TransitPreferences_TransitTravelMode int32
A set of values used to specify the mode of transit.
const ( // No transit travel mode specified. TransitPreferences_TRANSIT_TRAVEL_MODE_UNSPECIFIED TransitPreferences_TransitTravelMode = 0 // Travel by bus. TransitPreferences_BUS TransitPreferences_TransitTravelMode = 1 // Travel by subway. TransitPreferences_SUBWAY TransitPreferences_TransitTravelMode = 2 // Travel by train. TransitPreferences_TRAIN TransitPreferences_TransitTravelMode = 3 // Travel by light rail or tram. TransitPreferences_LIGHT_RAIL TransitPreferences_TransitTravelMode = 4 // Travel by rail. This is equivalent to a combination of `SUBWAY`, `TRAIN`, // and `LIGHT_RAIL`. TransitPreferences_RAIL TransitPreferences_TransitTravelMode = 5 )
func (TransitPreferences_TransitTravelMode) Descriptor ¶ added in v1.3.0
func (TransitPreferences_TransitTravelMode) Descriptor() protoreflect.EnumDescriptor
func (TransitPreferences_TransitTravelMode) Enum ¶ added in v1.3.0
func (x TransitPreferences_TransitTravelMode) Enum() *TransitPreferences_TransitTravelMode
func (TransitPreferences_TransitTravelMode) EnumDescriptor
deprecated
added in
v1.3.0
func (TransitPreferences_TransitTravelMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransitPreferences_TransitTravelMode.Descriptor instead.
func (TransitPreferences_TransitTravelMode) Number ¶ added in v1.3.0
func (x TransitPreferences_TransitTravelMode) Number() protoreflect.EnumNumber
func (TransitPreferences_TransitTravelMode) String ¶ added in v1.3.0
func (x TransitPreferences_TransitTravelMode) String() string
func (TransitPreferences_TransitTravelMode) Type ¶ added in v1.3.0
func (TransitPreferences_TransitTravelMode) Type() protoreflect.EnumType
type TransitStop ¶ added in v1.3.0
type TransitStop struct { // The name of the transit stop. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The location of the stop expressed in latitude/longitude coordinates. Location *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
Information about a transit stop.
func (*TransitStop) Descriptor
deprecated
added in
v1.3.0
func (*TransitStop) Descriptor() ([]byte, []int)
Deprecated: Use TransitStop.ProtoReflect.Descriptor instead.
func (*TransitStop) GetLocation ¶ added in v1.3.0
func (x *TransitStop) GetLocation() *Location
func (*TransitStop) GetName ¶ added in v1.3.0
func (x *TransitStop) GetName() string
func (*TransitStop) ProtoMessage ¶ added in v1.3.0
func (*TransitStop) ProtoMessage()
func (*TransitStop) ProtoReflect ¶ added in v1.3.0
func (x *TransitStop) ProtoReflect() protoreflect.Message
func (*TransitStop) Reset ¶ added in v1.3.0
func (x *TransitStop) Reset()
func (*TransitStop) String ¶ added in v1.3.0
func (x *TransitStop) String() string
type TransitVehicle ¶ added in v1.3.0
type TransitVehicle struct { // The name of this vehicle, capitalized. Name *localized_text.LocalizedText `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The type of vehicle used. Type TransitVehicle_TransitVehicleType `protobuf:"varint,2,opt,name=type,proto3,enum=google.maps.routing.v2.TransitVehicle_TransitVehicleType" json:"type,omitempty"` // The URI for an icon associated with this vehicle type. IconUri string `protobuf:"bytes,3,opt,name=icon_uri,json=iconUri,proto3" json:"icon_uri,omitempty"` // The URI for the icon associated with this vehicle type, based on the local // transport signage. LocalIconUri string `protobuf:"bytes,4,opt,name=local_icon_uri,json=localIconUri,proto3" json:"local_icon_uri,omitempty"` // contains filtered or unexported fields }
Information about a vehicle used in transit routes.
func (*TransitVehicle) Descriptor
deprecated
added in
v1.3.0
func (*TransitVehicle) Descriptor() ([]byte, []int)
Deprecated: Use TransitVehicle.ProtoReflect.Descriptor instead.
func (*TransitVehicle) GetIconUri ¶ added in v1.3.0
func (x *TransitVehicle) GetIconUri() string
func (*TransitVehicle) GetLocalIconUri ¶ added in v1.3.0
func (x *TransitVehicle) GetLocalIconUri() string
func (*TransitVehicle) GetName ¶ added in v1.3.0
func (x *TransitVehicle) GetName() *localized_text.LocalizedText
func (*TransitVehicle) GetType ¶ added in v1.3.0
func (x *TransitVehicle) GetType() TransitVehicle_TransitVehicleType
func (*TransitVehicle) ProtoMessage ¶ added in v1.3.0
func (*TransitVehicle) ProtoMessage()
func (*TransitVehicle) ProtoReflect ¶ added in v1.3.0
func (x *TransitVehicle) ProtoReflect() protoreflect.Message
func (*TransitVehicle) Reset ¶ added in v1.3.0
func (x *TransitVehicle) Reset()
func (*TransitVehicle) String ¶ added in v1.3.0
func (x *TransitVehicle) String() string
type TransitVehicle_TransitVehicleType ¶ added in v1.3.0
type TransitVehicle_TransitVehicleType int32
The type of vehicles for transit routes.
const ( // Unused. TransitVehicle_TRANSIT_VEHICLE_TYPE_UNSPECIFIED TransitVehicle_TransitVehicleType = 0 // Bus. TransitVehicle_BUS TransitVehicle_TransitVehicleType = 1 // A vehicle that operates on a cable, usually on the ground. Aerial cable // cars may be of the type `GONDOLA_LIFT`. TransitVehicle_CABLE_CAR TransitVehicle_TransitVehicleType = 2 // Commuter rail. TransitVehicle_COMMUTER_TRAIN TransitVehicle_TransitVehicleType = 3 // Ferry. TransitVehicle_FERRY TransitVehicle_TransitVehicleType = 4 // A vehicle that is pulled up a steep incline by a cable. A Funicular // typically consists of two cars, with each car acting as a counterweight // for the other. TransitVehicle_FUNICULAR TransitVehicle_TransitVehicleType = 5 // An aerial cable car. TransitVehicle_GONDOLA_LIFT TransitVehicle_TransitVehicleType = 6 // Heavy rail. TransitVehicle_HEAVY_RAIL TransitVehicle_TransitVehicleType = 7 // High speed train. TransitVehicle_HIGH_SPEED_TRAIN TransitVehicle_TransitVehicleType = 8 // Intercity bus. TransitVehicle_INTERCITY_BUS TransitVehicle_TransitVehicleType = 9 // Long distance train. TransitVehicle_LONG_DISTANCE_TRAIN TransitVehicle_TransitVehicleType = 10 // Light rail transit. TransitVehicle_METRO_RAIL TransitVehicle_TransitVehicleType = 11 // Monorail. TransitVehicle_MONORAIL TransitVehicle_TransitVehicleType = 12 // All other vehicles. TransitVehicle_OTHER TransitVehicle_TransitVehicleType = 13 // Rail. TransitVehicle_RAIL TransitVehicle_TransitVehicleType = 14 // Share taxi is a kind of bus with the ability to drop off and pick up // passengers anywhere on its route. TransitVehicle_SHARE_TAXI TransitVehicle_TransitVehicleType = 15 // Underground light rail. TransitVehicle_SUBWAY TransitVehicle_TransitVehicleType = 16 // Above ground light rail. TransitVehicle_TRAM TransitVehicle_TransitVehicleType = 17 // Trolleybus. TransitVehicle_TROLLEYBUS TransitVehicle_TransitVehicleType = 18 )
func (TransitVehicle_TransitVehicleType) Descriptor ¶ added in v1.3.0
func (TransitVehicle_TransitVehicleType) Descriptor() protoreflect.EnumDescriptor
func (TransitVehicle_TransitVehicleType) Enum ¶ added in v1.3.0
func (x TransitVehicle_TransitVehicleType) Enum() *TransitVehicle_TransitVehicleType
func (TransitVehicle_TransitVehicleType) EnumDescriptor
deprecated
added in
v1.3.0
func (TransitVehicle_TransitVehicleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransitVehicle_TransitVehicleType.Descriptor instead.
func (TransitVehicle_TransitVehicleType) Number ¶ added in v1.3.0
func (x TransitVehicle_TransitVehicleType) Number() protoreflect.EnumNumber
func (TransitVehicle_TransitVehicleType) String ¶ added in v1.3.0
func (x TransitVehicle_TransitVehicleType) String() string
func (TransitVehicle_TransitVehicleType) Type ¶ added in v1.3.0
func (TransitVehicle_TransitVehicleType) Type() protoreflect.EnumType
type UnimplementedRoutesServer ¶
type UnimplementedRoutesServer struct { }
UnimplementedRoutesServer can be embedded to have forward compatible implementations.
func (*UnimplementedRoutesServer) ComputeRouteMatrix ¶
func (*UnimplementedRoutesServer) ComputeRouteMatrix(*ComputeRouteMatrixRequest, Routes_ComputeRouteMatrixServer) error
func (*UnimplementedRoutesServer) ComputeRoutes ¶
func (*UnimplementedRoutesServer) ComputeRoutes(context.Context, *ComputeRoutesRequest) (*ComputeRoutesResponse, error)
type Units ¶
type Units int32
A set of values that specify the unit of measure used in the display.
func (Units) Descriptor ¶
func (Units) Descriptor() protoreflect.EnumDescriptor
func (Units) EnumDescriptor
deprecated
func (Units) Number ¶
func (x Units) Number() protoreflect.EnumNumber
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` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
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 // Diesel fueled vehicle. VehicleEmissionType_DIESEL VehicleEmissionType = 4 )
func (VehicleEmissionType) Descriptor ¶
func (VehicleEmissionType) Descriptor() protoreflect.EnumDescriptor
func (VehicleEmissionType) Enum ¶
func (x VehicleEmissionType) Enum() *VehicleEmissionType
func (VehicleEmissionType) EnumDescriptor
deprecated
func (VehicleEmissionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use VehicleEmissionType.Descriptor instead.
func (VehicleEmissionType) Number ¶
func (x VehicleEmissionType) Number() protoreflect.EnumNumber
func (VehicleEmissionType) String ¶
func (x VehicleEmissionType) String() string
func (VehicleEmissionType) Type ¶
func (VehicleEmissionType) Type() protoreflect.EnumType
type VehicleInfo ¶
type VehicleInfo struct { // Describes the vehicle's emission type. // Applies only to the `DRIVE` // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. EmissionType VehicleEmissionType `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
Contains the vehicle information, such as the vehicle emission type.
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) 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 // *Waypoint_Address 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`][google.maps.routing.v2.Route.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`][google.maps.routing.v2.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` // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]. 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) GetAddress ¶ added in v0.7.0
func (*Waypoint) GetLocation ¶
func (*Waypoint) GetLocationType ¶
func (m *Waypoint) GetLocationType() isWaypoint_LocationType
func (*Waypoint) GetPlaceId ¶
func (*Waypoint) GetSideOfRoad ¶
func (*Waypoint) GetVehicleStopover ¶
func (*Waypoint) ProtoMessage ¶
func (*Waypoint) ProtoMessage()
func (*Waypoint) ProtoReflect ¶
func (x *Waypoint) ProtoReflect() protoreflect.Message
type Waypoint_Address ¶ added in v0.7.0
type Waypoint_Address struct { // Human readable address or a plus code. // See https://plus.codes for details. Address string `protobuf:"bytes,7,opt,name=address,proto3,oneof"` }
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"` }
Source Files ¶
- fallback_info.pb.go
- geocoding_results.pb.go
- localized_time.pb.go
- location.pb.go
- maneuver.pb.go
- navigation_instruction.pb.go
- polyline.pb.go
- route.pb.go
- route_label.pb.go
- route_modifiers.pb.go
- route_travel_mode.pb.go
- routes_service.pb.go
- routing_preference.pb.go
- speed_reading_interval.pb.go
- toll_info.pb.go
- toll_passes.pb.go
- traffic_model.pb.go
- transit.pb.go
- transit_preferences.pb.go
- units.pb.go
- vehicle_emission_type.pb.go
- vehicle_info.pb.go
- waypoint.pb.go