Constants
GeocodeService_GeocodeAddress_FullMethodName, GeocodeService_GeocodeLocation_FullMethodName, GeocodeService_GeocodePlace_FullMethodName
const
(
GeocodeService_GeocodeAddress_FullMethodName
=
"/google.maps.geocode.v4.GeocodeService/GeocodeAddress"
GeocodeService_GeocodeLocation_FullMethodName
=
"/google.maps.geocode.v4.GeocodeService/GeocodeLocation"
GeocodeService_GeocodePlace_FullMethodName
=
"/google.maps.geocode.v4.GeocodeService/GeocodePlace"
)
DestinationService_SearchDestinations_FullMethodName
const
(
DestinationService_SearchDestinations_FullMethodName
=
"/google.maps.geocode.v4.DestinationService/SearchDestinations"
)
Variables
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability_name, SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability_value
var
(
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability_name
=
map
[
int32
]
string
{
0
:
"ADDRESSABILITY_UNSPECIFIED"
,
1
:
"ANY"
,
2
:
"PRIMARY"
,
3
:
"WEAK"
,
}
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability_value
=
map
[
string
]
int32
{
"ADDRESSABILITY_UNSPECIFIED"
:
0
,
"ANY"
:
1
,
"PRIMARY"
:
2
,
"WEAK"
:
3
,
}
)
Enum value maps for SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability.
PlaceView_StructureType_name, PlaceView_StructureType_value
var
(
PlaceView_StructureType_name
=
map
[
int32
]
string
{
0
:
"STRUCTURE_TYPE_UNSPECIFIED"
,
1
:
"POINT"
,
2
:
"SECTION"
,
3
:
"BUILDING"
,
4
:
"GROUNDS"
,
}
PlaceView_StructureType_value
=
map
[
string
]
int32
{
"STRUCTURE_TYPE_UNSPECIFIED"
:
0
,
"POINT"
:
1
,
"SECTION"
:
2
,
"BUILDING"
:
3
,
"GROUNDS"
:
4
,
}
)
Enum value maps for PlaceView_StructureType.
Entrance_Tag_name, Entrance_Tag_value
var
(
Entrance_Tag_name
=
map
[
int32
]
string
{
0
:
"TAG_UNSPECIFIED"
,
1
:
"PREFERRED"
,
}
Entrance_Tag_value
=
map
[
string
]
int32
{
"TAG_UNSPECIFIED"
:
0
,
"PREFERRED"
:
1
,
}
)
Enum value maps for Entrance_Tag.
NavigationPoint_TravelMode_name, NavigationPoint_TravelMode_value
var
(
NavigationPoint_TravelMode_name
=
map
[
int32
]
string
{
0
:
"TRAVEL_MODE_UNSPECIFIED"
,
1
:
"DRIVE"
,
2
:
"WALK"
,
}
NavigationPoint_TravelMode_value
=
map
[
string
]
int32
{
"TRAVEL_MODE_UNSPECIFIED"
:
0
,
"DRIVE"
:
1
,
"WALK"
:
2
,
}
)
Enum value maps for NavigationPoint_TravelMode.
NavigationPoint_Usage_name, NavigationPoint_Usage_value
var
(
NavigationPoint_Usage_name
=
map
[
int32
]
string
{
0
:
"USAGE_UNSPECIFIED"
,
1
:
"UNKNOWN"
,
2
:
"DROPOFF"
,
3
:
"PICKUP"
,
4
:
"PARKING"
,
}
NavigationPoint_Usage_value
=
map
[
string
]
int32
{
"USAGE_UNSPECIFIED"
:
0
,
"UNKNOWN"
:
1
,
"DROPOFF"
:
2
,
"PICKUP"
:
3
,
"PARKING"
:
4
,
}
)
Enum value maps for NavigationPoint_Usage.
Landmark_Tag_name, Landmark_Tag_value
var
(
Landmark_Tag_name
=
map
[
int32
]
string
{
0
:
"TAG_UNSPECIFIED"
,
1
:
"ADDRESS"
,
2
:
"ARRIVAL"
,
}
Landmark_Tag_value
=
map
[
string
]
int32
{
"TAG_UNSPECIFIED"
:
0
,
"ADDRESS"
:
1
,
"ARRIVAL"
:
2
,
}
)
Enum value maps for Landmark_Tag.
GeocodeResult_Granularity_name, GeocodeResult_Granularity_value
var
(
GeocodeResult_Granularity_name
=
map
[
int32
]
string
{
0
:
"GRANULARITY_UNSPECIFIED"
,
1
:
"ROOFTOP"
,
2
:
"RANGE_INTERPOLATED"
,
3
:
"GEOMETRIC_CENTER"
,
4
:
"APPROXIMATE"
,
}
GeocodeResult_Granularity_value
=
map
[
string
]
int32
{
"GRANULARITY_UNSPECIFIED"
:
0
,
"ROOFTOP"
:
1
,
"RANGE_INTERPOLATED"
:
2
,
"GEOMETRIC_CENTER"
:
3
,
"APPROXIMATE"
:
4
,
}
)
Enum value maps for GeocodeResult_Granularity.
DestinationService_ServiceDesc
var
DestinationService_ServiceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"google.maps.geocode.v4.DestinationService"
,
HandlerType
:
(
*
DestinationServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"SearchDestinations"
,
Handler
:
_DestinationService_SearchDestinations_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"google/maps/geocode/v4/destination_service.proto"
,
}
DestinationService_ServiceDesc is the grpc.ServiceDesc for DestinationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_maps_geocode_v4_destination_service_proto
var
File_google_maps_geocode_v4_destination_service_proto
protoreflect
.
FileDescriptor
File_google_maps_geocode_v4_geocode_service_proto
var
File_google_maps_geocode_v4_geocode_service_proto
protoreflect
.
FileDescriptor
GeocodeService_ServiceDesc
var
GeocodeService_ServiceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"google.maps.geocode.v4.GeocodeService"
,
HandlerType
:
(
*
GeocodeServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"GeocodeAddress"
,
Handler
:
_GeocodeService_GeocodeAddress_Handler
,
},
{
MethodName
:
"GeocodeLocation"
,
Handler
:
_GeocodeService_GeocodeLocation_Handler
,
},
{
MethodName
:
"GeocodePlace"
,
Handler
:
_GeocodeService_GeocodePlace_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"google/maps/geocode/v4/geocode_service.proto"
,
}
GeocodeService_ServiceDesc is the grpc.ServiceDesc for GeocodeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterDestinationServiceServer
func
RegisterDestinationServiceServer
(
s
grpc
.
ServiceRegistrar
,
srv
DestinationServiceServer
)
func RegisterGeocodeServiceServer
func
RegisterGeocodeServiceServer
(
s
grpc
.
ServiceRegistrar
,
srv
GeocodeServiceServer
)
Destination
type
Destination
struct
{
// The primary place identified by the `primary_query` in the request.
Primary
*
PlaceView
`protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"`
// The less precise places that the primary place is contained by.
// For example, the apartment complex that contains this building.
ContainingPlaces
[]
*
PlaceView
`protobuf:"bytes,2,rep,name=containing_places,json=containingPlaces,proto3" json:"containing_places,omitempty"`
// More precise sub-destinations of the primary place. For example, units
// contained in a building.
//
// Note: compared to the
// [SubDestination](/maps/documentation/places/web-service/reference/rest/v1/places#SubDestination)
// returned by the Places API, this list of sub-destinations is more
// exhaustive, and each sub-destination contains more information.
SubDestinations
[]
*
PlaceView
`protobuf:"bytes,3,rep,name=sub_destinations,json=subDestinations,proto3" json:"sub_destinations,omitempty"`
// Landmarks that can be used to communicate where the destination is
// or help with arrival.
Landmarks
[]
*
Landmark
`protobuf:"bytes,4,rep,name=landmarks,proto3" json:"landmarks,omitempty"`
// Entrances for this destination.
Entrances
[]
*
Entrance
`protobuf:"bytes,5,rep,name=entrances,proto3" json:"entrances,omitempty"`
// Navigation points for this destination.
NavigationPoints
[]
*
NavigationPoint
`protobuf:"bytes,6,rep,name=navigation_points,json=navigationPoints,proto3" json:"navigation_points,omitempty"`
// contains filtered or unexported fields
}
A destination. This includes the primary place, related places, entrances, and navigation points.
func (*Destination) Descriptor
func
(
*
Destination
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Destination.ProtoReflect.Descriptor instead.
func (*Destination) GetContainingPlaces
func
(
x
*
Destination
)
GetContainingPlaces
()
[]
*
PlaceView
func (*Destination) GetEntrances
func
(
x
*
Destination
)
GetEntrances
()
[]
*
Entrance
func (*Destination) GetLandmarks
func
(
x
*
Destination
)
GetLandmarks
()
[]
*
Landmark
func (*Destination) GetNavigationPoints
func
(
x
*
Destination
)
GetNavigationPoints
()
[]
*
NavigationPoint
func (*Destination) GetPrimary
func
(
x
*
Destination
)
GetPrimary
()
*
PlaceView
func (*Destination) GetSubDestinations
func
(
x
*
Destination
)
GetSubDestinations
()
[]
*
PlaceView
func (*Destination) ProtoMessage
func
(
*
Destination
)
ProtoMessage
()
func (*Destination) ProtoReflect
func
(
x
*
Destination
)
ProtoReflect
()
protoreflect
.
Message
func (*Destination) Reset
func
(
x
*
Destination
)
Reset
()
func (*Destination) String
func
(
x
*
Destination
)
String
()
string
DestinationServiceClient
type
DestinationServiceClient
interface
{
// This method performs a destination lookup and returns a list of
// destinations.
SearchDestinations
(
ctx
context
.
Context
,
in
*
SearchDestinationsRequest
,
opts
...
grpc
.
CallOption
)
(
*
SearchDestinationsResponse
,
error
)
}
DestinationServiceClient is the client API for DestinationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream .
func NewDestinationServiceClient
func
NewDestinationServiceClient
(
cc
grpc
.
ClientConnInterface
)
DestinationServiceClient
DestinationServiceServer
type
DestinationServiceServer
interface
{
// This method performs a destination lookup and returns a list of
// destinations.
SearchDestinations
(
context
.
Context
,
*
SearchDestinationsRequest
)
(
*
SearchDestinationsResponse
,
error
)
}
DestinationServiceServer is the server API for DestinationService service. All implementations should embed UnimplementedDestinationServiceServer for forward compatibility
Entrance
type
Entrance
struct
{
// The location of the entrance.
Location
*
latlng
.
LatLng
`protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// A list of tags that describe the entrance.
Tags
[]
Entrance_Tag
`protobuf:"varint,3,rep,packed,name=tags,proto3,enum=google.maps.geocode.v4.Entrance_Tag" json:"tags,omitempty"`
// The structure this entrance is physically located on, in
// `places/{place_id}` format.
Place
string
`protobuf:"bytes,4,opt,name=place,proto3" json:"place,omitempty"`
// contains filtered or unexported fields
}
An entrance is a single latitude/longitude coordinate pair that defines the location of an entry and exit point for a place.
func (*Entrance) Descriptor
Deprecated: Use Entrance.ProtoReflect.Descriptor instead.
func (*Entrance) GetLocation
func (*Entrance) GetPlace
func (*Entrance) GetTags
func
(
x
*
Entrance
)
GetTags
()
[]
Entrance_Tag
func (*Entrance) ProtoMessage
func
(
*
Entrance
)
ProtoMessage
()
func (*Entrance) ProtoReflect
func
(
x
*
Entrance
)
ProtoReflect
()
protoreflect
.
Message
func (*Entrance) Reset
func
(
x
*
Entrance
)
Reset
()
func (*Entrance) String
Entrance_Tag
type
Entrance_Tag
int32
Characteristics that describe an entrance.
Entrance_TAG_UNSPECIFIED, Entrance_PREFERRED
const
(
// Not used.
Entrance_TAG_UNSPECIFIED
Entrance_Tag
=
0
// The entrance likely provides physical access to the primary place in
// the returned destination. A place can have multiple preferred entrances.
// If an entrance does not have this tag, it means the entrance is
// physically on the same building as the primary place, but does not
// necessarily provide access to the place.
//
// For example, if the primary place is a restaurant in a strip mall, the
// "PREFERRED" entrances will be the ones that likely lead into the
// restaurant itself, while the other returned entrances will be other
// entrances for the building, such as entrances into other restaurants in
// the strip mall.
//
// If the primary place is a building itself, the `PREFERRED` entrances
// will be the ones that lead into the "main" part of the building. For
// example, in a shopping center the `PREFERRED` entrances will be the ones
// that allow access to the main foyer area, but if an entrance only
// provides access to a store on the side of the building, it won't be a
// `PREFERRED` entrance.
//
// Note: a `PREFERRED` entrance might not provide access to the primary
// place, and a non-`PREFERRED` entrance might provide access to the
// primary place.
Entrance_PREFERRED
Entrance_Tag
=
1
)
func (Entrance_Tag) Descriptor
func
(
Entrance_Tag
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (Entrance_Tag) Enum
func
(
x
Entrance_Tag
)
Enum
()
*
Entrance_Tag
func (Entrance_Tag) EnumDescriptor
func
(
Entrance_Tag
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Entrance_Tag.Descriptor instead.
func (Entrance_Tag) Number
func
(
x
Entrance_Tag
)
Number
()
protoreflect
.
EnumNumber
func (Entrance_Tag) String
func
(
x
Entrance_Tag
)
String
()
string
func (Entrance_Tag) Type
func
(
Entrance_Tag
)
Type
()
protoreflect
.
EnumType
GeocodeAddressRequest
type
GeocodeAddressRequest
struct
{
// The address to geocode.
//
// Types that are valid to be assigned to AddressInput:
//
// *GeocodeAddressRequest_AddressQuery
// *GeocodeAddressRequest_Address
AddressInput
isGeocodeAddressRequest_AddressInput
`protobuf_oneof:"address_input"`
// Optional. The region to search. This location serves as a bias which means
// results around the given location are preferred.
LocationBias
*
GeocodeAddressRequest_LocationBias
`protobuf:"bytes,3,opt,name=location_bias,json=locationBias,proto3" json:"location_bias,omitempty"`
// Optional. Language in which the results should be returned.
LanguageCode
string
`protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. Region code. The region code, specified as a ccTLD ("top-level
// domain") two-character value. The parameter affects results based on
// applicable law. This parameter will also influence, but not fully restrict,
// results from the service.
RegionCode
string
`protobuf:"bytes,5,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// contains filtered or unexported fields
}
Request message for GeocodeService.GeocodeAddress.
func (*GeocodeAddressRequest) Descriptor
func
(
*
GeocodeAddressRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeAddressRequest.ProtoReflect.Descriptor instead.
func (*GeocodeAddressRequest) GetAddress
func
(
x
*
GeocodeAddressRequest
)
GetAddress
()
*
postaladdress
.
PostalAddress
func (*GeocodeAddressRequest) GetAddressInput
func
(
x
*
GeocodeAddressRequest
)
GetAddressInput
()
isGeocodeAddressRequest_AddressInput
func (*GeocodeAddressRequest) GetAddressQuery
func
(
x
*
GeocodeAddressRequest
)
GetAddressQuery
()
string
func (*GeocodeAddressRequest) GetLanguageCode
func
(
x
*
GeocodeAddressRequest
)
GetLanguageCode
()
string
func (*GeocodeAddressRequest) GetLocationBias
func
(
x
*
GeocodeAddressRequest
)
GetLocationBias
()
*
GeocodeAddressRequest_LocationBias
func (*GeocodeAddressRequest) GetRegionCode
func
(
x
*
GeocodeAddressRequest
)
GetRegionCode
()
string
func (*GeocodeAddressRequest) ProtoMessage
func
(
*
GeocodeAddressRequest
)
ProtoMessage
()
func (*GeocodeAddressRequest) ProtoReflect
func
(
x
*
GeocodeAddressRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeAddressRequest) Reset
func
(
x
*
GeocodeAddressRequest
)
Reset
()
func (*GeocodeAddressRequest) String
func
(
x
*
GeocodeAddressRequest
)
String
()
string
GeocodeAddressRequest_Address
type
GeocodeAddressRequest_Address
struct
{
// The structured address to geocode in postal address format.
Address
*
postaladdress
.
PostalAddress
`protobuf:"bytes,2,opt,name=address,proto3,oneof"`
}
GeocodeAddressRequest_AddressQuery
type
GeocodeAddressRequest_AddressQuery
struct
{
// The unstructured address to geocode.
AddressQuery
string
`protobuf:"bytes,1,opt,name=address_query,json=addressQuery,proto3,oneof"`
}
GeocodeAddressRequest_LocationBias
type
GeocodeAddressRequest_LocationBias
struct
{
// Types of location bias.
//
// Types that are valid to be assigned to Type:
//
// *GeocodeAddressRequest_LocationBias_Rectangle
Type
isGeocodeAddressRequest_LocationBias_Type
`protobuf_oneof:"type"`
// contains filtered or unexported fields
}
The region to search. This location serves as a bias which means results around the given location are preferred.
func (*GeocodeAddressRequest_LocationBias) Descriptor
func
(
*
GeocodeAddressRequest_LocationBias
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeAddressRequest_LocationBias.ProtoReflect.Descriptor instead.
func (*GeocodeAddressRequest_LocationBias) GetRectangle
func
(
x
*
GeocodeAddressRequest_LocationBias
)
GetRectangle
()
*
viewport
.
Viewport
func (*GeocodeAddressRequest_LocationBias) GetType
func
(
x
*
GeocodeAddressRequest_LocationBias
)
GetType
()
isGeocodeAddressRequest_LocationBias_Type
func (*GeocodeAddressRequest_LocationBias) ProtoMessage
func
(
*
GeocodeAddressRequest_LocationBias
)
ProtoMessage
()
func (*GeocodeAddressRequest_LocationBias) ProtoReflect
func
(
x
*
GeocodeAddressRequest_LocationBias
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeAddressRequest_LocationBias) Reset
func
(
x
*
GeocodeAddressRequest_LocationBias
)
Reset
()
func (*GeocodeAddressRequest_LocationBias) String
func
(
x
*
GeocodeAddressRequest_LocationBias
)
String
()
string
GeocodeAddressRequest_LocationBias_Rectangle
type
GeocodeAddressRequest_LocationBias_Rectangle
struct
{
// A rectangular box defined by northeast and southwest corner.
// `rectangle.high()` must be the northeast point of the rectangle
// viewport. `rectangle.low()` must be the southwest point of the
// rectangle viewport. `rectangle.low().latitude()` cannot be greater than
// `rectangle.high().latitude()`. This will result in an empty latitude
// range. A rectangle viewport cannot be wider than 180 degrees.
Rectangle
*
viewport
.
Viewport
`protobuf:"bytes,1,opt,name=rectangle,proto3,oneof"`
}
GeocodeAddressResponse
type
GeocodeAddressResponse
struct
{
// The geocoding result.
Results
[]
*
GeocodeResult
`protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
Response message for [GeocodeService.GeocodeAddress][google.maps.geocode.v4.GeocodeService.GeocodeAddress].
func (*GeocodeAddressResponse) Descriptor
func
(
*
GeocodeAddressResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeAddressResponse.ProtoReflect.Descriptor instead.
func (*GeocodeAddressResponse) GetResults
func
(
x
*
GeocodeAddressResponse
)
GetResults
()
[]
*
GeocodeResult
func (*GeocodeAddressResponse) ProtoMessage
func
(
*
GeocodeAddressResponse
)
ProtoMessage
()
func (*GeocodeAddressResponse) ProtoReflect
func
(
x
*
GeocodeAddressResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeAddressResponse) Reset
func
(
x
*
GeocodeAddressResponse
)
Reset
()
func (*GeocodeAddressResponse) String
func
(
x
*
GeocodeAddressResponse
)
String
()
string
GeocodeLocationRequest
type
GeocodeLocationRequest
struct
{
// The location to geocode.
//
// Types that are valid to be assigned to LocationInput:
//
// *GeocodeLocationRequest_LocationQuery
// *GeocodeLocationRequest_Location
LocationInput
isGeocodeLocationRequest_LocationInput
`protobuf_oneof:"location_input"`
// Optional. Language in which the results should be returned.
LanguageCode
string
`protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. Region code. The region code, specified as a ccTLD ("top-level
// domain") two-character value. The parameter affects results based on
// applicable law.
RegionCode
string
`protobuf:"bytes,4,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// Optional. A set of type tags to restrict the results. Results that do not
// have any of the specified types are removed.
//
// For the complete list of possible values, see Table A and Table B at
// https://developers.google.com/maps/documentation/places/web-service/place-types.
Types
[]
string
`protobuf:"bytes,5,rep,name=types,proto3" json:"types,omitempty"`
// Optional. A filter of one or more location granularity enums.
Granularity
[]
GeocodeResult_Granularity
`protobuf:"varint,6,rep,packed,name=granularity,proto3,enum=google.maps.geocode.v4.GeocodeResult_Granularity" json:"granularity,omitempty"`
// contains filtered or unexported fields
}
Request message for GeocodeService.GeocodeLocation.
func (*GeocodeLocationRequest) Descriptor
func
(
*
GeocodeLocationRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeLocationRequest.ProtoReflect.Descriptor instead.
func (*GeocodeLocationRequest) GetGranularity
func
(
x
*
GeocodeLocationRequest
)
GetGranularity
()
[]
GeocodeResult_Granularity
func (*GeocodeLocationRequest) GetLanguageCode
func
(
x
*
GeocodeLocationRequest
)
GetLanguageCode
()
string
func (*GeocodeLocationRequest) GetLocation
func
(
x
*
GeocodeLocationRequest
)
GetLocation
()
*
latlng
.
LatLng
func (*GeocodeLocationRequest) GetLocationInput
func
(
x
*
GeocodeLocationRequest
)
GetLocationInput
()
isGeocodeLocationRequest_LocationInput
func (*GeocodeLocationRequest) GetLocationQuery
func
(
x
*
GeocodeLocationRequest
)
GetLocationQuery
()
string
func (*GeocodeLocationRequest) GetRegionCode
func
(
x
*
GeocodeLocationRequest
)
GetRegionCode
()
string
func (*GeocodeLocationRequest) GetTypes
func
(
x
*
GeocodeLocationRequest
)
GetTypes
()
[]
string
func (*GeocodeLocationRequest) ProtoMessage
func
(
*
GeocodeLocationRequest
)
ProtoMessage
()
func (*GeocodeLocationRequest) ProtoReflect
func
(
x
*
GeocodeLocationRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeLocationRequest) Reset
func
(
x
*
GeocodeLocationRequest
)
Reset
()
func (*GeocodeLocationRequest) String
func
(
x
*
GeocodeLocationRequest
)
String
()
string
GeocodeLocationRequest_Location
type
GeocodeLocationRequest_Location
struct
{
// The location in the structured format.
Location
*
latlng
.
LatLng
`protobuf:"bytes,2,opt,name=location,proto3,oneof"`
}
GeocodeLocationRequest_LocationQuery
type
GeocodeLocationRequest_LocationQuery
struct
{
// The location in the format of "lat,lng" string. For example,
// "64.7611872,-18.4705364".
LocationQuery
string
`protobuf:"bytes,1,opt,name=location_query,json=locationQuery,proto3,oneof"`
}
GeocodeLocationResponse
type
GeocodeLocationResponse
struct
{
// The geocoding result.
Results
[]
*
GeocodeResult
`protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// Plus code of the location in the request.
PlusCode
*
PlusCode
`protobuf:"bytes,2,opt,name=plus_code,json=plusCode,proto3" json:"plus_code,omitempty"`
// contains filtered or unexported fields
}
Response message for [GeocodeService.GeocodeLocation][google.maps.geocode.v4.GeocodeService.GeocodeLocation].
func (*GeocodeLocationResponse) Descriptor
func
(
*
GeocodeLocationResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeLocationResponse.ProtoReflect.Descriptor instead.
func (*GeocodeLocationResponse) GetPlusCode
func
(
x
*
GeocodeLocationResponse
)
GetPlusCode
()
*
PlusCode
func (*GeocodeLocationResponse) GetResults
func
(
x
*
GeocodeLocationResponse
)
GetResults
()
[]
*
GeocodeResult
func (*GeocodeLocationResponse) ProtoMessage
func
(
*
GeocodeLocationResponse
)
ProtoMessage
()
func (*GeocodeLocationResponse) ProtoReflect
func
(
x
*
GeocodeLocationResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeLocationResponse) Reset
func
(
x
*
GeocodeLocationResponse
)
Reset
()
func (*GeocodeLocationResponse) String
func
(
x
*
GeocodeLocationResponse
)
String
()
string
GeocodePlaceRequest
type
GeocodePlaceRequest
struct
{
// Required. Place identifier to geocode in the format of places/{place}.
Place
string
`protobuf:"bytes,1,opt,name=place,proto3" json:"place,omitempty"`
// Optional. Language in which the results should be returned.
LanguageCode
string
`protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. Region code. The region code, specified as a ccTLD ("top-level
// domain") two-character value. The parameter affects results based on
// applicable law.
RegionCode
string
`protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// contains filtered or unexported fields
}
Request message for GeocodeService.GeocodePlace.
func (*GeocodePlaceRequest) Descriptor
func
(
*
GeocodePlaceRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodePlaceRequest.ProtoReflect.Descriptor instead.
func (*GeocodePlaceRequest) GetLanguageCode
func
(
x
*
GeocodePlaceRequest
)
GetLanguageCode
()
string
func (*GeocodePlaceRequest) GetPlace
func
(
x
*
GeocodePlaceRequest
)
GetPlace
()
string
func (*GeocodePlaceRequest) GetRegionCode
func
(
x
*
GeocodePlaceRequest
)
GetRegionCode
()
string
func (*GeocodePlaceRequest) ProtoMessage
func
(
*
GeocodePlaceRequest
)
ProtoMessage
()
func (*GeocodePlaceRequest) ProtoReflect
func
(
x
*
GeocodePlaceRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodePlaceRequest) Reset
func
(
x
*
GeocodePlaceRequest
)
Reset
()
func (*GeocodePlaceRequest) String
func
(
x
*
GeocodePlaceRequest
)
String
()
string
GeocodeResult
type
GeocodeResult
struct
{
// This Place's resource name, in `places/{placeId}` format. Can be used to
// look up the Place.
Place
string
`protobuf:"bytes,1,opt,name=place,proto3" json:"place,omitempty"`
// The unique identifier of a place.
PlaceId
string
`protobuf:"bytes,2,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
// The latlng of this address.
Location
*
latlng
.
LatLng
`protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
// The granularity of the location.
Granularity
GeocodeResult_Granularity
`protobuf:"varint,4,opt,name=granularity,proto3,enum=google.maps.geocode.v4.GeocodeResult_Granularity" json:"granularity,omitempty"`
// A viewport suitable for displaying the geocode result.
Viewport
*
viewport
.
Viewport
`protobuf:"bytes,5,opt,name=viewport,proto3" json:"viewport,omitempty"`
// A bounding box for the address.
Bounds
*
viewport
.
Viewport
`protobuf:"bytes,6,opt,name=bounds,proto3" json:"bounds,omitempty"`
// The one line formatted address.
FormattedAddress
string
`protobuf:"bytes,7,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"`
// The address in postal address format.
PostalAddress
*
postaladdress
.
PostalAddress
`protobuf:"bytes,8,opt,name=postal_address,json=postalAddress,proto3" json:"postal_address,omitempty"`
// Repeated components for each locality level.
AddressComponents
[]
*
GeocodeResult_AddressComponent
`protobuf:"bytes,9,rep,name=address_components,json=addressComponents,proto3" json:"address_components,omitempty"`
// Complete list of localities contained in the postal code.
//
// This is only populated when the result is of type "postal_code".
PostalCodeLocalities
[]
*
localized_text
.
LocalizedText
`protobuf:"bytes,11,rep,name=postal_code_localities,json=postalCodeLocalities,proto3" json:"postal_code_localities,omitempty"`
// A set of type tags for this result. For
// example, "political" and "administrative_area".
//
// For the complete list of possible values, see Table A and Table B at
// https://developers.google.com/maps/documentation/places/web-service/place-types.
Types
[]
string
`protobuf:"bytes,12,rep,name=types,proto3" json:"types,omitempty"`
// Plus code of the location in this geocode.
PlusCode
*
PlusCode
`protobuf:"bytes,13,opt,name=plus_code,json=plusCode,proto3" json:"plus_code,omitempty"`
// contains filtered or unexported fields
}
A geocode result contains geographic information about a place.
func (*GeocodeResult) Descriptor
func
(
*
GeocodeResult
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeResult.ProtoReflect.Descriptor instead.
func (*GeocodeResult) GetAddressComponents
func
(
x
*
GeocodeResult
)
GetAddressComponents
()
[]
*
GeocodeResult_AddressComponent
func (*GeocodeResult) GetBounds
func
(
x
*
GeocodeResult
)
GetBounds
()
*
viewport
.
Viewport
func (*GeocodeResult) GetFormattedAddress
func
(
x
*
GeocodeResult
)
GetFormattedAddress
()
string
func (*GeocodeResult) GetGranularity
func
(
x
*
GeocodeResult
)
GetGranularity
()
GeocodeResult_Granularity
func (*GeocodeResult) GetLocation
func
(
x
*
GeocodeResult
)
GetLocation
()
*
latlng
.
LatLng
func (*GeocodeResult) GetPlace
func
(
x
*
GeocodeResult
)
GetPlace
()
string
func (*GeocodeResult) GetPlaceId
func
(
x
*
GeocodeResult
)
GetPlaceId
()
string
func (*GeocodeResult) GetPlusCode
func
(
x
*
GeocodeResult
)
GetPlusCode
()
*
PlusCode
func (*GeocodeResult) GetPostalAddress
func
(
x
*
GeocodeResult
)
GetPostalAddress
()
*
postaladdress
.
PostalAddress
func (*GeocodeResult) GetPostalCodeLocalities
func
(
x
*
GeocodeResult
)
GetPostalCodeLocalities
()
[]
*
localized_text
.
LocalizedText
func (*GeocodeResult) GetTypes
func
(
x
*
GeocodeResult
)
GetTypes
()
[]
string
func (*GeocodeResult) GetViewport
func
(
x
*
GeocodeResult
)
GetViewport
()
*
viewport
.
Viewport
func (*GeocodeResult) ProtoMessage
func
(
*
GeocodeResult
)
ProtoMessage
()
func (*GeocodeResult) ProtoReflect
func
(
x
*
GeocodeResult
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeResult) Reset
func
(
x
*
GeocodeResult
)
Reset
()
func (*GeocodeResult) String
func
(
x
*
GeocodeResult
)
String
()
string
GeocodeResult_AddressComponent
type
GeocodeResult_AddressComponent
struct
{
// The full text description or name of the address component. For example,
// an address component for the country Australia may have a long name of
// "Australia".
LongText
string
`protobuf:"bytes,1,opt,name=long_text,json=longText,proto3" json:"long_text,omitempty"`
// An abbreviated textual name for the address component, if available. For
// example, an address component for the country of Australia may have a
// short name of "AU".
ShortText
string
`protobuf:"bytes,2,opt,name=short_text,json=shortText,proto3" json:"short_text,omitempty"`
// An array indicating the type(s) of the address component.
//
// See
// https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
// for more details.
Types
[]
string
`protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"`
// The language used to format this component, in CLDR notation.
LanguageCode
string
`protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// contains filtered or unexported fields
}
The structured components that form the formatted address, if this information is available.
func (*GeocodeResult_AddressComponent) Descriptor
func
(
*
GeocodeResult_AddressComponent
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeResult_AddressComponent.ProtoReflect.Descriptor instead.
func (*GeocodeResult_AddressComponent) GetLanguageCode
func
(
x
*
GeocodeResult_AddressComponent
)
GetLanguageCode
()
string
func (*GeocodeResult_AddressComponent) GetLongText
func
(
x
*
GeocodeResult_AddressComponent
)
GetLongText
()
string
func (*GeocodeResult_AddressComponent) GetShortText
func
(
x
*
GeocodeResult_AddressComponent
)
GetShortText
()
string
func (*GeocodeResult_AddressComponent) GetTypes
func
(
x
*
GeocodeResult_AddressComponent
)
GetTypes
()
[]
string
func (*GeocodeResult_AddressComponent) ProtoMessage
func
(
*
GeocodeResult_AddressComponent
)
ProtoMessage
()
func (*GeocodeResult_AddressComponent) ProtoReflect
func
(
x
*
GeocodeResult_AddressComponent
)
ProtoReflect
()
protoreflect
.
Message
func (*GeocodeResult_AddressComponent) Reset
func
(
x
*
GeocodeResult_AddressComponent
)
Reset
()
func (*GeocodeResult_AddressComponent) String
func
(
x
*
GeocodeResult_AddressComponent
)
String
()
string
GeocodeResult_Granularity
type
GeocodeResult_Granularity
int32
The granularity of the location.
GeocodeResult_GRANULARITY_UNSPECIFIED, GeocodeResult_ROOFTOP, GeocodeResult_RANGE_INTERPOLATED, GeocodeResult_GEOMETRIC_CENTER, GeocodeResult_APPROXIMATE
const
(
// Do not use.
GeocodeResult_GRANULARITY_UNSPECIFIED
GeocodeResult_Granularity
=
0
// The non-interpolated location of an actual plot of land corresponding
// to the matched address.
GeocodeResult_ROOFTOP
GeocodeResult_Granularity
=
1
// Interpolated from a range of street numbers. For example, if we know
// that a segment of Amphitheatre Pkwy contains numbers 1600 - 1699, then
// 1650 might be placed halfway between its endpoints.
GeocodeResult_RANGE_INTERPOLATED
GeocodeResult_Granularity
=
2
// The geometric center of a feature for which we have polygonal data.
GeocodeResult_GEOMETRIC_CENTER
GeocodeResult_Granularity
=
3
// Everything else.
GeocodeResult_APPROXIMATE
GeocodeResult_Granularity
=
4
)
func (GeocodeResult_Granularity) Descriptor
func
(
GeocodeResult_Granularity
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (GeocodeResult_Granularity) Enum
func
(
x
GeocodeResult_Granularity
)
Enum
()
*
GeocodeResult_Granularity
func (GeocodeResult_Granularity) EnumDescriptor
func
(
GeocodeResult_Granularity
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GeocodeResult_Granularity.Descriptor instead.
func (GeocodeResult_Granularity) Number
func
(
x
GeocodeResult_Granularity
)
Number
()
protoreflect
.
EnumNumber
func (GeocodeResult_Granularity) String
func
(
x
GeocodeResult_Granularity
)
String
()
string
func (GeocodeResult_Granularity) Type
func
(
GeocodeResult_Granularity
)
Type
()
protoreflect
.
EnumType
GeocodeServiceClient
type
GeocodeServiceClient
interface
{
// This method performs an address geocode, which maps an address to a
// LatLng. It also provides structured information about the address.
GeocodeAddress
(
ctx
context
.
Context
,
in
*
GeocodeAddressRequest
,
opts
...
grpc
.
CallOption
)
(
*
GeocodeAddressResponse
,
error
)
// This method performs a location geocode, which maps a LatLng to an
// address. It also provides structured information about the address.
GeocodeLocation
(
ctx
context
.
Context
,
in
*
GeocodeLocationRequest
,
opts
...
grpc
.
CallOption
)
(
*
GeocodeLocationResponse
,
error
)
// This method performs a geocode lookup using a place ID.
GeocodePlace
(
ctx
context
.
Context
,
in
*
GeocodePlaceRequest
,
opts
...
grpc
.
CallOption
)
(
*
GeocodeResult
,
error
)
}
GeocodeServiceClient is the client API for GeocodeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream .
func NewGeocodeServiceClient
func
NewGeocodeServiceClient
(
cc
grpc
.
ClientConnInterface
)
GeocodeServiceClient
GeocodeServiceServer
type
GeocodeServiceServer
interface
{
// This method performs an address geocode, which maps an address to a
// LatLng. It also provides structured information about the address.
GeocodeAddress
(
context
.
Context
,
*
GeocodeAddressRequest
)
(
*
GeocodeAddressResponse
,
error
)
// This method performs a location geocode, which maps a LatLng to an
// address. It also provides structured information about the address.
GeocodeLocation
(
context
.
Context
,
*
GeocodeLocationRequest
)
(
*
GeocodeLocationResponse
,
error
)
// This method performs a geocode lookup using a place ID.
GeocodePlace
(
context
.
Context
,
*
GeocodePlaceRequest
)
(
*
GeocodeResult
,
error
)
}
GeocodeServiceServer is the server API for GeocodeService service. All implementations should embed UnimplementedGeocodeServiceServer for forward compatibility
Landmark
type
Landmark
struct
{
// The landmark.
//
// Types that are valid to be assigned to Landmark:
//
// *Landmark_Place
Landmark
isLandmark_Landmark
`protobuf_oneof:"landmark"`
// A human-readable description of how the destination relates to the
// landmark. For example: "Near the Empire State Building" or "Across from
// the White House".
RelationalDescription
*
localized_text
.
LocalizedText
`protobuf:"bytes,2,opt,name=relational_description,json=relationalDescription,proto3" json:"relational_description,omitempty"`
// Tags that describe how the landmark can be used in the context of the
// destination.
Tags
[]
Landmark_Tag
`protobuf:"varint,3,rep,packed,name=tags,proto3,enum=google.maps.geocode.v4.Landmark_Tag" json:"tags,omitempty"`
// Output only. The straight-line distance from this landmark to the
// destination in meters.
StraightLineDistanceMeters
float64
`protobuf:"fixed64,4,opt,name=straight_line_distance_meters,json=straightLineDistanceMeters,proto3" json:"straight_line_distance_meters,omitempty"`
// Output only. The road-network distance from this landmark to the
// destination in meters.
TravelDistanceMeters
float64
`protobuf:"fixed64,5,opt,name=travel_distance_meters,json=travelDistanceMeters,proto3" json:"travel_distance_meters,omitempty"`
// contains filtered or unexported fields
}
Landmarks are used to communicate where the destination is or help with arriving at the destination.
func (*Landmark) Descriptor
Deprecated: Use Landmark.ProtoReflect.Descriptor instead.
func (*Landmark) GetLandmark
func
(
x
*
Landmark
)
GetLandmark
()
isLandmark_Landmark
func (*Landmark) GetPlace
func (*Landmark) GetRelationalDescription
func
(
x
*
Landmark
)
GetRelationalDescription
()
*
localized_text
.
LocalizedText
func (*Landmark) GetStraightLineDistanceMeters
func (*Landmark) GetTags
func
(
x
*
Landmark
)
GetTags
()
[]
Landmark_Tag
func (*Landmark) GetTravelDistanceMeters
func (*Landmark) ProtoMessage
func
(
*
Landmark
)
ProtoMessage
()
func (*Landmark) ProtoReflect
func
(
x
*
Landmark
)
ProtoReflect
()
protoreflect
.
Message
func (*Landmark) Reset
func
(
x
*
Landmark
)
Reset
()
func (*Landmark) String
Landmark_Place
type
Landmark_Place
struct
{
// The place that represents this landmark.
Place
*
PlaceView
`protobuf:"bytes,1,opt,name=place,proto3,oneof"`
}
Landmark_Tag
type
Landmark_Tag
int32
The list of all possible tags that describe how a landmark can be used in the context of a destination.
If an address has both the ADDRESS
and ARRIVAL
tags, it means the
landmark is both locally prominent and close to the destination.
Landmark_TAG_UNSPECIFIED, Landmark_ADDRESS, Landmark_ARRIVAL
const
(
// Not used.
Landmark_TAG_UNSPECIFIED
Landmark_Tag
=
0
// A locally prominent place that can be used to identify the general
// location of the destination. Typically within a few hundred meters of the
// destination. These are similar to the landmarks returned by the
// Address Descriptors feature of the Geocoding API:
// https://developers.google.com/maps/documentation/geocoding/address-descriptors/requests-address-descriptors.
Landmark_ADDRESS
Landmark_Tag
=
1
// A place that can be used to help arrive at the destination. Useful for
// navigation once you are close to the destination. For example, this
// landmark might be a place that is across the street from the destination.
// A landmark with this tag is typically closer to the destination than
// landmarks with the `ADDRESS` tag.
Landmark_ARRIVAL
Landmark_Tag
=
2
)
func (Landmark_Tag) Descriptor
func
(
Landmark_Tag
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (Landmark_Tag) Enum
func
(
x
Landmark_Tag
)
Enum
()
*
Landmark_Tag
func (Landmark_Tag) EnumDescriptor
func
(
Landmark_Tag
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Landmark_Tag.Descriptor instead.
func (Landmark_Tag) Number
func
(
x
Landmark_Tag
)
Number
()
protoreflect
.
EnumNumber
func (Landmark_Tag) String
func
(
x
Landmark_Tag
)
String
()
string
func (Landmark_Tag) Type
func
(
Landmark_Tag
)
Type
()
protoreflect
.
EnumType
NavigationPoint
type
NavigationPoint
struct
{
// Output only. A token that can be used to identify this navigation point.
NavigationPointToken
string
`protobuf:"bytes,1,opt,name=navigation_point_token,json=navigationPointToken,proto3" json:"navigation_point_token,omitempty"`
// The display name of this navigation point. For example, "5th Ave" or "Gate
// B".
DisplayName
*
localized_text
.
LocalizedText
`protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// A point next to the road segment where navigation should end. The point is
// intentionally slightly offset from the road's centerline to clearly mark
// the side of the road where the place is located.
Location
*
latlng
.
LatLng
`protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
// Travel modes that are appropriate for this navigation point.
TravelModes
[]
NavigationPoint_TravelMode
`protobuf:"varint,4,rep,packed,name=travel_modes,json=travelModes,proto3,enum=google.maps.geocode.v4.NavigationPoint_TravelMode" json:"travel_modes,omitempty"`
// Lists `usages` supported by this navigation point. If empty, it does not
// necessarily mean its usage is restricted in any way. All navigation
// points can be used for general navigation.
Usages
[]
NavigationPoint_Usage
`protobuf:"varint,5,rep,packed,name=usages,proto3,enum=google.maps.geocode.v4.NavigationPoint_Usage" json:"usages,omitempty"`
// contains filtered or unexported fields
}
A navigation point is a location next to a road where navigation can end.
func (*NavigationPoint) Descriptor
func
(
*
NavigationPoint
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use NavigationPoint.ProtoReflect.Descriptor instead.
func (*NavigationPoint) GetDisplayName
func
(
x
*
NavigationPoint
)
GetDisplayName
()
*
localized_text
.
LocalizedText
func (*NavigationPoint) GetLocation
func
(
x
*
NavigationPoint
)
GetLocation
()
*
latlng
.
LatLng
func (*NavigationPoint) GetNavigationPointToken
func
(
x
*
NavigationPoint
)
GetNavigationPointToken
()
string
func (*NavigationPoint) GetTravelModes
func
(
x
*
NavigationPoint
)
GetTravelModes
()
[]
NavigationPoint_TravelMode
func (*NavigationPoint) GetUsages
func
(
x
*
NavigationPoint
)
GetUsages
()
[]
NavigationPoint_Usage
func (*NavigationPoint) ProtoMessage
func
(
*
NavigationPoint
)
ProtoMessage
()
func (*NavigationPoint) ProtoReflect
func
(
x
*
NavigationPoint
)
ProtoReflect
()
protoreflect
.
Message
func (*NavigationPoint) Reset
func
(
x
*
NavigationPoint
)
Reset
()
func (*NavigationPoint) String
func
(
x
*
NavigationPoint
)
String
()
string
NavigationPoint_TravelMode
type
NavigationPoint_TravelMode
int32
Travel modes that are appropriate for this navigation point.
NavigationPoint_TRAVEL_MODE_UNSPECIFIED, NavigationPoint_DRIVE, NavigationPoint_WALK
const
(
// Not used.
NavigationPoint_TRAVEL_MODE_UNSPECIFIED
NavigationPoint_TravelMode
=
0
// Suitable for driving.
NavigationPoint_DRIVE
NavigationPoint_TravelMode
=
1
// Suitable for walking.
NavigationPoint_WALK
NavigationPoint_TravelMode
=
2
)
func (NavigationPoint_TravelMode) Descriptor
func
(
NavigationPoint_TravelMode
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (NavigationPoint_TravelMode) Enum
func
(
x
NavigationPoint_TravelMode
)
Enum
()
*
NavigationPoint_TravelMode
func (NavigationPoint_TravelMode) EnumDescriptor
func
(
NavigationPoint_TravelMode
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use NavigationPoint_TravelMode.Descriptor instead.
func (NavigationPoint_TravelMode) Number
func
(
x
NavigationPoint_TravelMode
)
Number
()
protoreflect
.
EnumNumber
func (NavigationPoint_TravelMode) String
func
(
x
NavigationPoint_TravelMode
)
String
()
string
func (NavigationPoint_TravelMode) Type
func
(
NavigationPoint_TravelMode
)
Type
()
protoreflect
.
EnumType
NavigationPoint_Usage
type
NavigationPoint_Usage
int32
Usages supported by this navigation point. New values may be added in the future.
NavigationPoint_USAGE_UNSPECIFIED, NavigationPoint_UNKNOWN, NavigationPoint_DROPOFF, NavigationPoint_PICKUP, NavigationPoint_PARKING
const
(
// Not used.
NavigationPoint_USAGE_UNSPECIFIED
NavigationPoint_Usage
=
0
// Indicates that the usage type is unknown.
NavigationPoint_UNKNOWN
NavigationPoint_Usage
=
1
// Suitable for dropping off a passenger. For example, a rideshare drop off
// location.
NavigationPoint_DROPOFF
NavigationPoint_Usage
=
2
// Suitable for picking up a passenger. For example, a rideshare pick up
// location.
NavigationPoint_PICKUP
NavigationPoint_Usage
=
3
// Suitable for parking. For example, within a parking lot.
NavigationPoint_PARKING
NavigationPoint_Usage
=
4
)
func (NavigationPoint_Usage) Descriptor
func
(
NavigationPoint_Usage
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (NavigationPoint_Usage) Enum
func
(
x
NavigationPoint_Usage
)
Enum
()
*
NavigationPoint_Usage
func (NavigationPoint_Usage) EnumDescriptor
func
(
NavigationPoint_Usage
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use NavigationPoint_Usage.Descriptor instead.
func (NavigationPoint_Usage) Number
func
(
x
NavigationPoint_Usage
)
Number
()
protoreflect
.
EnumNumber
func (NavigationPoint_Usage) String
func
(
x
NavigationPoint_Usage
)
String
()
string
func (NavigationPoint_Usage) Type
func
(
NavigationPoint_Usage
)
Type
()
protoreflect
.
EnumType
PlaceView
type
PlaceView
struct
{
// This Place's resource name, in `places/{placeId}` format. Can be used to
// look up the Place.
Place
string
`protobuf:"bytes,1,opt,name=place,proto3" json:"place,omitempty"`
// The unique identifier of a place.
PlaceId
string
`protobuf:"bytes,2,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
// Human readable place description. For example, "Gate B", "McDonalds"
DisplayName
*
localized_text
.
LocalizedText
`protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// The primary place type of this place. See
// https://developers.google.com/maps/documentation/places/web-service/place-types
// for the list of possible values.
//
// Note: This field is not always populated. Be prepared to use the `types`
// field in such situations.
PrimaryType
string
`protobuf:"bytes,4,opt,name=primary_type,json=primaryType,proto3" json:"primary_type,omitempty"`
// All associated place types of this place. See
// https://developers.google.com/maps/documentation/places/web-service/place-types
// for the list of possible values.
Types
[]
string
`protobuf:"bytes,5,rep,name=types,proto3" json:"types,omitempty"`
// One line address.
FormattedAddress
string
`protobuf:"bytes,6,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"`
// Structured address.
PostalAddress
*
postaladdress
.
PostalAddress
`protobuf:"bytes,7,opt,name=postal_address,json=postalAddress,proto3" json:"postal_address,omitempty"`
// The type of structure corresponding to this place.
StructureType
PlaceView_StructureType
`protobuf:"varint,8,opt,name=structure_type,json=structureType,proto3,enum=google.maps.geocode.v4.PlaceView_StructureType" json:"structure_type,omitempty"`
// The location of this place. For places with display polygons, this can
// represent a good spot to put a marker on the map.
Location
*
latlng
.
LatLng
`protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"`
// The polygon outline of the place in GeoJSON format, using the RFC 7946
// format: https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6.
//
// Note: The RFC 7946 format supports MultiPolygons, so one `display_polygon`
// object can represent multiple polygons.
DisplayPolygon
*
structpb
.
Struct
`protobuf:"bytes,10,opt,name=display_polygon,json=displayPolygon,proto3" json:"display_polygon,omitempty"`
// contains filtered or unexported fields
}
Represents a view of a Place in the Places API. It also provides additional information specific to destinations, such as the structure type and the display polygon.
In some cases, a PlaceView
with the same place ID might differ from what
is being returned by the Places API for the types
and display_name
fields.
func (*PlaceView) Descriptor
Deprecated: Use PlaceView.ProtoReflect.Descriptor instead.
func (*PlaceView) GetDisplayName
func
(
x
*
PlaceView
)
GetDisplayName
()
*
localized_text
.
LocalizedText
func (*PlaceView) GetDisplayPolygon
func (*PlaceView) GetFormattedAddress
func (*PlaceView) GetLocation
func (*PlaceView) GetPlace
func (*PlaceView) GetPlaceId
func (*PlaceView) GetPostalAddress
func
(
x
*
PlaceView
)
GetPostalAddress
()
*
postaladdress
.
PostalAddress
func (*PlaceView) GetPrimaryType
func (*PlaceView) GetStructureType
func
(
x
*
PlaceView
)
GetStructureType
()
PlaceView_StructureType
func (*PlaceView) GetTypes
func (*PlaceView) ProtoMessage
func
(
*
PlaceView
)
ProtoMessage
()
func (*PlaceView) ProtoReflect
func
(
x
*
PlaceView
)
ProtoReflect
()
protoreflect
.
Message
func (*PlaceView) Reset
func
(
x
*
PlaceView
)
Reset
()
func (*PlaceView) String
PlaceView_StructureType
type
PlaceView_StructureType
int32
The type of structure that this place represents.
PlaceView_STRUCTURE_TYPE_UNSPECIFIED, PlaceView_POINT, PlaceView_SECTION, PlaceView_BUILDING, PlaceView_GROUNDS
const
(
// Not used.
PlaceView_STRUCTURE_TYPE_UNSPECIFIED
PlaceView_StructureType
=
0
// A point location.
PlaceView_POINT
PlaceView_StructureType
=
1
// A sub-section of a building.
PlaceView_SECTION
PlaceView_StructureType
=
2
// A building.
PlaceView_BUILDING
PlaceView_StructureType
=
3
// A large area that typically contains multiple buildings, such as a
// university campus, an apartment complex, or a shopping mall.
PlaceView_GROUNDS
PlaceView_StructureType
=
4
)
func (PlaceView_StructureType) Descriptor
func
(
PlaceView_StructureType
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (PlaceView_StructureType) Enum
func
(
x
PlaceView_StructureType
)
Enum
()
*
PlaceView_StructureType
func (PlaceView_StructureType) EnumDescriptor
func
(
PlaceView_StructureType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use PlaceView_StructureType.Descriptor instead.
func (PlaceView_StructureType) Number
func
(
x
PlaceView_StructureType
)
Number
()
protoreflect
.
EnumNumber
func (PlaceView_StructureType) String
func
(
x
PlaceView_StructureType
)
String
()
string
func (PlaceView_StructureType) Type
func
(
PlaceView_StructureType
)
Type
()
protoreflect
.
EnumType
PlusCode
type
PlusCode
struct
{
// Place's global (full) code, such as "9FWM33GV+HQ", representing an
// 1/8000 by 1/8000 degree area (~14 by 14 meters).
GlobalCode
string
`protobuf:"bytes,1,opt,name=global_code,json=globalCode,proto3" json:"global_code,omitempty"`
// Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing
// the suffix of the global code and replacing the prefix with a formatted
// name of a reference entity.
CompoundCode
string
`protobuf:"bytes,2,opt,name=compound_code,json=compoundCode,proto3" json:"compound_code,omitempty"`
// contains filtered or unexported fields
}
Plus code ( http://plus.codes ) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location.
func (*PlusCode) Descriptor
Deprecated: Use PlusCode.ProtoReflect.Descriptor instead.
func (*PlusCode) GetCompoundCode
func (*PlusCode) GetGlobalCode
func (*PlusCode) ProtoMessage
func
(
*
PlusCode
)
ProtoMessage
()
func (*PlusCode) ProtoReflect
func
(
x
*
PlusCode
)
ProtoReflect
()
protoreflect
.
Message
func (*PlusCode) Reset
func
(
x
*
PlusCode
)
Reset
()
func (*PlusCode) String
SearchDestinationsRequest
type
SearchDestinationsRequest
struct
{
// Query for the primary destination. This can be either a place, a fully
// specified address, or a LatLng location. Some places and addresses with
// minimal information won't be able to be turned into a destination.
//
// The destinations are built around the specified primary query.
//
// Note: only places and addresses that can have a navigational destination
// are supported. For example, a place that represents a house or an apartment
// complex can be used as the primary query, but places that represent a
// locality or an administrative area cannot be used as the primary query.
//
// Types that are valid to be assigned to PrimaryQuery:
//
// *SearchDestinationsRequest_Place
// *SearchDestinationsRequest_AddressQuery_
// *SearchDestinationsRequest_LocationQuery_
PrimaryQuery
isSearchDestinationsRequest_PrimaryQuery
`protobuf_oneof:"primary_query"`
// Optional. The travel modes to filter navigation points for. This influences
// the `navigation_points` field returned in the response. If empty,
// navigation points of all travel modes are returned.
TravelModes
[]
NavigationPoint_TravelMode
`protobuf:"varint,5,rep,packed,name=travel_modes,json=travelModes,proto3,enum=google.maps.geocode.v4.NavigationPoint_TravelMode" json:"travel_modes,omitempty"`
// Optional. Language in which the results should be returned.
LanguageCode
string
`protobuf:"bytes,6,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Optional. Region code. The region code, specified as a ccTLD ("top-level
// domain") two-character value. The parameter affects results based on
// applicable law. This parameter also influences, but not fully restricts,
// results from the service.
RegionCode
string
`protobuf:"bytes,7,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
// contains filtered or unexported fields
}
Request message for DestinationService.SearchDestinations.
func (*SearchDestinationsRequest) Descriptor
func
(
*
SearchDestinationsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchDestinationsRequest.ProtoReflect.Descriptor instead.
func (*SearchDestinationsRequest) GetAddressQuery
func
(
x
*
SearchDestinationsRequest
)
GetAddressQuery
()
*
SearchDestinationsRequest_AddressQuery
func (*SearchDestinationsRequest) GetLanguageCode
func
(
x
*
SearchDestinationsRequest
)
GetLanguageCode
()
string
func (*SearchDestinationsRequest) GetLocationQuery
func
(
x
*
SearchDestinationsRequest
)
GetLocationQuery
()
*
SearchDestinationsRequest_LocationQuery
func (*SearchDestinationsRequest) GetPlace
func
(
x
*
SearchDestinationsRequest
)
GetPlace
()
string
func (*SearchDestinationsRequest) GetPrimaryQuery
func
(
x
*
SearchDestinationsRequest
)
GetPrimaryQuery
()
isSearchDestinationsRequest_PrimaryQuery
func (*SearchDestinationsRequest) GetRegionCode
func
(
x
*
SearchDestinationsRequest
)
GetRegionCode
()
string
func (*SearchDestinationsRequest) GetTravelModes
func
(
x
*
SearchDestinationsRequest
)
GetTravelModes
()
[]
NavigationPoint_TravelMode
func (*SearchDestinationsRequest) ProtoMessage
func
(
*
SearchDestinationsRequest
)
ProtoMessage
()
func (*SearchDestinationsRequest) ProtoReflect
func
(
x
*
SearchDestinationsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchDestinationsRequest) Reset
func
(
x
*
SearchDestinationsRequest
)
Reset
()
func (*SearchDestinationsRequest) String
func
(
x
*
SearchDestinationsRequest
)
String
()
string
SearchDestinationsRequest_AddressQuery
type
SearchDestinationsRequest_AddressQuery
struct
{
// The address query.
//
// Types that are valid to be assigned to Kind:
//
// *SearchDestinationsRequest_AddressQuery_Address
// *SearchDestinationsRequest_AddressQuery_AddressQuery
Kind
isSearchDestinationsRequest_AddressQuery_Kind
`protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
The street address that you want to search for. Specify addresses in accordance with the format used by the national postal service of the country concerned.
func (*SearchDestinationsRequest_AddressQuery) Descriptor
func
(
*
SearchDestinationsRequest_AddressQuery
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchDestinationsRequest_AddressQuery.ProtoReflect.Descriptor instead.
func (*SearchDestinationsRequest_AddressQuery) GetAddress
func
(
x
*
SearchDestinationsRequest_AddressQuery
)
GetAddress
()
*
postaladdress
.
PostalAddress
func (*SearchDestinationsRequest_AddressQuery) GetAddressQuery
func
(
x
*
SearchDestinationsRequest_AddressQuery
)
GetAddressQuery
()
string
func (*SearchDestinationsRequest_AddressQuery) GetKind
func
(
x
*
SearchDestinationsRequest_AddressQuery
)
GetKind
()
isSearchDestinationsRequest_AddressQuery_Kind
func (*SearchDestinationsRequest_AddressQuery) ProtoMessage
func
(
*
SearchDestinationsRequest_AddressQuery
)
ProtoMessage
()
func (*SearchDestinationsRequest_AddressQuery) ProtoReflect
func
(
x
*
SearchDestinationsRequest_AddressQuery
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchDestinationsRequest_AddressQuery) Reset
func
(
x
*
SearchDestinationsRequest_AddressQuery
)
Reset
()
func (*SearchDestinationsRequest_AddressQuery) String
func
(
x
*
SearchDestinationsRequest_AddressQuery
)
String
()
string
SearchDestinationsRequest_AddressQuery_
type
SearchDestinationsRequest_AddressQuery_
struct
{
// A street address.
AddressQuery
*
SearchDestinationsRequest_AddressQuery
`protobuf:"bytes,2,opt,name=address_query,json=addressQuery,proto3,oneof"`
}
SearchDestinationsRequest_AddressQuery_Address
type
SearchDestinationsRequest_AddressQuery_Address
struct
{
// A street address in postal address format.
Address
*
postaladdress
.
PostalAddress
`protobuf:"bytes,1,opt,name=address,proto3,oneof"`
}
SearchDestinationsRequest_AddressQuery_AddressQuery
type
SearchDestinationsRequest_AddressQuery_AddressQuery
struct
{
// A street address formatted as a single line.
AddressQuery
string
`protobuf:"bytes,2,opt,name=address_query,json=addressQuery,proto3,oneof"`
}
SearchDestinationsRequest_LocationQuery
type
SearchDestinationsRequest_LocationQuery
struct
{
// The location query.
//
// Types that are valid to be assigned to Kind:
//
// *SearchDestinationsRequest_LocationQuery_Location
Kind
isSearchDestinationsRequest_LocationQuery_Kind
`protobuf_oneof:"kind"`
// Optional. Filters to apply to destination candidates.
PlaceFilter
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
`protobuf:"bytes,2,opt,name=place_filter,json=placeFilter,proto3" json:"place_filter,omitempty"`
// contains filtered or unexported fields
}
A location query to identify a nearby primary destination.
Note: if the location query is within a building that contains subpremises,
it is possible that the returned primary place is a subpremise. In these
cases, the containing_places
field will include the building.
func (*SearchDestinationsRequest_LocationQuery) Descriptor
func
(
*
SearchDestinationsRequest_LocationQuery
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchDestinationsRequest_LocationQuery.ProtoReflect.Descriptor instead.
func (*SearchDestinationsRequest_LocationQuery) GetKind
func
(
x
*
SearchDestinationsRequest_LocationQuery
)
GetKind
()
isSearchDestinationsRequest_LocationQuery_Kind
func (*SearchDestinationsRequest_LocationQuery) GetLocation
func
(
x
*
SearchDestinationsRequest_LocationQuery
)
GetLocation
()
*
latlng
.
LatLng
func (*SearchDestinationsRequest_LocationQuery) GetPlaceFilter
func
(
x
*
SearchDestinationsRequest_LocationQuery
)
GetPlaceFilter
()
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
func (*SearchDestinationsRequest_LocationQuery) ProtoMessage
func
(
*
SearchDestinationsRequest_LocationQuery
)
ProtoMessage
()
func (*SearchDestinationsRequest_LocationQuery) ProtoReflect
func
(
x
*
SearchDestinationsRequest_LocationQuery
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchDestinationsRequest_LocationQuery) Reset
func
(
x
*
SearchDestinationsRequest_LocationQuery
)
Reset
()
func (*SearchDestinationsRequest_LocationQuery) String
func
(
x
*
SearchDestinationsRequest_LocationQuery
)
String
()
string
SearchDestinationsRequest_LocationQuery_
type
SearchDestinationsRequest_LocationQuery_
struct
{
// A precise location.
LocationQuery
*
SearchDestinationsRequest_LocationQuery
`protobuf:"bytes,3,opt,name=location_query,json=locationQuery,proto3,oneof"`
}
SearchDestinationsRequest_LocationQuery_Location
type
SearchDestinationsRequest_LocationQuery_Location
struct
{
// A precise LatLng location.
Location
*
latlng
.
LatLng
`protobuf:"bytes,1,opt,name=location,proto3,oneof"`
}
SearchDestinationsRequest_LocationQuery_PlaceFilter
type
SearchDestinationsRequest_LocationQuery_PlaceFilter
struct
{
// Optional. If specified, all destinations are guaranteed to have a
// primary place with this structure type. This can result in filtering
// out some destinations, or in coarsening/refining the returned
// destinations.
//
// For example, if `GROUNDS` is specified, all returned destinations will
// have a primary place with the `GROUNDS` structure type. This can
// result in filtering out some destinations that are not part of a
// grounds, or in coarsening the returned destinations to the grounds
// level.
//
// Another use of this field is to more easily extract building display
// polygons. For example, if `BUILDING` is specified, the primary place's
// display polygon will be for the building at the specified location.
StructureType
PlaceView_StructureType
`protobuf:"varint,2,opt,name=structure_type,json=structureType,proto3,enum=google.maps.geocode.v4.PlaceView_StructureType" json:"structure_type,omitempty"`
// Optional. If specified, only returns destinations that meet the
// corresponding addressability criteria.
Addressability
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
`protobuf:"varint,3,opt,name=addressability,proto3,enum=google.maps.geocode.v4.SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability" json:"addressability,omitempty"`
// contains filtered or unexported fields
}
Filters to apply to destination candidates.
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) Descriptor
func
(
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchDestinationsRequest_LocationQuery_PlaceFilter.ProtoReflect.Descriptor instead.
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) GetAddressability
func
(
x
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
GetAddressability
()
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) GetStructureType
func
(
x
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
GetStructureType
()
PlaceView_StructureType
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) ProtoMessage
func
(
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
ProtoMessage
()
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) ProtoReflect
func
(
x
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) Reset
func
(
x
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
Reset
()
func (*SearchDestinationsRequest_LocationQuery_PlaceFilter) String
func
(
x
*
SearchDestinationsRequest_LocationQuery_PlaceFilter
)
String
()
string
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
type
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
int32
Defines options for addressability filtering. New values may be added in the future.
SearchDestinationsRequest_LocationQuery_PlaceFilter_ADDRESSABILITY_UNSPECIFIED, SearchDestinationsRequest_LocationQuery_PlaceFilter_ANY, SearchDestinationsRequest_LocationQuery_PlaceFilter_PRIMARY, SearchDestinationsRequest_LocationQuery_PlaceFilter_WEAK
const
(
// When unspecified, the service will choose a sensible default.
SearchDestinationsRequest_LocationQuery_PlaceFilter_ADDRESSABILITY_UNSPECIFIED
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
=
0
// Addressability is not a filtering criteria. Destinations are returned
// regardless of their addressability.
SearchDestinationsRequest_LocationQuery_PlaceFilter_ANY
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
=
1
// All destinations returned will have a primary place with a street
// level address or name.
SearchDestinationsRequest_LocationQuery_PlaceFilter_PRIMARY
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
=
2
// All destinations returned will have either a primary place or a
// subdestination with a street level address or name.
SearchDestinationsRequest_LocationQuery_PlaceFilter_WEAK
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
=
3
)
func (SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability) Descriptor
func
(
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability) Enum
func
(
x
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
)
Enum
()
*
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
func (SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability) EnumDescriptor
func
(
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability.Descriptor instead.
func (SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability) Number
func
(
x
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
)
Number
()
protoreflect
.
EnumNumber
func (SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability) String
func
(
x
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
)
String
()
string
func (SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability) Type
func
(
SearchDestinationsRequest_LocationQuery_PlaceFilter_Addressability
)
Type
()
protoreflect
.
EnumType
SearchDestinationsRequest_Place
type
SearchDestinationsRequest_Place
struct
{
// The resource name of a place, in `places/{place_id}` format.
Place
string
`protobuf:"bytes,1,opt,name=place,proto3,oneof"`
}
SearchDestinationsResponse
type
SearchDestinationsResponse
struct
{
// A list of destinations.
//
// The service returns one result if a primary destination can be
// unambiguously identified from the primary query. Otherwise, the service
// might return multiple results for disambiguation or zero results.
Destinations
[]
*
Destination
`protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
// contains filtered or unexported fields
}
Response message for DestinationService.SearchDestinations.
func (*SearchDestinationsResponse) Descriptor
func
(
*
SearchDestinationsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use SearchDestinationsResponse.ProtoReflect.Descriptor instead.
func (*SearchDestinationsResponse) GetDestinations
func
(
x
*
SearchDestinationsResponse
)
GetDestinations
()
[]
*
Destination
func (*SearchDestinationsResponse) ProtoMessage
func
(
*
SearchDestinationsResponse
)
ProtoMessage
()
func (*SearchDestinationsResponse) ProtoReflect
func
(
x
*
SearchDestinationsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*SearchDestinationsResponse) Reset
func
(
x
*
SearchDestinationsResponse
)
Reset
()
func (*SearchDestinationsResponse) String
func
(
x
*
SearchDestinationsResponse
)
String
()
string
UnimplementedDestinationServiceServer
type
UnimplementedDestinationServiceServer
struct
{
}
UnimplementedDestinationServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedDestinationServiceServer) SearchDestinations
func
(
UnimplementedDestinationServiceServer
)
SearchDestinations
(
context
.
Context
,
*
SearchDestinationsRequest
)
(
*
SearchDestinationsResponse
,
error
)
UnimplementedGeocodeServiceServer
type
UnimplementedGeocodeServiceServer
struct
{
}
UnimplementedGeocodeServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedGeocodeServiceServer) GeocodeAddress
func
(
UnimplementedGeocodeServiceServer
)
GeocodeAddress
(
context
.
Context
,
*
GeocodeAddressRequest
)
(
*
GeocodeAddressResponse
,
error
)
func (UnimplementedGeocodeServiceServer) GeocodeLocation
func
(
UnimplementedGeocodeServiceServer
)
GeocodeLocation
(
context
.
Context
,
*
GeocodeLocationRequest
)
(
*
GeocodeLocationResponse
,
error
)
func (UnimplementedGeocodeServiceServer) GeocodePlace
func
(
UnimplementedGeocodeServiceServer
)
GeocodePlace
(
context
.
Context
,
*
GeocodePlaceRequest
)
(
*
GeocodeResult
,
error
)
UnsafeDestinationServiceServer
type
UnsafeDestinationServiceServer
interface
{
// contains filtered or unexported methods
}
UnsafeDestinationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DestinationServiceServer will result in compilation errors.
UnsafeGeocodeServiceServer
type
UnsafeGeocodeServiceServer
interface
{
// contains filtered or unexported methods
}
UnsafeGeocodeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GeocodeServiceServer will result in compilation errors.

