geocoder

package
v0.0.0-...-a07846c Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_geocoder_proto protoreflect.FileDescriptor

Functions

func RegisterGeocodeServiceServer

func RegisterGeocodeServiceServer(s *grpc.Server, srv GeocodeServiceServer)

func RegisterTimezoneServiceServer

func RegisterTimezoneServiceServer(s *grpc.Server, srv TimezoneServiceServer)

Types

type AdminLevel

type AdminLevel struct {
	Level int32  `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Code  string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*AdminLevel) Descriptor deprecated

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

Deprecated: Use AdminLevel.ProtoReflect.Descriptor instead.

func (*AdminLevel) GetCode

func (x *AdminLevel) GetCode() string

func (*AdminLevel) GetLevel

func (x *AdminLevel) GetLevel() int32

func (*AdminLevel) GetName

func (x *AdminLevel) GetName() string

func (*AdminLevel) ProtoMessage

func (*AdminLevel) ProtoMessage()

func (*AdminLevel) ProtoReflect

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

func (*AdminLevel) Reset

func (x *AdminLevel) Reset()

func (*AdminLevel) String

func (x *AdminLevel) String() string

type Bounds

type Bounds struct {
	NorthEast *LatLng `protobuf:"bytes,1,opt,name=northEast,proto3" json:"northEast,omitempty"`
	SouthWest *LatLng `protobuf:"bytes,2,opt,name=southWest,proto3" json:"southWest,omitempty"`
	// contains filtered or unexported fields
}

func (*Bounds) Descriptor deprecated

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

Deprecated: Use Bounds.ProtoReflect.Descriptor instead.

func (*Bounds) GetNorthEast

func (x *Bounds) GetNorthEast() *LatLng

func (*Bounds) GetSouthWest

func (x *Bounds) GetSouthWest() *LatLng

func (*Bounds) ProtoMessage

func (*Bounds) ProtoMessage()

func (*Bounds) ProtoReflect

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

func (*Bounds) Reset

func (x *Bounds) Reset()

func (*Bounds) String

func (x *Bounds) String() string

type Country

type Country struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Country) Descriptor deprecated

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

Deprecated: Use Country.ProtoReflect.Descriptor instead.

func (*Country) GetCode

func (x *Country) GetCode() string

func (*Country) GetName

func (x *Country) GetName() string

func (*Country) ProtoMessage

func (*Country) ProtoMessage()

func (*Country) ProtoReflect

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

func (*Country) Reset

func (x *Country) Reset()

func (*Country) String

func (x *Country) String() string

type GeocodeServiceClient

type GeocodeServiceClient interface {
	Geocode(ctx context.Context, in *LocationRequest, opts ...grpc.CallOption) (*LocationResponse, 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.

type GeocodeServiceServer

type GeocodeServiceServer interface {
	Geocode(context.Context, *LocationRequest) (*LocationResponse, error)
	// contains filtered or unexported methods
}

GeocodeServiceServer is the server API for GeocodeService service. All implementations must embed UnimplementedGeocodeServiceServer for forward compatibility

type LatLng

type LatLng struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"`
	// contains filtered or unexported fields
}

func (*LatLng) Descriptor deprecated

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

Deprecated: Use LatLng.ProtoReflect.Descriptor instead.

func (*LatLng) GetLat

func (x *LatLng) GetLat() float64

func (*LatLng) GetLng

func (x *LatLng) GetLng() float64

func (*LatLng) ProtoMessage

func (*LatLng) ProtoMessage()

func (*LatLng) ProtoReflect

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

func (*LatLng) Reset

func (x *LatLng) Reset()

func (*LatLng) String

func (x *LatLng) String() string

type Location

