genproto: google.golang.org/genproto/googleapis/maps/routes/v1 Index | Files

package routes

import "google.golang.org/genproto/googleapis/maps/routes/v1"

Index

Package Files

compute_route_matrix_request.pb.go compute_routes_request.pb.go compute_routes_response.pb.go fallback_info.pb.go polyline.pb.go route.pb.go route_matrix_element.pb.go route_service.pb.go toll_passes.pb.go vehicle_emission_type.pb.go waypoint.pb.go

Variables

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

Enum value maps for RouteTravelMode.

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

Enum value maps for Maneuver.

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 (
    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 (
    TollPass_name = map[int32]string{
        0:  "TOLL_PASS_UNSPECIFIED",
        1:  "US_WA_GOOD_TO_GO",
        2:  "AU_LINKT",
    }
    TollPass_value = map[string]int32{
        "TOLL_PASS_UNSPECIFIED": 0,
        "US_WA_GOOD_TO_GO":      1,
        "AU_LINKT":              2,
    }
)

Enum value maps for TollPass.

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

Enum value maps for VehicleEmissionType.

var File_google_maps_routes_v1_compute_route_matrix_request_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_compute_routes_request_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_compute_routes_response_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_fallback_info_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_polyline_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_route_matrix_element_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_route_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_route_service_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_toll_passes_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_vehicle_emission_type_proto protoreflect.FileDescriptor
var File_google_maps_routes_v1_waypoint_proto protoreflect.FileDescriptor

func RegisterRoutesPreferredServer Uses

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

type ComputeRouteMatrixRequest Uses

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 `protobuf:"varint,3,opt,name=travel_mode,json=travelMode,proto3,enum=google.maps.routes.v1.RouteTravelMode" json:"travel_mode,omitempty"`
    // 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 `protobuf:"varint,4,opt,name=routing_preference,json=routingPreference,proto3,enum=google.maps.routes.v1.RoutingPreference" json:"routing_preference,omitempty"`
    // 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"`
    // contains filtered or unexported fields
}

ComputeRouteMatrix request message

func (*ComputeRouteMatrixRequest) Descriptor Uses

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

Deprecated: Use ComputeRouteMatrixRequest.ProtoReflect.Descriptor instead.

func (*ComputeRouteMatrixRequest) GetDepartureTime Uses

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

func (*ComputeRouteMatrixRequest) GetDestinations Uses

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

func (*ComputeRouteMatrixRequest) GetOrigins Uses

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

func (*ComputeRouteMatrixRequest) GetRoutingPreference Uses

func (x *ComputeRouteMatrixRequest) GetRoutingPreference() RoutingPreference

func (*ComputeRouteMatrixRequest) GetTravelMode Uses

func (x *ComputeRouteMatrixRequest) GetTravelMode() RouteTravelMode

func (*ComputeRouteMatrixRequest) ProtoMessage Uses

func (*ComputeRouteMatrixRequest) ProtoMessage()

func (*ComputeRouteMatrixRequest) ProtoReflect Uses

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

func (*ComputeRouteMatrixRequest) Reset Uses

func (x *ComputeRouteMatrixRequest) Reset()

func (*ComputeRouteMatrixRequest) String Uses

func (x *ComputeRouteMatrixRequest) String() string

type ComputeRoutesRequest Uses

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 `protobuf:"varint,4,opt,name=travel_mode,json=travelMode,proto3,enum=google.maps.routes.v1.RouteTravelMode" json:"travel_mode,omitempty"`
    // 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 `protobuf:"varint,5,opt,name=routing_preference,json=routingPreference,proto3,enum=google.maps.routes.v1.RoutingPreference" json:"routing_preference,omitempty"`
    // Optional. Specifies your preference for the quality of the polyline.
    PolylineQuality PolylineQuality `protobuf:"varint,6,opt,name=polyline_quality,json=polylineQuality,proto3,enum=google.maps.routes.v1.PolylineQuality" json:"polyline_quality,omitempty"`
    // 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 `protobuf:"varint,8,opt,name=compute_alternative_routes,json=computeAlternativeRoutes,proto3" json:"compute_alternative_routes,omitempty"`
    // 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"`
    // contains filtered or unexported fields
}

ComputeRoutes request message.

func (*ComputeRoutesRequest) Descriptor Uses

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

Deprecated: Use ComputeRoutesRequest.ProtoReflect.Descriptor instead.

func (*ComputeRoutesRequest) GetComputeAlternativeRoutes Uses

func (x *ComputeRoutesRequest) GetComputeAlternativeRoutes() bool

func (*ComputeRoutesRequest) GetDepartureTime Uses

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

func (*ComputeRoutesRequest) GetDestination Uses

func (x *ComputeRoutesRequest) GetDestination() *Waypoint

func (*ComputeRoutesRequest) GetIntermediates Uses

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

func (*ComputeRoutesRequest) GetLanguageCode Uses

func (x *ComputeRoutesRequest) GetLanguageCode() string

