Documentation ¶
Index ¶
- func Connect(host, address string)
- func RegisterAmapServer(s *grpc.Server, srv AmapServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCity() string
- func (m *Address) GetStreet() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type AmapClient
- type AmapServer
- type Geocode
- func (*Geocode) Descriptor() ([]byte, []int)
- func (m *Geocode) GetAddress() string
- func (m *Geocode) GetCity() string
- func (m *Geocode) GetCountry() string
- func (m *Geocode) GetLocation() string
- func (m *Geocode) GetProvince() string
- func (*Geocode) ProtoMessage()
- func (m *Geocode) Reset()
- func (m *Geocode) String() string
- func (m *Geocode) XXX_DiscardUnknown()
- func (m *Geocode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Geocode) XXX_Merge(src proto.Message)
- func (m *Geocode) XXX_Size() int
- func (m *Geocode) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetCount() string
- func (m *Location) GetGeocodes() []*Geocode
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) String() string
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAmapServer ¶
func RegisterAmapServer(s *grpc.Server, srv AmapServer)
Types ¶
type Address ¶
type Address struct { Street string `protobuf:"bytes,1,opt,name=Street,proto3" json:"Street,omitempty"` City string `protobuf:"bytes,2,opt,name=City,proto3" json:"City,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Address) Descriptor ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type AmapClient ¶
type AmapClient interface { // 正向地理编码: 将地址描述信息转换成地理坐标(经纬度) ForwardGeocode(ctx context.Context, in *Address, opts ...grpc.CallOption) (*Location, error) }
AmapClient is the client API for Amap service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAmapClient ¶
func NewAmapClient(cc *grpc.ClientConn) AmapClient
type AmapServer ¶
type AmapServer interface { // 正向地理编码: 将地址描述信息转换成地理坐标(经纬度) ForwardGeocode(context.Context, *Address) (*Location, error) }
AmapServer is the server API for Amap service.
type Geocode ¶ added in v0.5.33
type Geocode struct { Location string `protobuf:"bytes,1,opt,name=Location,proto3" json:"Location,omitempty"` Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"` Country string `protobuf:"bytes,3,opt,name=Country,proto3" json:"Country,omitempty"` Province string `protobuf:"bytes,4,opt,name=Province,proto3" json:"Province,omitempty"` City string `protobuf:"bytes,5,opt,name=City,proto3" json:"City,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Geocode) Descriptor ¶ added in v0.5.33
func (*Geocode) GetAddress ¶ added in v0.5.35
func (*Geocode) GetCountry ¶ added in v0.5.35
func (*Geocode) GetLocation ¶ added in v0.5.33
func (*Geocode) GetProvince ¶ added in v0.5.35
func (*Geocode) ProtoMessage ¶ added in v0.5.33
func (*Geocode) ProtoMessage()
func (*Geocode) XXX_DiscardUnknown ¶ added in v0.5.33
func (m *Geocode) XXX_DiscardUnknown()
func (*Geocode) XXX_Marshal ¶ added in v0.5.33
func (*Geocode) XXX_Unmarshal ¶ added in v0.5.33
type Location ¶
type Location struct { Count string `protobuf:"bytes,1,opt,name=Count,proto3" json:"Count,omitempty"` Geocodes []*Geocode `protobuf:"bytes,2,rep,name=Geocodes,proto3" json:"Geocodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ForwardGeocode ¶
func (*Location) Descriptor ¶
func (*Location) GetGeocodes ¶ added in v0.5.33
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.