type Location struct {
	Provider          string              `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	FormattedAddress  string              `protobuf:"bytes,2,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"`
	StreetNumber      string              `protobuf:"bytes,4,opt,name=street_number,json=streetNumber,proto3" json:"street_number,omitempty"`
	StreetName        string              `protobuf:"bytes,5,opt,name=street_name,json=streetName,proto3" json:"street_name,omitempty"`
	Locality          string              `protobuf:"bytes,6,opt,name=locality,proto3" json:"locality,omitempty"`
	Sublocality       string              `protobuf:"bytes,7,opt,name=sublocality,proto3" json:"sublocality,omitempty"`
	Timezone          string              `protobuf:"bytes,8,opt,name=timezone,proto3" json:"timezone,omitempty"`
	PostalCode        string              `protobuf:"bytes,9,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	Id                string              `protobuf:"bytes,20,opt,name=id,proto3" json:"id,omitempty"`
	Country           *Country            `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	State             *State              `protobuf:"bytes,12,opt,name=state,proto3" json:"state,omitempty"`
	LatLng            *LatLng             `protobuf:"bytes,10,opt,name=latLng,proto3" json:"latLng,omitempty"`
	Bounds            *Bounds             `protobuf:"bytes,13,opt,name=bounds,proto3" json:"bounds,omitempty"`
	AdminLevels       []*AdminLevel       `protobuf:"bytes,11,rep,name=admin_levels,json=adminLevels,proto3" json:"admin_levels,omitempty"`
	SublocalityLevels []*SublocalityLevel `protobuf:"bytes,22,rep,name=sublocality_levels,json=sublocalityLevels,proto3" json:"sublocality_levels,omitempty"`
	Components        map[string]string   `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetAdminLevels

func (x *Location) GetAdminLevels() []*AdminLevel

func (*Location) GetBounds

func (x *Location) GetBounds() *Bounds

func (*Location) GetComponents

func (x *Location) GetComponents() map[string]string

func (*Location) GetCountry

func (x *Location) GetCountry() *Country

func (*Location) GetFormattedAddress

func (x *Location) GetFormattedAddress() string

func (*Location) GetId

func (x *Location) GetId() string

func (*Location) GetLatLng

func (x *Location) GetLatLng() *LatLng

func (*Location) GetLocality

func (x *Location) GetLocality() string

func (*Location) GetPostalCode

func (x *Location) GetPostalCode() string

func (*Location) GetProvider

func (x *Location) GetProvider() string

func (*Location) GetState

func (x *Location) GetState() *State

func (*Location) GetStreetName

func (x *Location) GetStreetName() string

func (*Location) GetStreetNumber

func (x *Location) GetStreetNumber() string

func (*Location) GetSublocality

func (x *Location) GetSublocality() string

func (*Location) GetSublocalityLevels

func (x *Location) GetSublocalityLevels() []*SublocalityLevel

func (*Location) GetTimezone

func (x *Location) GetTimezone() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type LocationRequest

type LocationRequest struct {
	Provider string            `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	Address  string            `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Latlng   *LatLng           `protobuf:"bytes,3,opt,name=latlng,proto3" json:"latlng,omitempty"`
	Query    map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LocationRequest) Descriptor deprecated

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

Deprecated: Use LocationRequest.ProtoReflect.Descriptor instead.

func (*LocationRequest) GetAddress

func (x *LocationRequest) GetAddress() string

func (*LocationRequest) GetLatlng

func (x *LocationRequest) GetLatlng() *LatLng

func (*LocationRequest) GetProvider

func (x *LocationRequest) GetProvider() string

func (*LocationRequest) GetQuery

func (x *LocationRequest) GetQuery() map[string]string

func (*LocationRequest) ProtoMessage

func (*LocationRequest) ProtoMessage()

func (*LocationRequest) ProtoReflect

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

func (*LocationRequest) Reset

func (x *LocationRequest) Reset()

func (*LocationRequest) String

func (x *LocationRequest) String() string

type LocationResponse

type LocationResponse struct {
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	Exists    bool        `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*LocationResponse) Descriptor deprecated

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

Deprecated: Use LocationResponse.ProtoReflect.Descriptor instead.

func (*LocationResponse) GetExists

func (x *LocationResponse) GetExists() bool

func (*LocationResponse) GetLocations

func (x *LocationResponse) GetLocations() []*Location

func (*LocationResponse) ProtoMessage

func (*LocationResponse) ProtoMessage()

func (*LocationResponse) ProtoReflect

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

func (*LocationResponse) Reset

func (x *LocationResponse) Reset()

func (*LocationResponse) String

func (x *LocationResponse) String() string

type State

type State struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetCode

func (x *State) GetCode() string

func (*State) GetName

func (x *State) GetName() string

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

type SublocalityLevel

type SublocalityLevel struct {
	Level int32  `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*SublocalityLevel) Descriptor deprecated

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

Deprecated: Use SublocalityLevel.ProtoReflect.Descriptor instead.

func (*SublocalityLevel) GetLevel

func (x *SublocalityLevel) GetLevel() int32

func (*SublocalityLevel) GetName

func (x *SublocalityLevel) GetName() string

func (*SublocalityLevel) ProtoMessage

func (*SublocalityLevel) ProtoMessage()

func (*SublocalityLevel) ProtoReflect

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

func (*SublocalityLevel) Reset

func (x *SublocalityLevel) Reset()

func (*SublocalityLevel) String

func (x *SublocalityLevel) String() string

type Timezone

type Timezone struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Timezone) Descriptor deprecated

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

Deprecated: Use Timezone.ProtoReflect.Descriptor instead.

func (*Timezone) GetCode

func (x *Timezone) GetCode() string

func (*Timezone) ProtoMessage

func (*Timezone) ProtoMessage()

func (*Timezone) ProtoReflect

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

func (*Timezone) Reset

func (x *Timezone) Reset()

func (*Timezone) String

func (x *Timezone) String() string

type TimezoneRequest

type TimezoneRequest struct {
	Latlng *LatLng `protobuf:"bytes,1,opt,name=latlng,proto3" json:"latlng,omitempty"`
	// contains filtered or unexported fields
}

func (*TimezoneRequest) Descriptor deprecated

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

Deprecated: Use TimezoneRequest.ProtoReflect.Descriptor instead.

func (*TimezoneRequest) GetLatlng

func (x *TimezoneRequest) GetLatlng() *LatLng

func (*TimezoneRequest) ProtoMessage

func (*TimezoneRequest) ProtoMessage()

func (*TimezoneRequest) ProtoReflect

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

func (*TimezoneRequest) Reset

func (x *TimezoneRequest) Reset()

func (*TimezoneRequest) String

func (x *TimezoneRequest) String() string

type TimezoneServiceClient

type TimezoneServiceClient interface {
	Lookup(ctx context.Context, in *TimezoneRequest, opts ...grpc.CallOption) (*Timezone, error)
}

TimezoneServiceClient is the client API for TimezoneService 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.

type TimezoneServiceServer

type TimezoneServiceServer interface {
	Lookup(context.Context, *TimezoneRequest) (*Timezone, error)
	// contains filtered or unexported methods
}

TimezoneServiceServer is the server API for TimezoneService service. All implementations must embed UnimplementedTimezoneServiceServer for forward compatibility

type UnimplementedGeocodeServiceServer

type UnimplementedGeocodeServiceServer struct {
}

UnimplementedGeocodeServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedGeocodeServiceServer) Geocode

type UnimplementedTimezoneServiceServer

type UnimplementedTimezoneServiceServer struct {
}

UnimplementedTimezoneServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedTimezoneServiceServer) Lookup

Jump to

Keyboard shortcuts

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