func (*ComputeRoutesRequest) GetOrigin Uses

func (x *ComputeRoutesRequest) GetOrigin() *Waypoint

func (*ComputeRoutesRequest) GetPolylineQuality Uses

func (x *ComputeRoutesRequest) GetPolylineQuality() PolylineQuality

func (*ComputeRoutesRequest) GetRouteModifiers Uses

func (x *ComputeRoutesRequest) GetRouteModifiers() *RouteModifiers

func (*ComputeRoutesRequest) GetRoutingPreference Uses

func (x *ComputeRoutesRequest) GetRoutingPreference() RoutingPreference

func (*ComputeRoutesRequest) GetTravelMode Uses

func (x *ComputeRoutesRequest) GetTravelMode() RouteTravelMode

func (*ComputeRoutesRequest) GetUnits Uses

func (x *ComputeRoutesRequest) GetUnits() Units

func (*ComputeRoutesRequest) ProtoMessage Uses

func (*ComputeRoutesRequest) ProtoMessage()

func (*ComputeRoutesRequest) ProtoReflect Uses

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

func (*ComputeRoutesRequest) Reset Uses

func (x *ComputeRoutesRequest) Reset()

func (*ComputeRoutesRequest) String Uses

func (x *ComputeRoutesRequest) String() string

type ComputeRoutesResponse Uses

type ComputeRoutesResponse struct {

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

ComputeRoutes the response message.

func (*ComputeRoutesResponse) Descriptor Uses

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

Deprecated: Use ComputeRoutesResponse.ProtoReflect.Descriptor instead.

func (*ComputeRoutesResponse) GetFallbackInfo Uses

func (x *ComputeRoutesResponse) GetFallbackInfo() *FallbackInfo

func (*ComputeRoutesResponse) GetRoutes Uses

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

func (*ComputeRoutesResponse) ProtoMessage Uses

func (*ComputeRoutesResponse) ProtoMessage()

func (*ComputeRoutesResponse) ProtoReflect Uses

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

func (*ComputeRoutesResponse) Reset Uses

func (x *ComputeRoutesResponse) Reset()

func (*ComputeRoutesResponse) String Uses

func (x *ComputeRoutesResponse) String() string

type FallbackInfo Uses

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 `protobuf:"varint,1,opt,name=routing_mode,json=routingMode,proto3,enum=google.maps.routes.v1.FallbackRoutingMode" json:"routing_mode,omitempty"`
    // The reason why fallback response was used instead of the original response.
    // This field is only populated when the fallback mode is triggered and the
    // fallback response is returned.
    Reason FallbackReason `protobuf:"varint,2,opt,name=reason,proto3,enum=google.maps.routes.v1.FallbackReason" json:"reason,omitempty"`
    // contains filtered or unexported fields
}

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

func (*FallbackInfo) Descriptor Uses

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

Deprecated: Use FallbackInfo.ProtoReflect.Descriptor instead.

func (*FallbackInfo) GetReason Uses

func (x *FallbackInfo) GetReason() FallbackReason

func (*FallbackInfo) GetRoutingMode Uses

func (x *FallbackInfo) GetRoutingMode() FallbackRoutingMode

func (*FallbackInfo) ProtoMessage Uses

func (*FallbackInfo) ProtoMessage()

func (*FallbackInfo) ProtoReflect Uses

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

func (*FallbackInfo) Reset Uses

func (x *FallbackInfo) Reset()

func (*FallbackInfo) String Uses

func (x *FallbackInfo) String() string

type FallbackReason Uses

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 Uses

func (FallbackReason) Descriptor() protoreflect.EnumDescriptor

func (FallbackReason) Enum Uses

func (x FallbackReason) Enum() *FallbackReason

func (FallbackReason) EnumDescriptor Uses

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

Deprecated: Use FallbackReason.Descriptor instead.

func (FallbackReason) Number Uses

func (x FallbackReason) Number() protoreflect.EnumNumber

func (FallbackReason) String Uses

func (x FallbackReason) String() string

func (FallbackReason) Type Uses

func (FallbackReason) Type() protoreflect.EnumType

type FallbackRoutingMode Uses

type FallbackRoutingMode int32

Actual routing mode used for returned fallback response.

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

func (FallbackRoutingMode) Descriptor Uses

func (FallbackRoutingMode) Descriptor() protoreflect.EnumDescriptor

func (FallbackRoutingMode) Enum Uses

func (x FallbackRoutingMode) Enum() *FallbackRoutingMode

func (FallbackRoutingMode) EnumDescriptor Uses

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

Deprecated: Use FallbackRoutingMode.Descriptor instead.

func (FallbackRoutingMode) Number Uses

func (x FallbackRoutingMode) Number() protoreflect.EnumNumber

func (FallbackRoutingMode) String Uses

func (x FallbackRoutingMode) String() string

func (FallbackRoutingMode) Type Uses

func (FallbackRoutingMode) Type() protoreflect.EnumType

