amap

package
v0.5.51 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host, address string)

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) Descriptor() ([]byte, []int)

func (*Address) GetCity

func (m *Address) GetCity() string

func (*Address) GetStreet

func (m *Address) GetStreet() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (dst *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Geocode) GetAddress added in v0.5.35

func (m *Geocode) GetAddress() string

func (*Geocode) GetCity added in v0.5.35

func (m *Geocode) GetCity() string

func (*Geocode) GetCountry added in v0.5.35

func (m *Geocode) GetCountry() string

func (*Geocode) GetLocation added in v0.5.33

func (m *Geocode) GetLocation() string

func (*Geocode) GetProvince added in v0.5.35

func (m *Geocode) GetProvince() string

func (*Geocode) ProtoMessage added in v0.5.33

func (*Geocode) ProtoMessage()

func (*Geocode) Reset added in v0.5.33

func (m *Geocode) Reset()

func (*Geocode) String added in v0.5.33

func (m *Geocode) String() string

func (*Geocode) XXX_DiscardUnknown added in v0.5.33

func (m *Geocode) XXX_DiscardUnknown()

func (*Geocode) XXX_Marshal added in v0.5.33

func (m *Geocode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Geocode) XXX_Merge added in v0.5.33

func (dst *Geocode) XXX_Merge(src proto.Message)

func (*Geocode) XXX_Size added in v0.5.33

func (m *Geocode) XXX_Size() int

func (*Geocode) XXX_Unmarshal added in v0.5.33

func (m *Geocode) XXX_Unmarshal(b []byte) error

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 ForwardGeocode(request *Address) (*Location, error)

func (*Location) Descriptor

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

func (*Location) GetCount added in v0.5.33

func (m *Location) GetCount() string

func (*Location) GetGeocodes added in v0.5.33

func (m *Location) GetGeocodes() []*Geocode

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Location) XXX_Merge

func (dst *Location) XXX_Merge(src proto.Message)

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

func (m *Location) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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