Documentation
¶
Index ¶
- Variables
- func RegisterRoutesPreferredServer(s *grpc.Server, srv RoutesPreferredServer)
- type ComputeRouteMatrixRequest
- func (*ComputeRouteMatrixRequest) Descriptor() ([]byte, []int)
- func (m *ComputeRouteMatrixRequest) GetDepartureTime() *timestamp.Timestamp
- func (m *ComputeRouteMatrixRequest) GetDestinations() []*RouteMatrixDestination
- func (m *ComputeRouteMatrixRequest) GetOrigins() []*RouteMatrixOrigin
- func (m *ComputeRouteMatrixRequest) GetRoutingPreference() RoutingPreference
- func (m *ComputeRouteMatrixRequest) GetTravelMode() RouteTravelMode
- func (*ComputeRouteMatrixRequest) ProtoMessage()
- func (m *ComputeRouteMatrixRequest) Reset()
- func (m *ComputeRouteMatrixRequest) String() string
- func (m *ComputeRouteMatrixRequest) XXX_DiscardUnknown()
- func (m *ComputeRouteMatrixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeRouteMatrixRequest) XXX_Merge(src proto.Message)
- func (m *ComputeRouteMatrixRequest) XXX_Size() int
- func (m *ComputeRouteMatrixRequest) XXX_Unmarshal(b []byte) error
- type ComputeRoutesRequest
- func (*ComputeRoutesRequest) Descriptor() ([]byte, []int)
- func (m *ComputeRoutesRequest) GetComputeAlternativeRoutes() bool
- func (m *ComputeRoutesRequest) GetDepartureTime() *timestamp.Timestamp
- func (m *ComputeRoutesRequest) GetDestination() *Waypoint
- func (m *ComputeRoutesRequest) GetIntermediates() []*Waypoint
- func (m *ComputeRoutesRequest) GetLanguageCode() string
- func (m *ComputeRoutesRequest) GetOrigin() *Waypoint
- func (m *ComputeRoutesRequest) GetPolylineQuality() PolylineQuality
- func (m *ComputeRoutesRequest) GetRouteModifiers() *RouteModifiers
- func (m *ComputeRoutesRequest) GetRoutingPreference() RoutingPreference
- func (m *ComputeRoutesRequest) GetTravelMode() RouteTravelMode
- func (m *ComputeRoutesRequest) GetUnits() Units
- func (*ComputeRoutesRequest) ProtoMessage()
- func (m *ComputeRoutesRequest) Reset()
- func (m *ComputeRoutesRequest) String() string
- func (m *ComputeRoutesRequest) XXX_DiscardUnknown()
- func (m *ComputeRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeRoutesRequest) XXX_Merge(src proto.Message)
- func (m *ComputeRoutesRequest) XXX_Size() int
- func (m *ComputeRoutesRequest) XXX_Unmarshal(b []byte) error
- type ComputeRoutesResponse
- func (*ComputeRoutesResponse) Descriptor() ([]byte, []int)
- func (m *ComputeRoutesResponse) GetFallbackInfo() *FallbackInfo
- func (m *ComputeRoutesResponse) GetRoutes() []*Route
- func (*ComputeRoutesResponse) ProtoMessage()
- func (m *ComputeRoutesResponse) Reset()
- func (m *ComputeRoutesResponse) String() string
- func (m *ComputeRoutesResponse) XXX_DiscardUnknown()
- func (m *ComputeRoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeRoutesResponse) XXX_Merge(src proto.Message)
- func (m *ComputeRoutesResponse) XXX_Size() int
- func (m *ComputeRoutesResponse) XXX_Unmarshal(b []byte) error
- type FallbackInfo
- func (*FallbackInfo) Descriptor() ([]byte, []int)
- func (m *FallbackInfo) GetReason() FallbackReason
- func (m *FallbackInfo) GetRoutingMode() FallbackRoutingMode
- func (*FallbackInfo) ProtoMessage()
- func (m *FallbackInfo) Reset()
- func (m *FallbackInfo) String() string
- func (m *FallbackInfo) XXX_DiscardUnknown()
- func (m *FallbackInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FallbackInfo) XXX_Merge(src proto.Message)
- func (m *FallbackInfo) XXX_Size() int
- func (m *FallbackInfo) XXX_Unmarshal(b []byte) error
- type FallbackReason
- type FallbackRoutingMode
- type LicensePlateLastCharacterRestriction
- func (*LicensePlateLastCharacterRestriction) Descriptor() ([]byte, []int)
- func (m *LicensePlateLastCharacterRestriction) GetAllowedLastCharacters() []string
- func (*LicensePlateLastCharacterRestriction) ProtoMessage()
- func (m *LicensePlateLastCharacterRestriction) Reset()
- func (m *LicensePlateLastCharacterRestriction) String() string
- func (m *LicensePlateLastCharacterRestriction) XXX_DiscardUnknown()
- func (m *LicensePlateLastCharacterRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LicensePlateLastCharacterRestriction) XXX_Merge(src proto.Message)
- func (m *LicensePlateLastCharacterRestriction) XXX_Size() int
- func (m *LicensePlateLastCharacterRestriction) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetHeading() *wrappers.Int32Value
- func (m *Location) GetLatLng() *latlng.LatLng
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type Maneuver
- type NavigationInstruction
- func (*NavigationInstruction) Descriptor() ([]byte, []int)
- func (m *NavigationInstruction) GetInstructions() string
- func (m *NavigationInstruction) GetManeuver() Maneuver
- func (*NavigationInstruction) ProtoMessage()
- func (m *NavigationInstruction) Reset()
- func (m *NavigationInstruction) String() string
- func (m *NavigationInstruction) XXX_DiscardUnknown()
- func (m *NavigationInstruction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NavigationInstruction) XXX_Merge(src proto.Message)
- func (m *NavigationInstruction) XXX_Size() int
- func (m *NavigationInstruction) XXX_Unmarshal(b []byte) error
- type Polyline
- func (*Polyline) Descriptor() ([]byte, []int)
- func (m *Polyline) GetEncodedPolyline() string
- func (m *Polyline) GetPolylineType() isPolyline_PolylineType
- func (*Polyline) ProtoMessage()
- func (m *Polyline) Reset()
- func (m *Polyline) String() string
- func (m *Polyline) XXX_DiscardUnknown()
- func (m *Polyline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Polyline) XXX_Merge(src proto.Message)
- func (*Polyline) XXX_OneofWrappers() []interface{}
- func (m *Polyline) XXX_Size() int
- func (m *Polyline) XXX_Unmarshal(b []byte) error
- type PolylineQuality
- type Polyline_EncodedPolyline
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetDescription() string
- func (m *Route) GetDistanceMeters() int32
- func (m *Route) GetDuration() *duration.Duration
- func (m *Route) GetLegs() []*RouteLeg
- func (m *Route) GetPolyline() *Polyline
- func (m *Route) GetStaticDuration() *duration.Duration
- func (m *Route) GetTravelAdvisory() *RouteTravelAdvisory
- func (m *Route) GetViewport() *viewport.Viewport
- func (m *Route) GetWarnings() []string
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- func (m *Route) XXX_DiscardUnknown()
- func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Route) XXX_Merge(src proto.Message)
- func (m *Route) XXX_Size() int
- func (m *Route) XXX_Unmarshal(b []byte) error
- type RouteLeg
- func (*RouteLeg) Descriptor() ([]byte, []int)
- func (m *RouteLeg) GetDistanceMeters() int32
- func (m *RouteLeg) GetDuration() *duration.Duration
- func (m *RouteLeg) GetEndLocation() *Location
- func (m *RouteLeg) GetPolyline() *Polyline
- func (m *RouteLeg) GetStartLocation() *Location
- func (m *RouteLeg) GetStaticDuration() *duration.Duration
- func (m *RouteLeg) GetSteps() []*RouteLegStep
- func (m *RouteLeg) GetTravelAdvisory() *RouteLegTravelAdvisory
- func (*RouteLeg) ProtoMessage()
- func (m *RouteLeg) Reset()
- func (m *RouteLeg) String() string
- func (m *RouteLeg) XXX_DiscardUnknown()
- func (m *RouteLeg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteLeg) XXX_Merge(src proto.Message)
- func (m *RouteLeg) XXX_Size() int
- func (m *RouteLeg) XXX_Unmarshal(b []byte) error
- type RouteLegStep
- func (*RouteLegStep) Descriptor() ([]byte, []int)
- func (m *RouteLegStep) GetDistanceMeters() int32
- func (m *RouteLegStep) GetEndLocation() *Location
- func (m *RouteLegStep) GetNavigationInstruction() *NavigationInstruction
- func (m *RouteLegStep) GetPolyline() *Polyline
- func (m *RouteLegStep) GetStartLocation() *Location
- func (m *RouteLegStep) GetStaticDuration() *duration.Duration
- func (*RouteLegStep) ProtoMessage()
- func (m *RouteLegStep) Reset()
- func (m *RouteLegStep) String() string
- func (m *RouteLegStep) XXX_DiscardUnknown()
- func (m *RouteLegStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteLegStep) XXX_Merge(src proto.Message)
- func (m *RouteLegStep) XXX_Size() int
- func (m *RouteLegStep) XXX_Unmarshal(b []byte) error
- type RouteLegTravelAdvisory
- func (*RouteLegTravelAdvisory) Descriptor() ([]byte, []int)
- func (m *RouteLegTravelAdvisory) GetTollInfo() *TollInfo
- func (*RouteLegTravelAdvisory) ProtoMessage()
- func (m *RouteLegTravelAdvisory) Reset()
- func (m *RouteLegTravelAdvisory) String() string
- func (m *RouteLegTravelAdvisory) XXX_DiscardUnknown()
- func (m *RouteLegTravelAdvisory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteLegTravelAdvisory) XXX_Merge(src proto.Message)
- func (m *RouteLegTravelAdvisory) XXX_Size() int
- func (m *RouteLegTravelAdvisory) XXX_Unmarshal(b []byte) error
- type RouteMatrixDestination
- func (*RouteMatrixDestination) Descriptor() ([]byte, []int)
- func (m *RouteMatrixDestination) GetWaypoint() *Waypoint
- func (*RouteMatrixDestination) ProtoMessage()
- func (m *RouteMatrixDestination) Reset()
- func (m *RouteMatrixDestination) String() string
- func (m *RouteMatrixDestination) XXX_DiscardUnknown()
- func (m *RouteMatrixDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteMatrixDestination) XXX_Merge(src proto.Message)
- func (m *RouteMatrixDestination) XXX_Size() int
- func (m *RouteMatrixDestination) XXX_Unmarshal(b []byte) error
- type RouteMatrixElement
- func (*RouteMatrixElement) Descriptor() ([]byte, []int)
- func (m *RouteMatrixElement) GetDestinationIndex() int32
- func (m *RouteMatrixElement) GetDistanceMeters() int32
- func (m *RouteMatrixElement) GetDuration() *duration.Duration
- func (m *RouteMatrixElement) GetFallbackInfo() *FallbackInfo
- func (m *RouteMatrixElement) GetOriginIndex() int32
- func (m *RouteMatrixElement) GetStaticDuration() *duration.Duration
- func (m *RouteMatrixElement) GetStatus() *status.Status
- func (m *RouteMatrixElement) GetTravelAdvisory() *RouteTravelAdvisory
- func (*RouteMatrixElement) ProtoMessage()
- func (m *RouteMatrixElement) Reset()
- func (m *RouteMatrixElement) String() string
- func (m *RouteMatrixElement) XXX_DiscardUnknown()
- func (m *RouteMatrixElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteMatrixElement) XXX_Merge(src proto.Message)
- func (m *RouteMatrixElement) XXX_Size() int
- func (m *RouteMatrixElement) XXX_Unmarshal(b []byte) error
- type RouteMatrixOrigin
- func (*RouteMatrixOrigin) Descriptor() ([]byte, []int)
- func (m *RouteMatrixOrigin) GetRouteModifiers() *RouteModifiers
- func (m *RouteMatrixOrigin) GetWaypoint() *Waypoint
- func (*RouteMatrixOrigin) ProtoMessage()
- func (m *RouteMatrixOrigin) Reset()
- func (m *RouteMatrixOrigin) String() string
- func (m *RouteMatrixOrigin) XXX_DiscardUnknown()
- func (m *RouteMatrixOrigin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteMatrixOrigin) XXX_Merge(src proto.Message)
- func (m *RouteMatrixOrigin) XXX_Size() int
- func (m *RouteMatrixOrigin) XXX_Unmarshal(b []byte) error
- type RouteModifiers
- func (*RouteModifiers) Descriptor() ([]byte, []int)
- func (m *RouteModifiers) GetAvoidFerries() bool
- func (m *RouteModifiers) GetAvoidHighways() bool
- func (m *RouteModifiers) GetAvoidIndoor() bool
- func (m *RouteModifiers) GetAvoidTolls() bool
- func (m *RouteModifiers) GetTollPasses() []TollPass
- func (m *RouteModifiers) GetVehicleInfo() *VehicleInfo
- func (*RouteModifiers) ProtoMessage()
- func (m *RouteModifiers) Reset()
- func (m *RouteModifiers) String() string
- func (m *RouteModifiers) XXX_DiscardUnknown()
- func (m *RouteModifiers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteModifiers) XXX_Merge(src proto.Message)
- func (m *RouteModifiers) XXX_Size() int
- func (m *RouteModifiers) XXX_Unmarshal(b []byte) error
- type RouteTravelAdvisory
- func (*RouteTravelAdvisory) Descriptor() ([]byte, []int)
- func (m *RouteTravelAdvisory) GetTollInfo() *TollInfo
- func (m *RouteTravelAdvisory) GetTrafficRestriction() *TrafficRestriction
- func (*RouteTravelAdvisory) ProtoMessage()
- func (m *RouteTravelAdvisory) Reset()
- func (m *RouteTravelAdvisory) String() string
- func (m *RouteTravelAdvisory) XXX_DiscardUnknown()
- func (m *RouteTravelAdvisory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteTravelAdvisory) XXX_Merge(src proto.Message)
- func (m *RouteTravelAdvisory) XXX_Size() int
- func (m *RouteTravelAdvisory) XXX_Unmarshal(b []byte) error
- type RouteTravelMode
- type RoutesPreferredClient
- type RoutesPreferredServer
- type RoutingPreference
- type TollInfo
- func (*TollInfo) Descriptor() ([]byte, []int)
- func (m *TollInfo) GetEstimatedPrice() []*money.Money
- func (*TollInfo) ProtoMessage()
- func (m *TollInfo) Reset()
- func (m *TollInfo) String() string
- func (m *TollInfo) XXX_DiscardUnknown()
- func (m *TollInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TollInfo) XXX_Merge(src proto.Message)
- func (m *TollInfo) XXX_Size() int
- func (m *TollInfo) XXX_Unmarshal(b []byte) error
- type TollPass
- type TrafficRestriction
- func (*TrafficRestriction) Descriptor() ([]byte, []int)
- func (m *TrafficRestriction) GetLicensePlateLastCharacterRestriction() *LicensePlateLastCharacterRestriction
- func (*TrafficRestriction) ProtoMessage()
- func (m *TrafficRestriction) Reset()
- func (m *TrafficRestriction) String() string
- func (m *TrafficRestriction) XXX_DiscardUnknown()
- func (m *TrafficRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TrafficRestriction) XXX_Merge(src proto.Message)
- func (m *TrafficRestriction) XXX_Size() int
- func (m *TrafficRestriction) XXX_Unmarshal(b []byte) error
- type UnimplementedRoutesPreferredServer
- type Units
- type VehicleEmissionType
- type VehicleInfo
- func (*VehicleInfo) Descriptor() ([]byte, []int)
- func (m *VehicleInfo) GetEmissionType() VehicleEmissionType
- func (m *VehicleInfo) GetLicensePlateLastCharacter() string
- func (*VehicleInfo) ProtoMessage()
- func (m *VehicleInfo) Reset()
- func (m *VehicleInfo) String() string
- func (m *VehicleInfo) XXX_DiscardUnknown()
- func (m *VehicleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VehicleInfo) XXX_Merge(src proto.Message)
- func (m *VehicleInfo) XXX_Size() int
- func (m *VehicleInfo) XXX_Unmarshal(b []byte) error
- type Waypoint
- func (*Waypoint) Descriptor() ([]byte, []int)
- func (m *Waypoint) GetLocation() *Location
- func (m *Waypoint) GetLocationType() isWaypoint_LocationType
- func (m *Waypoint) GetPlaceId() string
- func (m *Waypoint) GetSideOfRoad() bool
- func (m *Waypoint) GetVehicleStopover() bool
- func (m *Waypoint) GetVia() bool
- func (*Waypoint) ProtoMessage()
- func (m *Waypoint) Reset()
- func (m *Waypoint) String() string
- func (m *Waypoint) XXX_DiscardUnknown()
- func (m *Waypoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Waypoint) XXX_Merge(src proto.Message)
- func (*Waypoint) XXX_OneofWrappers() []interface{}
- func (m *Waypoint) XXX_Size() int
- func (m *Waypoint) XXX_Unmarshal(b []byte) error
- 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",
}
var FallbackReason_value = map[string]int32{
"FALLBACK_REASON_UNSPECIFIED": 0,
"SERVER_ERROR": 1,
"LATENCY_EXCEEDED": 2,
}
var FallbackRoutingMode_name = map[int32]string{
0: "FALLBACK_ROUTING_MODE_UNSPECIFIED",
1: "FALLBACK_TRAFFIC_UNAWARE",
2: "FALLBACK_TRAFFIC_AWARE",
}
var FallbackRoutingMode_value = map[string]int32{
"FALLBACK_ROUTING_MODE_UNSPECIFIED": 0,
"FALLBACK_TRAFFIC_UNAWARE": 1,
"FALLBACK_TRAFFIC_AWARE": 2,
}
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",
}
var 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,
}
var PolylineQuality_name = map[int32]string{
0: "POLYLINE_QUALITY_UNSPECIFIED",
1: "HIGH_QUALITY",
2: "OVERVIEW",
}
var PolylineQuality_value = map[string]int32{
"POLYLINE_QUALITY_UNSPECIFIED": 0,
"HIGH_QUALITY": 1,
"OVERVIEW": 2,
}
var RouteTravelMode_name = map[int32]string{
0: "TRAVEL_MODE_UNSPECIFIED",
1: "DRIVE",
2: "BICYCLE",
3: "WALK",
4: "TWO_WHEELER",
}
var RouteTravelMode_value = map[string]int32{
"TRAVEL_MODE_UNSPECIFIED": 0,
"DRIVE": 1,
"BICYCLE": 2,
"WALK": 3,
"TWO_WHEELER": 4,
}
var RoutingPreference_name = map[int32]string{
0: "ROUTING_PREFERENCE_UNSPECIFIED",
1: "TRAFFIC_UNAWARE",
2: "TRAFFIC_AWARE",
3: "TRAFFIC_AWARE_OPTIMAL",
}
var RoutingPreference_value = map[string]int32{
"ROUTING_PREFERENCE_UNSPECIFIED": 0,
"TRAFFIC_UNAWARE": 1,
"TRAFFIC_AWARE": 2,
"TRAFFIC_AWARE_OPTIMAL": 3,
}
var TollPass_name = map[int32]string{
0: "TOLL_PASS_UNSPECIFIED",
1: "US_WA_GOOD_TO_GO",
2: "AU_LINKT",
}
var TollPass_value = map[string]int32{
"TOLL_PASS_UNSPECIFIED": 0,
"US_WA_GOOD_TO_GO": 1,
"AU_LINKT": 2,
}
var Units_name = map[int32]string{
0: "UNITS_UNSPECIFIED",
1: "METRIC",
2: "IMPERIAL",
}
var Units_value = map[string]int32{
"UNITS_UNSPECIFIED": 0,
"METRIC": 1,
"IMPERIAL": 2,
}
var VehicleEmissionType_name = map[int32]string{
0: "VEHICLE_EMISSION_TYPE_UNSPECIFIED",
1: "GASOLINE",
2: "ELECTRIC",
3: "HYBRID",
}
var VehicleEmissionType_value = map[string]int32{
"VEHICLE_EMISSION_TYPE_UNSPECIFIED": 0,
"GASOLINE": 1,
"ELECTRIC": 2,
"HYBRID": 3,
}
Functions ¶
func RegisterRoutesPreferredServer ¶
func RegisterRoutesPreferredServer(s *grpc.Server, srv RoutesPreferredServer)
Types ¶
type ComputeRouteMatrixRequest ¶
type ComputeRouteMatrixRequest struct { // Required. Array of origins, which determines the rows of the response matrix. Origins []*RouteMatrixOrigin `protobuf:"bytes,1,rep,name=origins,proto3" json:"origins,omitempty"` // Required. Array of destinations, which determines the columns of the response matrix. Destinations []*RouteMatrixDestination `protobuf:"bytes,2,rep,name=destinations,proto3" json:"destinations,omitempty"` // Optional. Specifies the mode of transportation. TravelMode RouteTravelMode `` /* 135-byte string literal not displayed */ // Optional. Specifies how to compute the route. The server attempts to use the selected // routing preference to compute the route. If the routing preference results // in an error or an extra long latency, an error is returned. In the future, // we might implement a fallback mechanism to use a different option when the // preferred option does not give a valid result. You can specify this option // only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the // request fails. RoutingPreference RoutingPreference `` /* 158-byte string literal not displayed */ // Optional. The departure time. If you don't set this value, this defaults to the time // that you made the request. If you set this value to a time that has already // occurred, the request fails. DepartureTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ComputeRouteMatrix request message
func (*ComputeRouteMatrixRequest) Descriptor ¶
func (*ComputeRouteMatrixRequest) Descriptor() ([]byte, []int)
func (*ComputeRouteMatrixRequest) GetDepartureTime ¶
func (m *ComputeRouteMatrixRequest) GetDepartureTime() *timestamp.Timestamp
func (*ComputeRouteMatrixRequest) GetDestinations ¶
func (m *ComputeRouteMatrixRequest) GetDestinations() []*RouteMatrixDestination
func (*ComputeRouteMatrixRequest) GetOrigins ¶
func (m *ComputeRouteMatrixRequest) GetOrigins() []*RouteMatrixOrigin
func (*ComputeRouteMatrixRequest) GetRoutingPreference ¶
func (m *ComputeRouteMatrixRequest) GetRoutingPreference() RoutingPreference
func (*ComputeRouteMatrixRequest) GetTravelMode ¶
func (m *ComputeRouteMatrixRequest) GetTravelMode() RouteTravelMode
func (*ComputeRouteMatrixRequest) ProtoMessage ¶
func (*ComputeRouteMatrixRequest) ProtoMessage()
func (*ComputeRouteMatrixRequest) Reset ¶
func (m *ComputeRouteMatrixRequest) Reset()
func (*ComputeRouteMatrixRequest) String ¶
func (m *ComputeRouteMatrixRequest) String() string
func (*ComputeRouteMatrixRequest) XXX_DiscardUnknown ¶
func (m *ComputeRouteMatrixRequest) XXX_DiscardUnknown()
func (*ComputeRouteMatrixRequest) XXX_Marshal ¶
func (m *ComputeRouteMatrixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeRouteMatrixRequest) XXX_Merge ¶
func (m *ComputeRouteMatrixRequest) XXX_Merge(src proto.Message)
func (*ComputeRouteMatrixRequest) XXX_Size ¶
func (m *ComputeRouteMatrixRequest) XXX_Size() int
func (*ComputeRouteMatrixRequest) XXX_Unmarshal ¶
func (m *ComputeRouteMatrixRequest) XXX_Unmarshal(b []byte) error
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. Intermediates []*Waypoint `protobuf:"bytes,3,rep,name=intermediates,proto3" json:"intermediates,omitempty"` // Optional. Specifies the mode of transportation. TravelMode RouteTravelMode `` /* 135-byte string literal not displayed */ // Optional. Specifies how to compute the route. The server // attempts to use the selected routing preference to compute the route. If // the routing preference results in an error or an extra long latency, then // an error is returned. In the future, we might implement a fallback // mechanism to use a different option when the preferred option does not give // a valid result. You can specify this option only when the `travel_mode` is // `DRIVE` or `TWO_WHEELER`, otherwise the request fails. RoutingPreference RoutingPreference `` /* 158-byte string literal not displayed */ // Optional. Specifies your preference for the quality of the polyline. PolylineQuality PolylineQuality `` /* 150-byte string literal not displayed */ // Optional. The departure time. If you don't set this value, then this value // defaults to the time that you made the request. If you set this value to a // time that has already occurred, then the request fails. DepartureTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=departure_time,json=departureTime,proto3" json:"departure_time,omitempty"` // Specifies whether to calculate alternate routes in addition to the route. ComputeAlternativeRoutes bool `` /* 136-byte string literal not displayed */ // Optional. A set of conditions to satisfy that affect the way routes are // calculated. RouteModifiers *RouteModifiers `protobuf:"bytes,9,opt,name=route_modifiers,json=routeModifiers,proto3" json:"route_modifiers,omitempty"` // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more // information, see // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See // [Language Support](https://developers.google.com/maps/faq#languagesupport) // for the list of supported languages. When you don't provide this value, the // display language is inferred from the location of the route request. LanguageCode string `protobuf:"bytes,10,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Optional. Specifies the units of measure for the display fields. This // includes the `instruction` field in `NavigationInstruction`. The units of // measure used for the route, leg, step distance, and duration are not // affected by this value. If you don't provide this value, then the display // units are inferred from the location of the request. Units Units `protobuf:"varint,11,opt,name=units,proto3,enum=google.maps.routes.v1.Units" json:"units,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ComputeRoutes request message.
func (*ComputeRoutesRequest) Descriptor ¶
func (*ComputeRoutesRequest) Descriptor() ([]byte, []int)
func (*ComputeRoutesRequest) GetComputeAlternativeRoutes ¶
func (m *ComputeRoutesRequest) GetComputeAlternativeRoutes() bool
func (*ComputeRoutesRequest) GetDepartureTime ¶
func (m *ComputeRoutesRequest) GetDepartureTime() *timestamp.Timestamp
func (*ComputeRoutesRequest) GetDestination ¶
func (m *ComputeRoutesRequest) GetDestination() *Waypoint
func (*ComputeRoutesRequest) GetIntermediates ¶
func (m *ComputeRoutesRequest) GetIntermediates() []*Waypoint
func (*ComputeRoutesRequest) GetLanguageCode ¶
func (m *ComputeRoutesRequest) GetLanguageCode() string
func (*ComputeRoutesRequest) GetOrigin ¶
func (m *ComputeRoutesRequest) GetOrigin() *Waypoint
func (*ComputeRoutesRequest) GetPolylineQuality ¶
func (m *ComputeRoutesRequest) GetPolylineQuality() PolylineQuality
func (*ComputeRoutesRequest) GetRouteModifiers ¶
func (m *ComputeRoutesRequest) GetRouteModifiers() *RouteModifiers
func (*ComputeRoutesRequest) GetRoutingPreference ¶
func (m *ComputeRoutesRequest) GetRoutingPreference() RoutingPreference
func (*ComputeRoutesRequest) GetTravelMode ¶
func (m *ComputeRoutesRequest) GetTravelMode() RouteTravelMode
func (*ComputeRoutesRequest) GetUnits ¶
func (m *ComputeRoutesRequest) GetUnits() Units
func (*ComputeRoutesRequest) ProtoMessage ¶
func (*ComputeRoutesRequest) ProtoMessage()
func (*ComputeRoutesRequest) Reset ¶
func (m *ComputeRoutesRequest) Reset()
func (*ComputeRoutesRequest) String ¶
func (m *ComputeRoutesRequest) String() string
func (*ComputeRoutesRequest) XXX_DiscardUnknown ¶
func (m *ComputeRoutesRequest) XXX_DiscardUnknown()
func (*ComputeRoutesRequest) XXX_Marshal ¶
func (m *ComputeRoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeRoutesRequest) XXX_Merge ¶
func (m *ComputeRoutesRequest) XXX_Merge(src proto.Message)
func (*ComputeRoutesRequest) XXX_Size ¶
func (m *ComputeRoutesRequest) XXX_Size() int
func (*ComputeRoutesRequest) XXX_Unmarshal ¶
func (m *ComputeRoutesRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ComputeRoutes the response message.
func (*ComputeRoutesResponse) Descriptor ¶
func (*ComputeRoutesResponse) Descriptor() ([]byte, []int)
func (*ComputeRoutesResponse) GetFallbackInfo ¶
func (m *ComputeRoutesResponse) GetFallbackInfo() *FallbackInfo
func (*ComputeRoutesResponse) GetRoutes ¶
func (m *ComputeRoutesResponse) GetRoutes() []*Route
func (*ComputeRoutesResponse) ProtoMessage ¶
func (*ComputeRoutesResponse) ProtoMessage()
func (*ComputeRoutesResponse) Reset ¶
func (m *ComputeRoutesResponse) Reset()
func (*ComputeRoutesResponse) String ¶
func (m *ComputeRoutesResponse) String() string
func (*ComputeRoutesResponse) XXX_DiscardUnknown ¶
func (m *ComputeRoutesResponse) XXX_DiscardUnknown()
func (*ComputeRoutesResponse) XXX_Marshal ¶
func (m *ComputeRoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeRoutesResponse) XXX_Merge ¶
func (m *ComputeRoutesResponse) XXX_Merge(src proto.Message)
func (*ComputeRoutesResponse) XXX_Size ¶
func (m *ComputeRoutesResponse) XXX_Size() int
func (*ComputeRoutesResponse) XXX_Unmarshal ¶
func (m *ComputeRoutesResponse) XXX_Unmarshal(b []byte) error
type FallbackInfo ¶
type FallbackInfo struct { // Routing mode used for the response. If fallback was triggered, the mode // may be different from routing preference set in the original client // request. RoutingMode FallbackRoutingMode `` /* 142-byte string literal not displayed */ // The reason why fallback response was used instead of the original response. // This field is only populated when the fallback mode is triggered and the // fallback response is returned. Reason FallbackReason `protobuf:"varint,2,opt,name=reason,proto3,enum=google.maps.routes.v1.FallbackReason" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*FallbackInfo) Descriptor() ([]byte, []int)
func (*FallbackInfo) GetReason ¶
func (m *FallbackInfo) GetReason() FallbackReason
func (*FallbackInfo) GetRoutingMode ¶
func (m *FallbackInfo) GetRoutingMode() FallbackRoutingMode
func (*FallbackInfo) ProtoMessage ¶
func (*FallbackInfo) ProtoMessage()
func (*FallbackInfo) Reset ¶
func (m *FallbackInfo) Reset()
func (*FallbackInfo) String ¶
func (m *FallbackInfo) String() string
func (*FallbackInfo) XXX_DiscardUnknown ¶
func (m *FallbackInfo) XXX_DiscardUnknown()
func (*FallbackInfo) XXX_Marshal ¶
func (m *FallbackInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FallbackInfo) XXX_Merge ¶
func (m *FallbackInfo) XXX_Merge(src proto.Message)
func (*FallbackInfo) XXX_Size ¶
func (m *FallbackInfo) XXX_Size() int
func (*FallbackInfo) XXX_Unmarshal ¶
func (m *FallbackInfo) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (FallbackReason) EnumDescriptor() ([]byte, []int)
func (FallbackReason) String ¶
func (x FallbackReason) String() string
type FallbackRoutingMode ¶
type FallbackRoutingMode int32
Actual routing mode used for returned fallback response.
const ( // Not used. FallbackRoutingMode_FALLBACK_ROUTING_MODE_UNSPECIFIED FallbackRoutingMode = 0 // Indicates the "TRAFFIC_UNAWARE" routing mode was used to compute the // response. FallbackRoutingMode_FALLBACK_TRAFFIC_UNAWARE FallbackRoutingMode = 1 // Indicates the "TRAFFIC_AWARE" routing mode was used to compute the // response. FallbackRoutingMode_FALLBACK_TRAFFIC_AWARE FallbackRoutingMode = 2 )
func (FallbackRoutingMode) EnumDescriptor ¶
func (FallbackRoutingMode) EnumDescriptor() ([]byte, []int)
func (FallbackRoutingMode) String ¶
func (x FallbackRoutingMode) String() string
type LicensePlateLastCharacterRestriction ¶
type LicensePlateLastCharacterRestriction struct { // The allowed last character of a license plate of a vehicle. Only vehicles // whose license plate's last characters match these are allowed to travel on // the route. If empty, no vehicle is allowed. AllowedLastCharacters []string `` /* 126-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates the license plate last character restriction.
func (*LicensePlateLastCharacterRestriction) Descriptor ¶
func (*LicensePlateLastCharacterRestriction) Descriptor() ([]byte, []int)
func (*LicensePlateLastCharacterRestriction) GetAllowedLastCharacters ¶
func (m *LicensePlateLastCharacterRestriction) GetAllowedLastCharacters() []string
func (*LicensePlateLastCharacterRestriction) ProtoMessage ¶
func (*LicensePlateLastCharacterRestriction) ProtoMessage()
func (*LicensePlateLastCharacterRestriction) Reset ¶
func (m *LicensePlateLastCharacterRestriction) Reset()
func (*LicensePlateLastCharacterRestriction) String ¶
func (m *LicensePlateLastCharacterRestriction) String() string
func (*LicensePlateLastCharacterRestriction) XXX_DiscardUnknown ¶
func (m *LicensePlateLastCharacterRestriction) XXX_DiscardUnknown()
func (*LicensePlateLastCharacterRestriction) XXX_Marshal ¶
func (m *LicensePlateLastCharacterRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LicensePlateLastCharacterRestriction) XXX_Merge ¶
func (m *LicensePlateLastCharacterRestriction) XXX_Merge(src proto.Message)
func (*LicensePlateLastCharacterRestriction) XXX_Size ¶
func (m *LicensePlateLastCharacterRestriction) XXX_Size() int
func (*LicensePlateLastCharacterRestriction) XXX_Unmarshal ¶
func (m *LicensePlateLastCharacterRestriction) XXX_Unmarshal(b []byte) error
type Location ¶
type Location struct { // The waypoint's geographic coordinates. LatLng *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"` // The compass heading associated with the direction of the flow of traffic. // This value is used to specify the side of the road to use for pickup and // drop-off. Heading values can be from 0 to 360, where 0 specifies a heading // of due North, 90 specifies a heading of due East, etc. You can use this // field only for `DRIVE` and `TWO_WHEELER` travel modes. Heading *wrappers.Int32Value `protobuf:"bytes,2,opt,name=heading,proto3" json:"heading,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates a location (a geographic point, and an optional heading).
func (*Location) Descriptor ¶
func (*Location) GetHeading ¶
func (m *Location) GetHeading() *wrappers.Int32Value
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
type Maneuver ¶
type Maneuver int32
A set of values that specify the navigation action to take for the current step (e.g., turn left, merge, straight, etc.).
const ( // Not used. Maneuver_MANEUVER_UNSPECIFIED Maneuver = 0 // Turn slightly to the left. Maneuver_TURN_SLIGHT_LEFT Maneuver = 1 // Turn sharply to the left. Maneuver_TURN_SHARP_LEFT Maneuver = 2 // Make a left u-turn. Maneuver_UTURN_LEFT Maneuver = 3 // Turn left. Maneuver_TURN_LEFT Maneuver = 4 // Turn slightly to the right. Maneuver_TURN_SLIGHT_RIGHT Maneuver = 5 // Turn sharply to the right. Maneuver_TURN_SHARP_RIGHT Maneuver = 6 // Make a right u-turn. Maneuver_UTURN_RIGHT Maneuver = 7 // Turn right. Maneuver_TURN_RIGHT Maneuver = 8 // Go straight. Maneuver_STRAIGHT Maneuver = 9 // Take the left ramp. Maneuver_RAMP_LEFT Maneuver = 10 // Take the right ramp. Maneuver_RAMP_RIGHT Maneuver = 11 // Merge into traffic. Maneuver_MERGE Maneuver = 12 // Take the left fork. Maneuver_FORK_LEFT Maneuver = 13 // Take the right fork. Maneuver_FORK_RIGHT Maneuver = 14 // Take the ferry. Maneuver_FERRY Maneuver = 15 // Take the train leading onto the ferry. Maneuver_FERRY_TRAIN Maneuver = 16 // Turn left at the roundabout. Maneuver_ROUNDABOUT_LEFT Maneuver = 17 // Turn right at the roundabout. Maneuver_ROUNDABOUT_RIGHT Maneuver = 18 )
func (Maneuver) EnumDescriptor ¶
type NavigationInstruction ¶
type NavigationInstruction struct { // left, merge, straight, etc.). This field determines which icon to display. Maneuver Maneuver `protobuf:"varint,1,opt,name=maneuver,proto3,enum=google.maps.routes.v1.Maneuver" json:"maneuver,omitempty"` // Instructions for navigating this step. }
func (*NavigationInstruction) Descriptor ¶
func (*NavigationInstruction) Descriptor() ([]byte, []int)
func (*NavigationInstruction) GetInstructions ¶
func (m *NavigationInstruction) GetInstructions() string
func (*NavigationInstruction) GetManeuver ¶
func (m *NavigationInstruction) GetManeuver() Maneuver
func (*NavigationInstruction) ProtoMessage ¶
func (*NavigationInstruction) ProtoMessage()
func (*NavigationInstruction) Reset ¶
func (m *NavigationInstruction) Reset()
func (*NavigationInstruction) String ¶
func (m *NavigationInstruction) String() string
func (*NavigationInstruction) XXX_DiscardUnknown ¶
func (m *NavigationInstruction) XXX_DiscardUnknown()
func (*NavigationInstruction) XXX_Marshal ¶
func (m *NavigationInstruction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NavigationInstruction) XXX_Merge ¶
func (m *NavigationInstruction) XXX_Merge(src proto.Message)
func (*NavigationInstruction) XXX_Size ¶
func (m *NavigationInstruction) XXX_Size() int
func (*NavigationInstruction) XXX_Unmarshal ¶
func (m *NavigationInstruction) XXX_Unmarshal(b []byte) error
type Polyline ¶
type Polyline struct { // Encapsulates the type of polyline. Defaults to encoded_polyline. // // Types that are valid to be assigned to PolylineType: // *Polyline_EncodedPolyline PolylineType isPolyline_PolylineType `protobuf_oneof:"polyline_type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates an encoded polyline.
func (*Polyline) Descriptor ¶
func (*Polyline) GetEncodedPolyline ¶
func (*Polyline) GetPolylineType ¶
func (m *Polyline) GetPolylineType() isPolyline_PolylineType
func (*Polyline) ProtoMessage ¶
func (*Polyline) ProtoMessage()
func (*Polyline) XXX_DiscardUnknown ¶
func (m *Polyline) XXX_DiscardUnknown()
func (*Polyline) XXX_Marshal ¶
func (*Polyline) XXX_OneofWrappers ¶
func (*Polyline) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Polyline) XXX_Unmarshal ¶
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) EnumDescriptor ¶
func (PolylineQuality) EnumDescriptor() ([]byte, []int)
func (PolylineQuality) String ¶
func (x PolylineQuality) String() string
type Polyline_EncodedPolyline ¶
type Polyline_EncodedPolyline struct {
EncodedPolyline string `protobuf:"bytes,1,opt,name=encoded_polyline,json=encodedPolyline,proto3,oneof"`
}
type Route ¶
type Route struct { // A collection of legs (path segments between waypoints) that make-up the // route. Each leg corresponds to the trip between two non-`via` Waypoints. // For example, a route with no intermediate waypoints has only one leg. A // route that includes one non-`via` intermediate waypoint has two legs. A // route that includes one `via` intermediate waypoint has one leg. The order // of the legs matches the order of Waypoints from `origin` to `intermediates` // to `destination`. Legs []*RouteLeg `protobuf:"bytes,1,rep,name=legs,proto3" json:"legs,omitempty"` // The travel distance of the route, in meters. DistanceMeters int32 `protobuf:"varint,2,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"` // The length of time needed to navigate the route. If you set the // `route_preference` to `TRAFFIC_UNAWARE`, then this value is the same as // `static_duration`. If you set the `route_preference` to either // `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated // taking traffic conditions into account. Duration *duration.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` // The duration of traveling through the route without taking traffic // conditions into consideration. StaticDuration *duration.Duration `protobuf:"bytes,4,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // The overall route polyline. This polyline will be the combined polyline of // all `legs`. Polyline *Polyline `protobuf:"bytes,5,opt,name=polyline,proto3" json:"polyline,omitempty"` // A description of the route. Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // An array of warnings to show when displaying the route. Warnings []string `protobuf:"bytes,7,rep,name=warnings,proto3" json:"warnings,omitempty"` // The viewport bounding box of the polyline. Viewport *viewport.Viewport `protobuf:"bytes,8,opt,name=viewport,proto3" json:"viewport,omitempty"` // Additional information about the route. TravelAdvisory *RouteTravelAdvisory `protobuf:"bytes,9,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.
func (*Route) Descriptor ¶
func (*Route) GetDescription ¶
func (*Route) GetDistanceMeters ¶
func (*Route) GetDuration ¶
func (*Route) GetPolyline ¶
func (*Route) GetStaticDuration ¶
func (*Route) GetTravelAdvisory ¶
func (m *Route) GetTravelAdvisory() *RouteTravelAdvisory
func (*Route) GetViewport ¶
func (*Route) GetWarnings ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) XXX_DiscardUnknown ¶
func (m *Route) XXX_DiscardUnknown()
func (*Route) XXX_Marshal ¶
func (*Route) XXX_Unmarshal ¶
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 *duration.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` // The duration of traveling through the leg, calculated without taking // traffic conditions into consideration. StaticDuration *duration.Duration `protobuf:"bytes,3,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // The overall polyline for this leg. This includes that each `step`'s // polyline. Polyline *Polyline `protobuf:"bytes,4,opt,name=polyline,proto3" json:"polyline,omitempty"` // The start location of this leg. This might be different from the provided // `origin`. For example, when the provided `origin` is not near a road, this // is a point on the road. StartLocation *Location `protobuf:"bytes,5,opt,name=start_location,json=startLocation,proto3" json:"start_location,omitempty"` // The end location of this leg. This might be different from the provided // `destination`. For example, when the provided `destination` is not near a // road, this is a point on the road. EndLocation *Location `protobuf:"bytes,6,opt,name=end_location,json=endLocation,proto3" json:"end_location,omitempty"` // An array of steps denoting segments within this leg. Each step represents // one navigation instruction. Steps []*RouteLegStep `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"` // Encapsulates the additional information that the user should be informed // about, such as possible traffic zone restriction etc. on a route leg. TravelAdvisory *RouteLegTravelAdvisory `protobuf:"bytes,8,opt,name=travel_advisory,json=travelAdvisory,proto3" json:"travel_advisory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates a segment between non-`via` waypoints.
func (*RouteLeg) Descriptor ¶
func (*RouteLeg) GetDistanceMeters ¶
func (*RouteLeg) GetDuration ¶
func (*RouteLeg) GetEndLocation ¶
func (*RouteLeg) GetPolyline ¶
func (*RouteLeg) GetStartLocation ¶
func (*RouteLeg) GetStaticDuration ¶
func (*RouteLeg) GetSteps ¶
func (m *RouteLeg) GetSteps() []*RouteLegStep
func (*RouteLeg) GetTravelAdvisory ¶
func (m *RouteLeg) GetTravelAdvisory() *RouteLegTravelAdvisory
func (*RouteLeg) ProtoMessage ¶
func (*RouteLeg) ProtoMessage()
func (*RouteLeg) XXX_DiscardUnknown ¶
func (m *RouteLeg) XXX_DiscardUnknown()
func (*RouteLeg) XXX_Marshal ¶
func (*RouteLeg) XXX_Unmarshal ¶
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 *duration.Duration `protobuf:"bytes,2,opt,name=static_duration,json=staticDuration,proto3" json:"static_duration,omitempty"` // The polyline associated with this step. Polyline *Polyline `protobuf:"bytes,3,opt,name=polyline,proto3" json:"polyline,omitempty"` // The start location of this step. StartLocation *Location `protobuf:"bytes,4,opt,name=start_location,json=startLocation,proto3" json:"start_location,omitempty"` // The end location of this step. EndLocation *Location `protobuf:"bytes,5,opt,name=end_location,json=endLocation,proto3" json:"end_location,omitempty"` // Navigation instructions. XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates a segment of a `RouteLeg`. A step corresponds to a single navigation instruction. Route legs are made up of steps.
func (*RouteLegStep) Descriptor ¶
func (*RouteLegStep) Descriptor() ([]byte, []int)
func (*RouteLegStep) GetDistanceMeters ¶
func (m *RouteLegStep) GetDistanceMeters() int32
func (*RouteLegStep) GetEndLocation ¶
func (m *RouteLegStep) GetEndLocation() *Location
func (*RouteLegStep) GetNavigationInstruction ¶
func (m *RouteLegStep) GetNavigationInstruction() *NavigationInstruction
func (*RouteLegStep) GetPolyline ¶
func (m *RouteLegStep) GetPolyline() *Polyline
func (*RouteLegStep) GetStartLocation ¶
func (m *RouteLegStep) GetStartLocation() *Location
func (*RouteLegStep) GetStaticDuration ¶
func (m *RouteLegStep) GetStaticDuration() *duration.Duration
func (*RouteLegStep) ProtoMessage ¶
func (*RouteLegStep) ProtoMessage()
func (*RouteLegStep) Reset ¶
func (m *RouteLegStep) Reset()
func (*RouteLegStep) String ¶
func (m *RouteLegStep) String() string
func (*RouteLegStep) XXX_DiscardUnknown ¶
func (m *RouteLegStep) XXX_DiscardUnknown()
func (*RouteLegStep) XXX_Marshal ¶
func (m *RouteLegStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteLegStep) XXX_Merge ¶
func (m *RouteLegStep) XXX_Merge(src proto.Message)
func (*RouteLegStep) XXX_Size ¶
func (m *RouteLegStep) XXX_Size() int
func (*RouteLegStep) XXX_Unmarshal ¶
func (m *RouteLegStep) XXX_Unmarshal(b []byte) error
type RouteLegTravelAdvisory ¶
type RouteLegTravelAdvisory struct { // Encapsulates information about tolls on the specific RouteLeg. // This field is only populated if we expect there are tolls on the RouteLeg. // If this field is set but the estimated_price subfield is not populated, // we expect that road contains tolls but we do not know an estimated price. // If this field does not exist, then there is no toll on the RouteLeg. TollInfo *TollInfo `protobuf:"bytes,1,opt,name=toll_info,json=tollInfo,proto3" json:"toll_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc. on a route leg.
func (*RouteLegTravelAdvisory) Descriptor ¶
func (*RouteLegTravelAdvisory) Descriptor() ([]byte, []int)
func (*RouteLegTravelAdvisory) GetTollInfo ¶
func (m *RouteLegTravelAdvisory) GetTollInfo() *TollInfo
func (*RouteLegTravelAdvisory) ProtoMessage ¶
func (*RouteLegTravelAdvisory) ProtoMessage()
func (*RouteLegTravelAdvisory) Reset ¶
func (m *RouteLegTravelAdvisory) Reset()
func (*RouteLegTravelAdvisory) String ¶
func (m *RouteLegTravelAdvisory) String() string
func (*RouteLegTravelAdvisory) XXX_DiscardUnknown ¶
func (m *RouteLegTravelAdvisory) XXX_DiscardUnknown()
func (*RouteLegTravelAdvisory) XXX_Marshal ¶
func (m *RouteLegTravelAdvisory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteLegTravelAdvisory) XXX_Merge ¶
func (m *RouteLegTravelAdvisory) XXX_Merge(src proto.Message)
func (*RouteLegTravelAdvisory) XXX_Size ¶
func (m *RouteLegTravelAdvisory) XXX_Size() int
func (*RouteLegTravelAdvisory) XXX_Unmarshal ¶
func (m *RouteLegTravelAdvisory) XXX_Unmarshal(b []byte) error
type RouteMatrixDestination ¶
type RouteMatrixDestination struct { // Required. Destination waypoint Waypoint *Waypoint `protobuf:"bytes,1,opt,name=waypoint,proto3" json:"waypoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A single destination for ComputeRouteMatrixRequest
func (*RouteMatrixDestination) Descriptor ¶
func (*RouteMatrixDestination) Descriptor() ([]byte, []int)
func (*RouteMatrixDestination) GetWaypoint ¶
func (m *RouteMatrixDestination) GetWaypoint() *Waypoint
func (*RouteMatrixDestination) ProtoMessage ¶
func (*RouteMatrixDestination) ProtoMessage()
func (*RouteMatrixDestination) Reset ¶
func (m *RouteMatrixDestination) Reset()
func (*RouteMatrixDestination) String ¶
func (m *RouteMatrixDestination) String() string
func (*RouteMatrixDestination) XXX_DiscardUnknown ¶
func (m *RouteMatrixDestination) XXX_DiscardUnknown()
func (*RouteMatrixDestination) XXX_Marshal ¶
func (m *RouteMatrixDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteMatrixDestination) XXX_Merge ¶
func (m *RouteMatrixDestination) XXX_Merge(src proto.Message)
func (*RouteMatrixDestination) XXX_Size ¶
func (m *RouteMatrixDestination) XXX_Size() int
func (*RouteMatrixDestination) XXX_Unmarshal ¶
func (m *RouteMatrixDestination) XXX_Unmarshal(b []byte) error
type RouteMatrixElement ¶
type RouteMatrixElement struct { // Zero-based index of the origin in the request. OriginIndex int32 `protobuf:"varint,1,opt,name=origin_index,json=originIndex,proto3" json:"origin_index,omitempty"` // Zero-based index of the destination in the request. DestinationIndex int32 `protobuf:"varint,2,opt,name=destination_index,json=destinationIndex,proto3" json:"destination_index,omitempty"` // Error status code for this element. Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // 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 // `route_preference` to `TRAFFIC_UNAWARE`, then this value is the same as // `static_duration`. If you set the `route_preference` to either // `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated // taking traffic conditions into account. Duration *duration.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 *duration.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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.
func (*RouteMatrixElement) Descriptor ¶
func (*RouteMatrixElement) Descriptor() ([]byte, []int)
func (*RouteMatrixElement) GetDestinationIndex ¶
func (m *RouteMatrixElement) GetDestinationIndex() int32
func (*RouteMatrixElement) GetDistanceMeters ¶
func (m *RouteMatrixElement) GetDistanceMeters() int32
func (*RouteMatrixElement) GetDuration ¶
func (m *RouteMatrixElement) GetDuration() *duration.Duration
func (*RouteMatrixElement) GetFallbackInfo ¶
func (m *RouteMatrixElement) GetFallbackInfo() *FallbackInfo
func (*RouteMatrixElement) GetOriginIndex ¶
func (m *RouteMatrixElement) GetOriginIndex() int32
func (*RouteMatrixElement) GetStaticDuration ¶
func (m *RouteMatrixElement) GetStaticDuration() *duration.Duration
func (*RouteMatrixElement) GetStatus ¶
func (m *RouteMatrixElement) GetStatus() *status.Status
func (*RouteMatrixElement) GetTravelAdvisory ¶
func (m *RouteMatrixElement) GetTravelAdvisory() *RouteTravelAdvisory
func (*RouteMatrixElement) ProtoMessage ¶
func (*RouteMatrixElement) ProtoMessage()
func (*RouteMatrixElement) Reset ¶
func (m *RouteMatrixElement) Reset()
func (*RouteMatrixElement) String ¶
func (m *RouteMatrixElement) String() string
func (*RouteMatrixElement) XXX_DiscardUnknown ¶
func (m *RouteMatrixElement) XXX_DiscardUnknown()
func (*RouteMatrixElement) XXX_Marshal ¶
func (m *RouteMatrixElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteMatrixElement) XXX_Merge ¶
func (m *RouteMatrixElement) XXX_Merge(src proto.Message)
func (*RouteMatrixElement) XXX_Size ¶
func (m *RouteMatrixElement) XXX_Size() int
func (*RouteMatrixElement) XXX_Unmarshal ¶
func (m *RouteMatrixElement) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A single origin for ComputeRouteMatrixRequest
func (*RouteMatrixOrigin) Descriptor ¶
func (*RouteMatrixOrigin) Descriptor() ([]byte, []int)
func (*RouteMatrixOrigin) GetRouteModifiers ¶
func (m *RouteMatrixOrigin) GetRouteModifiers() *RouteModifiers
func (*RouteMatrixOrigin) GetWaypoint ¶
func (m *RouteMatrixOrigin) GetWaypoint() *Waypoint
func (*RouteMatrixOrigin) ProtoMessage ¶
func (*RouteMatrixOrigin) ProtoMessage()
func (*RouteMatrixOrigin) Reset ¶
func (m *RouteMatrixOrigin) Reset()
func (*RouteMatrixOrigin) String ¶
func (m *RouteMatrixOrigin) String() string
func (*RouteMatrixOrigin) XXX_DiscardUnknown ¶
func (m *RouteMatrixOrigin) XXX_DiscardUnknown()
func (*RouteMatrixOrigin) XXX_Marshal ¶
func (m *RouteMatrixOrigin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteMatrixOrigin) XXX_Merge ¶
func (m *RouteMatrixOrigin) XXX_Merge(src proto.Message)
func (*RouteMatrixOrigin) XXX_Size ¶
func (m *RouteMatrixOrigin) XXX_Size() int
func (*RouteMatrixOrigin) XXX_Unmarshal ¶
func (m *RouteMatrixOrigin) XXX_Unmarshal(b []byte) error
type RouteModifiers ¶
type RouteModifiers struct { // Specifies whether to avoid toll roads. Applies only to the `DRIVE` and // `TWO_WHEELER` travel modes. AvoidTolls bool `protobuf:"varint,1,opt,name=avoid_tolls,json=avoidTolls,proto3" json:"avoid_tolls,omitempty"` // Specifies whether to avoid highways. Applies only to the `DRIVE` and // `TWO_WHEELER` travel modes. AvoidHighways bool `protobuf:"varint,2,opt,name=avoid_highways,json=avoidHighways,proto3" json:"avoid_highways,omitempty"` // Specifies whether to avoid ferries. Applies only to the `DRIVE` and // `TWO_WHEELER` travel modes. AvoidFerries bool `protobuf:"varint,3,opt,name=avoid_ferries,json=avoidFerries,proto3" json:"avoid_ferries,omitempty"` // Specifies whether to avoid navigating indoors. Applies only to the `WALK` // travel mode. AvoidIndoor bool `protobuf:"varint,4,opt,name=avoid_indoor,json=avoidIndoor,proto3" json:"avoid_indoor,omitempty"` // Optional. 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. // TollPass is unset means no available pass. // Applies only to the DRIVE and TWO_WHEELER travel modes. TollPasses []TollPass `` /* 135-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates a set of optional conditions to satisfy when calculating the routes.
func (*RouteModifiers) Descriptor ¶
func (*RouteModifiers) Descriptor() ([]byte, []int)
func (*RouteModifiers) GetAvoidFerries ¶
func (m *RouteModifiers) GetAvoidFerries() bool
func (*RouteModifiers) GetAvoidHighways ¶
func (m *RouteModifiers) GetAvoidHighways() bool
func (*RouteModifiers) GetAvoidIndoor ¶
func (m *RouteModifiers) GetAvoidIndoor() bool
func (*RouteModifiers) GetAvoidTolls ¶
func (m *RouteModifiers) GetAvoidTolls() bool
func (*RouteModifiers) GetTollPasses ¶
func (m *RouteModifiers) GetTollPasses() []TollPass
func (*RouteModifiers) GetVehicleInfo ¶
func (m *RouteModifiers) GetVehicleInfo() *VehicleInfo
func (*RouteModifiers) ProtoMessage ¶
func (*RouteModifiers) ProtoMessage()
func (*RouteModifiers) Reset ¶
func (m *RouteModifiers) Reset()
func (*RouteModifiers) String ¶
func (m *RouteModifiers) String() string
func (*RouteModifiers) XXX_DiscardUnknown ¶
func (m *RouteModifiers) XXX_DiscardUnknown()
func (*RouteModifiers) XXX_Marshal ¶
func (m *RouteModifiers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteModifiers) XXX_Merge ¶
func (m *RouteModifiers) XXX_Merge(src proto.Message)
func (*RouteModifiers) XXX_Size ¶
func (m *RouteModifiers) XXX_Size() int
func (*RouteModifiers) XXX_Unmarshal ¶
func (m *RouteModifiers) XXX_Unmarshal(b []byte) error
type RouteTravelAdvisory ¶
type RouteTravelAdvisory struct { // The traffic restriction that applies to the route. A vehicle that is // subject to the restriction is not allowed to travel on the route. As of // October 2019, only Jakarta, Indonesia takes into consideration. TrafficRestriction *TrafficRestriction `protobuf:"bytes,1,opt,name=traffic_restriction,json=trafficRestriction,proto3" json:"traffic_restriction,omitempty"` // Encapsulates information about tolls on the Route. // This field is only populated if we expect there are tolls on the Route. // If this field is set but the estimated_price subfield is not populated, // we expect that road contains tolls but we do not know an estimated price. // If this field is not set, then we expect there is no toll on the Route. TollInfo *TollInfo `protobuf:"bytes,2,opt,name=toll_info,json=tollInfo,proto3" json:"toll_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates the additional information that the user should be informed about, such as possible traffic zone restriction etc.
func (*RouteTravelAdvisory) Descriptor ¶
func (*RouteTravelAdvisory) Descriptor() ([]byte, []int)
func (*RouteTravelAdvisory) GetTollInfo ¶
func (m *RouteTravelAdvisory) GetTollInfo() *TollInfo
func (*RouteTravelAdvisory) GetTrafficRestriction ¶
func (m *RouteTravelAdvisory) GetTrafficRestriction() *TrafficRestriction
func (*RouteTravelAdvisory) ProtoMessage ¶
func (*RouteTravelAdvisory) ProtoMessage()
func (*RouteTravelAdvisory) Reset ¶
func (m *RouteTravelAdvisory) Reset()
func (*RouteTravelAdvisory) String ¶
func (m *RouteTravelAdvisory) String() string
func (*RouteTravelAdvisory) XXX_DiscardUnknown ¶
func (m *RouteTravelAdvisory) XXX_DiscardUnknown()
func (*RouteTravelAdvisory) XXX_Marshal ¶
func (m *RouteTravelAdvisory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RouteTravelAdvisory) XXX_Merge ¶
func (m *RouteTravelAdvisory) XXX_Merge(src proto.Message)
func (*RouteTravelAdvisory) XXX_Size ¶
func (m *RouteTravelAdvisory) XXX_Size() int
func (*RouteTravelAdvisory) XXX_Unmarshal ¶
func (m *RouteTravelAdvisory) XXX_Unmarshal(b []byte) error
type RouteTravelMode ¶
type RouteTravelMode int32
A set of values used to specify the mode of travel.
const ( // No travel mode specified. Defaults to `DRIVE`. RouteTravelMode_TRAVEL_MODE_UNSPECIFIED RouteTravelMode = 0 // Travel by passenger car. RouteTravelMode_DRIVE RouteTravelMode = 1 // Travel by bicycle. RouteTravelMode_BICYCLE RouteTravelMode = 2 // Travel by walking. RouteTravelMode_WALK RouteTravelMode = 3 // Two-wheeled, motorized vehicle. For example, motorcycle. Note that this // differs from the `BICYCLE` travel mode which covers human-powered mode. RouteTravelMode_TWO_WHEELER RouteTravelMode = 4 )
func (RouteTravelMode) EnumDescriptor ¶
func (RouteTravelMode) EnumDescriptor() ([]byte, []int)
func (RouteTravelMode) String ¶
func (x RouteTravelMode) String() string
type RoutesPreferredClient ¶
type RoutesPreferredClient interface { // Returns the primary route along with optional alternate routes, given a set // of terminal and intermediate waypoints. // // **NOTE:** This method requires that you specify a response field mask in // the input. You can provide the response field mask by using URL parameter // `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask` // (see the [available URL parameters and // headers](https://cloud.google.com/apis/docs/system-parameters). The value // is a comma separated list of field paths. See detailed documentation about // [how to construct the field // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). // // For example, in this method: // // * Field mask of all available fields (for manual inspection): // `X-Goog-FieldMask: *` // * Field mask of Route-level duration, distance, and polyline (an example // production setup): // `X-Goog-FieldMask: // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline` // // Google discourage the use of the wildcard (`*`) response field mask, or // specifying the field mask at the top level (`routes`), because: // // * Selecting only the fields that you need helps our server save computation // cycles, allowing us to return the result to you with a lower latency. // * Selecting only the fields that you need // in your production job ensures stable latency performance. We might add // more response fields in the future, and those new fields might require // extra computation time. If you select all fields, or if you select all // fields at the top level, then you might experience performance degradation // because any new field we add will be automatically included in the // response. // * Selecting only the fields that you need results in a smaller response // size, and thus higher network throughput. ComputeRoutes(ctx context.Context, in *ComputeRoutesRequest, opts ...grpc.CallOption) (*ComputeRoutesResponse, error) }
RoutesPreferredClient is the client API for RoutesPreferred service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRoutesPreferredClient ¶
func NewRoutesPreferredClient(cc grpc.ClientConnInterface) RoutesPreferredClient
type RoutesPreferredServer ¶
type RoutesPreferredServer interface { // Returns the primary route along with optional alternate routes, given a set // of terminal and intermediate waypoints. // // **NOTE:** This method requires that you specify a response field mask in // the input. You can provide the response field mask by using URL parameter // `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask` // (see the [available URL parameters and // headers](https://cloud.google.com/apis/docs/system-parameters). The value // is a comma separated list of field paths. See detailed documentation about // [how to construct the field // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). // // For example, in this method: // // * Field mask of all available fields (for manual inspection): // `X-Goog-FieldMask: *` // * Field mask of Route-level duration, distance, and polyline (an example // production setup): // `X-Goog-FieldMask: // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline` // // Google discourage the use of the wildcard (`*`) response field mask, or // specifying the field mask at the top level (`routes`), because: // // * Selecting only the fields that you need helps our server save computation // cycles, allowing us to return the result to you with a lower latency. // * Selecting only the fields that you need // in your production job ensures stable latency performance. We might add // more response fields in the future, and those new fields might require // extra computation time. If you select all fields, or if you select all // fields at the top level, then you might experience performance degradation // because any new field we add will be automatically included in the // response. // * Selecting only the fields that you need results in a smaller response // size, and thus higher network throughput. ComputeRoutes(context.Context, *ComputeRoutesRequest) (*ComputeRoutesResponse, error) }
RoutesPreferredServer is the server API for RoutesPreferred service.
type RoutingPreference ¶
type RoutingPreference int32
A set of values that specify factors to take into consideration when calculating the route.
const ( // No routing preference specified. Default to `TRAFFIC_AWARE`. RoutingPreference_ROUTING_PREFERENCE_UNSPECIFIED RoutingPreference = 0 // Computes routes without taking traffic conditions into consideration. // Suitable when traffic conditions don't matter. Using this value produces // the lowest latency. RoutingPreference_TRAFFIC_UNAWARE RoutingPreference = 1 // Calculates routes taking traffic conditions into consideration. In contrast // to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to significantly // reduce latency. RoutingPreference_TRAFFIC_AWARE RoutingPreference = 2 // Calculates the routes taking traffic conditions into consideration, // without applying most performance optimizations. Using this value produces // the highest latency. RoutingPreference_TRAFFIC_AWARE_OPTIMAL RoutingPreference = 3 )
func (RoutingPreference) EnumDescriptor ¶
func (RoutingPreference) EnumDescriptor() ([]byte, []int)
func (RoutingPreference) String ¶
func (x RoutingPreference) String() string
type TollInfo ¶
type TollInfo struct { // The monetary amount of tolls for the corresponding Route or RouteLeg. // This list contains a money amount for each currency that is expected // to be charged by the toll stations. Typically this list will contain only // one item for routes with tolls in one currency. For international trips, // this list may contain multiple items to reflect tolls in different // currencies. EstimatedPrice []*money.Money `protobuf:"bytes,1,rep,name=estimated_price,json=estimatedPrice,proto3" json:"estimated_price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates toll information on a `Route` or on a `RouteLeg`.
func (*TollInfo) Descriptor ¶
func (*TollInfo) GetEstimatedPrice ¶
func (*TollInfo) ProtoMessage ¶
func (*TollInfo) ProtoMessage()
func (*TollInfo) XXX_DiscardUnknown ¶
func (m *TollInfo) XXX_DiscardUnknown()
func (*TollInfo) XXX_Marshal ¶
func (*TollInfo) XXX_Unmarshal ¶
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 // State pass of the Washington state, United States. TollPass_US_WA_GOOD_TO_GO TollPass = 1 // Australia-wide toll pass. // See additional details at https://www.linkt.com.au/. TollPass_AU_LINKT TollPass = 2 )
func (TollPass) EnumDescriptor ¶
type TrafficRestriction ¶
type TrafficRestriction struct { // The restriction based on the vehicle's license plate last character. If // this field does not exist, then no restriction on route. LicensePlateLastCharacterRestriction *LicensePlateLastCharacterRestriction `` /* 175-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates the traffic restriction applied to the route. As of October 2019, only Jakarta, Indonesia takes into consideration.
func (*TrafficRestriction) Descriptor ¶
func (*TrafficRestriction) Descriptor() ([]byte, []int)
func (*TrafficRestriction) GetLicensePlateLastCharacterRestriction ¶
func (m *TrafficRestriction) GetLicensePlateLastCharacterRestriction() *LicensePlateLastCharacterRestriction
func (*TrafficRestriction) ProtoMessage ¶
func (*TrafficRestriction) ProtoMessage()
func (*TrafficRestriction) Reset ¶
func (m *TrafficRestriction) Reset()
func (*TrafficRestriction) String ¶
func (m *TrafficRestriction) String() string
func (*TrafficRestriction) XXX_DiscardUnknown ¶
func (m *TrafficRestriction) XXX_DiscardUnknown()
func (*TrafficRestriction) XXX_Marshal ¶
func (m *TrafficRestriction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TrafficRestriction) XXX_Merge ¶
func (m *TrafficRestriction) XXX_Merge(src proto.Message)
func (*TrafficRestriction) XXX_Size ¶
func (m *TrafficRestriction) XXX_Size() int
func (*TrafficRestriction) XXX_Unmarshal ¶
func (m *TrafficRestriction) XXX_Unmarshal(b []byte) error
type UnimplementedRoutesPreferredServer ¶
type UnimplementedRoutesPreferredServer struct { }
UnimplementedRoutesPreferredServer can be embedded to have forward compatible implementations.
func (*UnimplementedRoutesPreferredServer) ComputeRoutes ¶
func (*UnimplementedRoutesPreferredServer) ComputeRoutes(ctx context.Context, req *ComputeRoutesRequest) (*ComputeRoutesResponse, error)
type Units ¶
type Units int32
A set of values that specify the unit of measure used in the display.
func (Units) EnumDescriptor ¶
type VehicleEmissionType ¶
type VehicleEmissionType int32
A set of values describing the vehicle's emission type. Applies only to the DRIVE travel mode.
const ( // No emission type specified. Default to GASOLINE. VehicleEmissionType_VEHICLE_EMISSION_TYPE_UNSPECIFIED VehicleEmissionType = 0 // Gasoline/petrol fueled vehicle. VehicleEmissionType_GASOLINE VehicleEmissionType = 1 // Electricity powered vehicle. VehicleEmissionType_ELECTRIC VehicleEmissionType = 2 // Hybrid fuel (such as gasoline + electric) vehicle. VehicleEmissionType_HYBRID VehicleEmissionType = 3 )
func (VehicleEmissionType) EnumDescriptor ¶
func (VehicleEmissionType) EnumDescriptor() ([]byte, []int)
func (VehicleEmissionType) String ¶
func (x VehicleEmissionType) String() string
type VehicleInfo ¶
type VehicleInfo struct { // Specifies the license plate last character. Could be a digit or a letter. LicensePlateLastCharacter string `` /* 140-byte string literal not displayed */ // Describes the vehicle's emission type. // Applies only to the DRIVE travel mode. EmissionType VehicleEmissionType `` /* 145-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates the vehicle information, such as the license plate last character.
func (*VehicleInfo) Descriptor ¶
func (*VehicleInfo) Descriptor() ([]byte, []int)
func (*VehicleInfo) GetEmissionType ¶
func (m *VehicleInfo) GetEmissionType() VehicleEmissionType
func (*VehicleInfo) GetLicensePlateLastCharacter ¶
func (m *VehicleInfo) GetLicensePlateLastCharacter() string
func (*VehicleInfo) ProtoMessage ¶
func (*VehicleInfo) ProtoMessage()
func (*VehicleInfo) Reset ¶
func (m *VehicleInfo) Reset()
func (*VehicleInfo) String ¶
func (m *VehicleInfo) String() string
func (*VehicleInfo) XXX_DiscardUnknown ¶
func (m *VehicleInfo) XXX_DiscardUnknown()
func (*VehicleInfo) XXX_Marshal ¶
func (m *VehicleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VehicleInfo) XXX_Merge ¶
func (m *VehicleInfo) XXX_Merge(src proto.Message)
func (*VehicleInfo) XXX_Size ¶
func (m *VehicleInfo) XXX_Size() int
func (*VehicleInfo) XXX_Unmarshal ¶
func (m *VehicleInfo) XXX_Unmarshal(b []byte) error
type Waypoint ¶
type Waypoint struct { // Different ways to represent a location. // // Types that are valid to be assigned to LocationType: // *Waypoint_Location // *Waypoint_PlaceId LocationType isWaypoint_LocationType `protobuf_oneof:"location_type"` // Marks this waypoint as a milestone, as opposed to a stopping point. For // each non-via waypoint in the request, the response appends an entry to the // `legs` array to provide the details for stopovers on that leg of the // trip. Set this value to true when you want the route to pass through this // waypoint without stopping over. Via waypoints don't cause an entry to be // added to the `legs` array, but they do route the journey through the // waypoint. You can only set this value on waypoints that are intermediates. // If you set this field on terminal waypoints, then the request fails. Via bool `protobuf:"varint,3,opt,name=via,proto3" json:"via,omitempty"` // Indicates that the waypoint is meant for vehicles to stop at, where the // intention is to either pickup or drop-off. When you set this value, the // calculated route won't include non-`via` waypoints on roads that are // unsuitable for pickup and drop-off. This option works only for `DRIVE` and // `TWO_WHEELER` travel modes, and when the `location_type` is `location`. VehicleStopover bool `protobuf:"varint,4,opt,name=vehicle_stopover,json=vehicleStopover,proto3" json:"vehicle_stopover,omitempty"` // Indicates that the location of this waypoint is meant to have a preference // for the vehicle to stop at a particular side of road. When you set this // value, the route will pass through the location so that the vehicle can // stop at the side of road that the location is biased towards from the // center of the road. This option works only for 'DRIVE' and 'TWO_WHEELER' // travel modes, and when the 'location_type' is set to 'location'. SideOfRoad bool `protobuf:"varint,5,opt,name=side_of_road,json=sideOfRoad,proto3" json:"side_of_road,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Encapsulates a waypoint. Waypoints mark both the beginning and end of a route, and include intermediate stops along the route.
func (*Waypoint) Descriptor ¶
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) XXX_DiscardUnknown ¶
func (m *Waypoint) XXX_DiscardUnknown()
func (*Waypoint) XXX_Marshal ¶
func (*Waypoint) XXX_OneofWrappers ¶
func (*Waypoint) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Waypoint) XXX_Unmarshal ¶
type Waypoint_Location ¶
type Waypoint_Location struct {
Location *Location `protobuf:"bytes,1,opt,name=location,proto3,oneof"`
}
type Waypoint_PlaceId ¶
type Waypoint_PlaceId struct {
PlaceId string `protobuf:"bytes,2,opt,name=place_id,json=placeId,proto3,oneof"`
}