type LicensePlateLastCharacterRestriction Uses

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 `protobuf:"bytes,1,rep,name=allowed_last_characters,json=allowedLastCharacters,proto3" json:"allowed_last_characters,omitempty"`
    // contains filtered or unexported fields
}

Encapsulates the license plate last character restriction.

func (*LicensePlateLastCharacterRestriction) Descriptor Uses

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

Deprecated: Use LicensePlateLastCharacterRestriction.ProtoReflect.Descriptor instead.

func (*LicensePlateLastCharacterRestriction) GetAllowedLastCharacters Uses

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

func (*LicensePlateLastCharacterRestriction) ProtoMessage Uses

func (*LicensePlateLastCharacterRestriction) ProtoMessage()

func (*LicensePlateLastCharacterRestriction) ProtoReflect Uses

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

func (*LicensePlateLastCharacterRestriction) Reset Uses

func (x *LicensePlateLastCharacterRestriction) Reset()

func (*LicensePlateLastCharacterRestriction) String Uses

func (x *LicensePlateLastCharacterRestriction) String() string

type Location Uses

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"`
    // contains filtered or unexported fields
}

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

func (*Location) Descriptor Uses

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetHeading Uses

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

func (*Location) GetLatLng Uses

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

func (*Location) ProtoMessage Uses

func (*Location) ProtoMessage()

func (*Location) ProtoReflect Uses

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

func (*Location) Reset Uses

func (x *Location) Reset()

func (*Location) String Uses

func (x *Location) String() string

type Maneuver Uses

type Maneuver int32

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

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

func (Maneuver) Descriptor Uses

func (Maneuver) Descriptor() protoreflect.EnumDescriptor

func (Maneuver) Enum Uses

func (x Maneuver) Enum() *Maneuver

func (Maneuver) EnumDescriptor Uses

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

Deprecated: Use Maneuver.Descriptor instead.

func (Maneuver) Number Uses

func (x Maneuver) Number() protoreflect.EnumNumber

func (Maneuver) String Uses

func (x Maneuver) String() string

func (Maneuver) Type Uses

func (Maneuver) Type() protoreflect.EnumType
type NavigationInstruction struct {

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

Deprecated: Use NavigationInstruction.ProtoReflect.Descriptor instead.

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

type Polyline Uses

type Polyline struct {

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

Encapsulates an encoded polyline.

func (*Polyline) Descriptor Uses

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

Deprecated: Use Polyline.ProtoReflect.Descriptor instead.

func (*Polyline) GetEncodedPolyline Uses

func (x *Polyline) GetEncodedPolyline() string

func (*Polyline) GetPolylineType Uses

func (m *Polyline) GetPolylineType() isPolyline_PolylineType

func (*Polyline) ProtoMessage Uses

func (*Polyline) ProtoMessage()

func (*Polyline) ProtoReflect Uses

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

func (*Polyline) Reset Uses

func (x *Polyline) Reset()

func (*Polyline) String Uses

func (x *Polyline) String() string

type PolylineQuality Uses

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 Uses

func (PolylineQuality) Descriptor() protoreflect.EnumDescriptor

func (PolylineQuality) Enum Uses

func (x PolylineQuality) Enum() *PolylineQuality

func (PolylineQuality) EnumDescriptor Uses

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

Deprecated: Use PolylineQuality.Descriptor instead.

func (PolylineQuality) Number Uses

func (x PolylineQuality) Number() protoreflect.EnumNumber

func (PolylineQuality) String Uses

func (x PolylineQuality) String() string

func (PolylineQuality) Type Uses

func (PolylineQuality) Type() protoreflect.EnumType

type Polyline_EncodedPolyline Uses

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 Route Uses

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"`
    // contains filtered or unexported fields
}

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

func (*Route) Descriptor Uses

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetDescription Uses

func (x *Route) GetDescription() string

func (*Route) GetDistanceMeters Uses

func (x *Route) GetDistanceMeters() int32

func (*Route) GetDuration Uses

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

func (*Route) GetLegs Uses

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

func (*Route) GetPolyline Uses

func (x *Route) GetPolyline() *Polyline

func (*Route) GetStaticDuration Uses

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

func (*Route) GetTravelAdvisory Uses

func (x *Route) GetTravelAdvisory() *RouteTravelAdvisory

func (*Route) GetViewport Uses

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

func (*Route) GetWarnings Uses

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

func (*Route) ProtoMessage Uses

func (*Route) ProtoMessage()

func (*Route) ProtoReflect Uses

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

func (*Route) Reset Uses

func (x *Route) Reset()

func (*Route) String Uses

func (x *Route) String() string

type RouteLeg Uses

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"`
    // contains filtered or unexported fields
}

Encapsulates a segment between non-`via` waypoints.

func (*RouteLeg) Descriptor Uses

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

Deprecated: Use RouteLeg.ProtoReflect.Descriptor instead.

func (*RouteLeg) GetDistanceMeters Uses

func (x *RouteLeg) GetDistanceMeters() int32

func (*RouteLeg) GetDuration Uses

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

func (*RouteLeg) GetEndLocation Uses

func (x *RouteLeg) GetEndLocation() *Location

func (*RouteLeg) GetPolyline Uses

func (x *RouteLeg) GetPolyline() *Polyline

func (*RouteLeg) GetStartLocation Uses

func (x *RouteLeg) GetStartLocation() *Location

func (*RouteLeg) GetStaticDuration Uses

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

func (*RouteLeg) GetSteps Uses

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

func (*RouteLeg) GetTravelAdvisory Uses

func (x *RouteLeg) GetTravelAdvisory() *RouteLegTravelAdvisory

func (*RouteLeg) ProtoMessage Uses

func (*RouteLeg) ProtoMessage()

func (*RouteLeg) ProtoReflect Uses

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

func (*RouteLeg) Reset Uses

func (x *RouteLeg) Reset()

func (*RouteLeg) String Uses

func (x *RouteLeg) String() string

type RouteLegStep Uses

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.
    NavigationInstruction *NavigationInstruction `protobuf:"bytes,6,opt,name=navigation_instruction,json=navigationInstruction,proto3" json:"navigation_instruction,omitempty"`
    // contains filtered or unexported fields
}

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

func (*RouteLegStep) Descriptor Uses

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

Deprecated: Use RouteLegStep.ProtoReflect.Descriptor instead.

func (*RouteLegStep) GetDistanceMeters Uses

func (x *RouteLegStep) GetDistanceMeters() int32

func (*RouteLegStep) GetEndLocation Uses

func (x *RouteLegStep) GetEndLocation() *Location

func (*RouteLegStep) GetNavigationInstruction Uses

func (x *RouteLegStep) GetNavigationInstruction() *NavigationInstruction

func (*RouteLegStep) GetPolyline Uses

func (x *RouteLegStep) GetPolyline() *Polyline

func (*RouteLegStep) GetStartLocation Uses

func (x *RouteLegStep) GetStartLocation() *Location

func (*RouteLegStep) GetStaticDuration Uses

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

func (*RouteLegStep) ProtoMessage Uses

func (*RouteLegStep) ProtoMessage()

func (*RouteLegStep) ProtoReflect Uses

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

func (*RouteLegStep) Reset Uses

func (x *RouteLegStep) Reset()

func (*RouteLegStep) String Uses

func (x *RouteLegStep) String() string

type RouteLegTravelAdvisory Uses

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"`
    // contains filtered or unexported fields
}

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

func (*RouteLegTravelAdvisory) Descriptor Uses

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

Deprecated: Use RouteLegTravelAdvisory.ProtoReflect.Descriptor instead.

func (*RouteLegTravelAdvisory) GetTollInfo Uses

func (x *RouteLegTravelAdvisory) GetTollInfo() *TollInfo

func (*RouteLegTravelAdvisory) ProtoMessage Uses

func (*RouteLegTravelAdvisory) ProtoMessage()

func (*RouteLegTravelAdvisory) ProtoReflect Uses

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

func (*RouteLegTravelAdvisory) Reset Uses

func (x *RouteLegTravelAdvisory) Reset()

func (*RouteLegTravelAdvisory) String Uses

func (x *RouteLegTravelAdvisory) String() string

type RouteMatrixDestination Uses

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 Uses

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

Deprecated: Use RouteMatrixDestination.ProtoReflect.Descriptor instead.

func (*RouteMatrixDestination) GetWaypoint Uses

func (x *RouteMatrixDestination) GetWaypoint() *Waypoint

func (*RouteMatrixDestination) ProtoMessage Uses

func (*RouteMatrixDestination) ProtoMessage()

func (*RouteMatrixDestination) ProtoReflect Uses

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

func (*RouteMatrixDestination) Reset Uses

func (x *RouteMatrixDestination) Reset()

func (*RouteMatrixDestination) String Uses

func (x *RouteMatrixDestination) String() string

type RouteMatrixElement Uses

type RouteMatrixElement struct {

    // Zero-based index of the origin in the request.
    OriginIndex int32 `protobuf:"varint,1,opt,name=origin_index,json=originIndex,proto3" json:"origin_index,omitempty"`
    // Zero-based index of the destination in the request.
    DestinationIndex int32 `protobuf:"varint,2,opt,name=destination_index,json=destinationIndex,proto3" json:"destination_index,omitempty"`
    // Error status code for this element.
    Status *status.Status `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
    // Indicates whether the route was found or not. Independent of status.
    Condition RouteMatrixElementCondition `protobuf:"varint,9,opt,name=condition,proto3,enum=google.maps.routes.v1.RouteMatrixElementCondition" json:"condition,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"`
    // contains filtered or unexported fields
}

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

func (*RouteMatrixElement) Descriptor Uses

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

Deprecated: Use RouteMatrixElement.ProtoReflect.Descriptor instead.

func (*RouteMatrixElement) GetCondition Uses

func (x *RouteMatrixElement) GetCondition() RouteMatrixElementCondition

func (*RouteMatrixElement) GetDestinationIndex Uses

func (x *RouteMatrixElement) GetDestinationIndex() int32

func (*RouteMatrixElement) GetDistanceMeters Uses

func (x *RouteMatrixElement) GetDistanceMeters() int32

func (*RouteMatrixElement) GetDuration Uses

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

func (*RouteMatrixElement) GetFallbackInfo Uses

func (x *RouteMatrixElement) GetFallbackInfo() *FallbackInfo

func (*RouteMatrixElement) GetOriginIndex Uses

func (x *RouteMatrixElement) GetOriginIndex() int32

func (*RouteMatrixElement) GetStaticDuration Uses

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

func (*RouteMatrixElement) GetStatus Uses

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

func (*RouteMatrixElement) GetTravelAdvisory Uses

func (x *RouteMatrixElement) GetTravelAdvisory() *RouteTravelAdvisory

func (*RouteMatrixElement) ProtoMessage Uses

func (*RouteMatrixElement) ProtoMessage()

func (*RouteMatrixElement) ProtoReflect Uses

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

func (*RouteMatrixElement) Reset Uses

func (x *RouteMatrixElement) Reset()

func (*RouteMatrixElement) String Uses

func (x *RouteMatrixElement) String() string

type RouteMatrixElementCondition Uses

type RouteMatrixElementCondition int32

The condition of the route being returned.

const (
    // Not used.
    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 Uses

func (RouteMatrixElementCondition) Descriptor() protoreflect.EnumDescriptor

func (RouteMatrixElementCondition) Enum Uses

func (x RouteMatrixElementCondition) Enum() *RouteMatrixElementCondition

func (RouteMatrixElementCondition) EnumDescriptor Uses

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

Deprecated: Use RouteMatrixElementCondition.Descriptor instead.

func (RouteMatrixElementCondition) Number Uses

func (x RouteMatrixElementCondition) Number() protoreflect.EnumNumber

func (RouteMatrixElementCondition) String Uses

func (x RouteMatrixElementCondition) String() string

func (RouteMatrixElementCondition) Type Uses

func (RouteMatrixElementCondition) Type() protoreflect.EnumType

type RouteMatrixOrigin Uses

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 Uses

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

Deprecated: Use RouteMatrixOrigin.ProtoReflect.Descriptor instead.

func (*RouteMatrixOrigin) GetRouteModifiers Uses

func (x *RouteMatrixOrigin) GetRouteModifiers() *RouteModifiers

func (*RouteMatrixOrigin) GetWaypoint Uses

func (x *RouteMatrixOrigin) GetWaypoint() *Waypoint

func (*RouteMatrixOrigin) ProtoMessage Uses

func (*RouteMatrixOrigin) ProtoMessage()

func (*RouteMatrixOrigin) ProtoReflect Uses

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

func (*RouteMatrixOrigin) Reset Uses

func (x *RouteMatrixOrigin) Reset()

func (*RouteMatrixOrigin) String Uses

func (x *RouteMatrixOrigin) String() string

type RouteModifiers Uses

type RouteModifiers struct {

    // Specifies whether to avoid toll roads where reasonable. Preference will be
    // given to routes not containing toll roads. Applies only to the `DRIVE` and
    // `TWO_WHEELER` travel modes.
    AvoidTolls bool `protobuf:"varint,1,opt,name=avoid_tolls,json=avoidTolls,proto3" json:"avoid_tolls,omitempty"`
    // Specifies whether to avoid highways where reasonable. Preference will be
    // given to routes not containing highways. Applies only to the `DRIVE` and
    // `TWO_WHEELER` travel modes.
    AvoidHighways bool `protobuf:"varint,2,opt,name=avoid_highways,json=avoidHighways,proto3" json:"avoid_highways,omitempty"`
    // Specifies whether to avoid ferries where reasonable. Preference will be
    // given to routes not containing travel by ferries.
    // Applies only to the `DRIVE` and`TWO_WHEELER` travel modes.
    AvoidFerries bool `protobuf:"varint,3,opt,name=avoid_ferries,json=avoidFerries,proto3" json:"avoid_ferries,omitempty"`
    // Specifies whether to avoid navigating indoors where reasonable. Preference
    // will be given to routes not containing indoor navigation.
    // Applies only to the `WALK` travel mode.
    AvoidIndoor bool `protobuf:"varint,4,opt,name=avoid_indoor,json=avoidIndoor,proto3" json:"avoid_indoor,omitempty"`
    // 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 `protobuf:"varint,6,rep,packed,name=toll_passes,json=tollPasses,proto3,enum=google.maps.routes.v1.TollPass" json:"toll_passes,omitempty"`
    // contains filtered or unexported fields
}

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

func (*RouteModifiers) Descriptor Uses

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

Deprecated: Use RouteModifiers.ProtoReflect.Descriptor instead.

func (*RouteModifiers) GetAvoidFerries Uses

func (x *RouteModifiers) GetAvoidFerries() bool

func (*RouteModifiers) GetAvoidHighways Uses

func (x *RouteModifiers) GetAvoidHighways() bool

func (*RouteModifiers) GetAvoidIndoor Uses

func (x *RouteModifiers) GetAvoidIndoor() bool

func (*RouteModifiers) GetAvoidTolls Uses

func (x *RouteModifiers) GetAvoidTolls() bool

func (*RouteModifiers) GetTollPasses Uses

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

func (*RouteModifiers) GetVehicleInfo Uses

func (x *RouteModifiers) GetVehicleInfo() *VehicleInfo

func (*RouteModifiers) ProtoMessage Uses

func (*RouteModifiers) ProtoMessage()

func (*RouteModifiers) ProtoReflect Uses

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

func (*RouteModifiers) Reset Uses

func (x *RouteModifiers) Reset()

func (*RouteModifiers) String Uses

func (x *RouteModifiers) String() string

type RouteTravelAdvisory Uses

type RouteTravelAdvisory struct {

    // The traffic restriction that applies to the route. A vehicle that is
    // subject to the restriction is not allowed to travel on the route. As of
    // October 2019, only Jakarta, Indonesia takes into consideration.
    TrafficRestriction *TrafficRestriction `protobuf:"bytes,1,opt,name=traffic_restriction,json=trafficRestriction,proto3" json:"traffic_restriction,omitempty"`
    // Encapsulates information about tolls on the Route.
    // This field is only populated if we expect there are tolls on the Route.
    // If this field is set but the estimated_price subfield is not populated,
    // we expect that road contains tolls but we do not know an estimated price.
    // If this field is not set, then we expect there is no toll on the Route.
    TollInfo *TollInfo `protobuf:"bytes,2,opt,name=toll_info,json=tollInfo,proto3" json:"toll_info,omitempty"`
    // Speed reading intervals detailing traffic density. Applicable in case of
    // TRAFFIC_AWARE and TRAFFIC_AWARE_OPTIMAL routing preferences.
    // The intervals cover the entire polyline of the route without overlaps, i.e.
    // the start point of a given interval coincides with 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 `protobuf:"bytes,3,rep,name=speed_reading_intervals,json=speedReadingIntervals,proto3" json:"speed_reading_intervals,omitempty"`
    // contains filtered or unexported fields
}

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

func (*RouteTravelAdvisory) Descriptor Uses

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

Deprecated: Use RouteTravelAdvisory.ProtoReflect.Descriptor instead.

func (*RouteTravelAdvisory) GetSpeedReadingIntervals Uses

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

func (*RouteTravelAdvisory) GetTollInfo Uses

func (x *RouteTravelAdvisory) GetTollInfo() *TollInfo

func (*RouteTravelAdvisory) GetTrafficRestriction Uses

func (x *RouteTravelAdvisory) GetTrafficRestriction() *TrafficRestriction

func (*RouteTravelAdvisory) ProtoMessage Uses

func (*RouteTravelAdvisory) ProtoMessage()

func (*RouteTravelAdvisory) ProtoReflect Uses

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

func (*RouteTravelAdvisory) Reset Uses

func (x *RouteTravelAdvisory) Reset()

func (*RouteTravelAdvisory) String Uses

func (x *RouteTravelAdvisory) String() string

type RouteTravelMode Uses

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) Descriptor Uses

func (RouteTravelMode) Descriptor() protoreflect.EnumDescriptor

func (RouteTravelMode) Enum Uses

func (x RouteTravelMode) Enum() *RouteTravelMode

func (RouteTravelMode) EnumDescriptor Uses

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

Deprecated: Use RouteTravelMode.Descriptor instead.

func (RouteTravelMode) Number Uses

func (x RouteTravelMode) Number() protoreflect.EnumNumber

func (RouteTravelMode) String Uses

func (x RouteTravelMode) String() string

func (RouteTravelMode) Type Uses

func (RouteTravelMode) Type() protoreflect.EnumType

type RoutesPreferredClient Uses

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 Uses

func NewRoutesPreferredClient(cc grpc.ClientConnInterface) RoutesPreferredClient

type RoutesPreferredServer Uses

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 Uses

type RoutingPreference int32

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

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

func (RoutingPreference) Descriptor Uses

func (RoutingPreference) Descriptor() protoreflect.EnumDescriptor

func (RoutingPreference) Enum Uses

func (x RoutingPreference) Enum() *RoutingPreference

func (RoutingPreference) EnumDescriptor Uses

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

Deprecated: Use RoutingPreference.Descriptor instead.

func (RoutingPreference) Number Uses

func (x RoutingPreference) Number() protoreflect.EnumNumber

func (RoutingPreference) String Uses

func (x RoutingPreference) String() string

func (RoutingPreference) Type Uses

func (RoutingPreference) Type() protoreflect.EnumType

type SpeedReadingInterval Uses

type SpeedReadingInterval struct {

    // The index of the starting polyline point of the interval
    // in the ordered list of polyline points.
    // In JSON, when the index is 0, the field will appear to be unpopulated.
    StartPolylinePointIndex int32 `protobuf:"varint,1,opt,name=start_polyline_point_index,json=startPolylinePointIndex,proto3" json:"start_polyline_point_index,omitempty"`
    // The index of the ending polyline point of the interval
    // (with off-by-one ending) in the ordered list of polyline points.
    // In JSON, when the index is 0, the field will appear to be unpopulated.
    EndPolylinePointIndex int32 `protobuf:"varint,2,opt,name=end_polyline_point_index,json=endPolylinePointIndex,proto3" json:"end_polyline_point_index,omitempty"`
    // Traffic information speed at the interval.
    Speed SpeedReadingInterval_Speed `protobuf:"varint,3,opt,name=speed,proto3,enum=google.maps.routes.v1.SpeedReadingInterval_Speed" json:"speed,omitempty"`
    // contains filtered or unexported fields
}

Traffic density indicator on a contiguous segment of a polyline. Given a polyline with polyline points P_0, P_1, ... , P_N (the indexing is zero-based), the SpeedReadingInterval defines an interval (including the start, exclusing the end point) and describes the traffic density on the respective interval using the below style categories.

func (*SpeedReadingInterval) Descriptor Uses

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

Deprecated: Use SpeedReadingInterval.ProtoReflect.Descriptor instead.

func (*SpeedReadingInterval) GetEndPolylinePointIndex Uses

func (x *SpeedReadingInterval) GetEndPolylinePointIndex() int32

func (*SpeedReadingInterval) GetSpeed Uses

func (x *SpeedReadingInterval) GetSpeed() SpeedReadingInterval_Speed

func (*SpeedReadingInterval) GetStartPolylinePointIndex Uses

func (x *SpeedReadingInterval) GetStartPolylinePointIndex() int32

func (*SpeedReadingInterval) ProtoMessage Uses

func (*SpeedReadingInterval) ProtoMessage()

func (*SpeedReadingInterval) ProtoReflect Uses

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

func (*SpeedReadingInterval) Reset Uses

func (x *SpeedReadingInterval) Reset()

func (*SpeedReadingInterval) String Uses

func (x *SpeedReadingInterval) String() string

type SpeedReadingInterval_Speed Uses

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 Uses

func (SpeedReadingInterval_Speed) Descriptor() protoreflect.EnumDescriptor

func (SpeedReadingInterval_Speed) Enum Uses

func (x SpeedReadingInterval_Speed) Enum() *SpeedReadingInterval_Speed

func (SpeedReadingInterval_Speed) EnumDescriptor Uses

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

Deprecated: Use SpeedReadingInterval_Speed.Descriptor instead.

func (SpeedReadingInterval_Speed) Number Uses

func (x SpeedReadingInterval_Speed) Number() protoreflect.EnumNumber

func (SpeedReadingInterval_Speed) String Uses

func (x SpeedReadingInterval_Speed) String() string

func (SpeedReadingInterval_Speed) Type Uses

func (SpeedReadingInterval_Speed) Type() protoreflect.EnumType

type TollInfo Uses

type TollInfo struct {

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

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

func (*TollInfo) Descriptor Uses

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

Deprecated: Use TollInfo.ProtoReflect.Descriptor instead.

func (*TollInfo) GetEstimatedPrice Uses

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

func (*TollInfo) ProtoMessage Uses

func (*TollInfo) ProtoMessage()

func (*TollInfo) ProtoReflect Uses

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

func (*TollInfo) Reset Uses

func (x *TollInfo) Reset()

func (*TollInfo) String Uses

func (x *TollInfo) String() string

type TollPass Uses

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) Descriptor Uses

func (TollPass) Descriptor() protoreflect.EnumDescriptor

func (TollPass) Enum Uses

func (x TollPass) Enum() *TollPass

func (TollPass) EnumDescriptor Uses

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

Deprecated: Use TollPass.Descriptor instead.

func (TollPass) Number Uses

func (x TollPass) Number() protoreflect.EnumNumber

func (TollPass) String Uses

func (x TollPass) String() string

func (TollPass) Type Uses

func (TollPass) Type() protoreflect.EnumType

type TrafficRestriction Uses

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 `protobuf:"bytes,1,opt,name=license_plate_last_character_restriction,json=licensePlateLastCharacterRestriction,proto3" json:"license_plate_last_character_restriction,omitempty"`
    // contains filtered or unexported fields
}

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

func (*TrafficRestriction) Descriptor Uses

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

Deprecated: Use TrafficRestriction.ProtoReflect.Descriptor instead.

func (*TrafficRestriction) GetLicensePlateLastCharacterRestriction Uses

func (x *TrafficRestriction) GetLicensePlateLastCharacterRestriction() *LicensePlateLastCharacterRestriction

func (*TrafficRestriction) ProtoMessage Uses

func (*TrafficRestriction) ProtoMessage()

func (*TrafficRestriction) ProtoReflect Uses

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

func (*TrafficRestriction) Reset Uses

func (x *TrafficRestriction) Reset()

func (*TrafficRestriction) String Uses

func (x *TrafficRestriction) String() string

type UnimplementedRoutesPreferredServer Uses

type UnimplementedRoutesPreferredServer struct {
}

UnimplementedRoutesPreferredServer can be embedded to have forward compatible implementations.

func (*UnimplementedRoutesPreferredServer) ComputeRoutes Uses

func (*UnimplementedRoutesPreferredServer) ComputeRoutes(context.Context, *ComputeRoutesRequest) (*ComputeRoutesResponse, error)

type Units Uses

type Units int32

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

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

func (Units) Descriptor Uses

func (Units) Descriptor() protoreflect.EnumDescriptor

func (Units) Enum Uses

func (x Units) Enum() *Units

func (Units) EnumDescriptor Uses

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

Deprecated: Use Units.Descriptor instead.

func (Units) Number Uses

func (x Units) Number() protoreflect.EnumNumber

func (Units) String Uses

func (x Units) String() string

func (Units) Type Uses

func (Units) Type() protoreflect.EnumType

type VehicleEmissionType Uses

type VehicleEmissionType int32

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

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

func (VehicleEmissionType) Descriptor Uses

func (VehicleEmissionType) Descriptor() protoreflect.EnumDescriptor

func (VehicleEmissionType) Enum Uses

func (x VehicleEmissionType) Enum() *VehicleEmissionType

func (VehicleEmissionType) EnumDescriptor Uses

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

Deprecated: Use VehicleEmissionType.Descriptor instead.

func (VehicleEmissionType) Number Uses

func (x VehicleEmissionType) Number() protoreflect.EnumNumber

func (VehicleEmissionType) String Uses

func (x VehicleEmissionType) String() string

func (VehicleEmissionType) Type Uses

func (VehicleEmissionType) Type() protoreflect.EnumType

type VehicleInfo Uses

type VehicleInfo struct {

    // Specifies the license plate last character. Could be a digit or a letter.
    LicensePlateLastCharacter string `protobuf:"bytes,1,opt,name=license_plate_last_character,json=licensePlateLastCharacter,proto3" json:"license_plate_last_character,omitempty"`
    // Describes the vehicle's emission type.
    // Applies only to the DRIVE travel mode.
    EmissionType VehicleEmissionType `protobuf:"varint,2,opt,name=emission_type,json=emissionType,proto3,enum=google.maps.routes.v1.VehicleEmissionType" json:"emission_type,omitempty"`
    // contains filtered or unexported fields
}

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

func (*VehicleInfo) Descriptor Uses

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

Deprecated: Use VehicleInfo.ProtoReflect.Descriptor instead.

func (*VehicleInfo) GetEmissionType Uses

func (x *VehicleInfo) GetEmissionType() VehicleEmissionType

func (*VehicleInfo) GetLicensePlateLastCharacter Uses

func (x *VehicleInfo) GetLicensePlateLastCharacter() string

func (*VehicleInfo) ProtoMessage Uses

func (*VehicleInfo) ProtoMessage()

func (*VehicleInfo) ProtoReflect Uses

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

func (*VehicleInfo) Reset Uses

func (x *VehicleInfo) Reset()

func (*VehicleInfo) String Uses

func (x *VehicleInfo) String() string

type Waypoint Uses

type Waypoint struct {

    // Different ways to represent a location.
    //
    // Types that are assignable to LocationType:
    //	*Waypoint_Location
    //	*Waypoint_PlaceId
    LocationType isWaypoint_LocationType `protobuf_oneof:"location_type"`
    // Marks this waypoint as a milestone, 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"`
    // 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 Uses

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

Deprecated: Use Waypoint.ProtoReflect.Descriptor instead.

func (*Waypoint) GetLocation Uses

func (x *Waypoint) GetLocation() *Location

func (*Waypoint) GetLocationType Uses

func (m *Waypoint) GetLocationType() isWaypoint_LocationType

func (*Waypoint) GetPlaceId Uses

func (x *Waypoint) GetPlaceId() string

func (*Waypoint) GetSideOfRoad Uses

func (x *Waypoint) GetSideOfRoad() bool

func (*Waypoint) GetVehicleStopover Uses

func (x *Waypoint) GetVehicleStopover() bool

func (*Waypoint) GetVia Uses

func (x *Waypoint) GetVia() bool

func (*Waypoint) ProtoMessage Uses

func (*Waypoint) ProtoMessage()

func (*Waypoint) ProtoReflect Uses

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

func (*Waypoint) Reset Uses

func (x *Waypoint) Reset()

func (*Waypoint) String Uses

func (x *Waypoint) String() string

type Waypoint_Location Uses

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 Uses

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"`
}

Package routes imports 17 packages (graph) and is imported by 1 packages. Updated 2020-08-13. Refresh now. Tools for package owners.