lbs

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAmapClient added in v1.4.0

func GetAmapClient() *http.Client

Types

type AdapterLocationBasedService

type AdapterLocationBasedService interface {
	String() string
	Close()
	GetAddress(latitude, longitude, radius float64) (map[string]string, error)
	GetCoordinate(keyword string) (longitude float32, latitude float32, address string, err error)
	GetPosition(imei, network, ac, ci, snr string, result *map[string]interface{}) error
	GetClient() interface{}
}

type Amap added in v1.3.26

type Amap struct {
	// contains filtered or unexported fields
}

func NewAmap added in v1.3.26

func NewAmap(client *http.Client, addr, secretKey string) *Amap

func (*Amap) Close added in v1.3.26

func (m *Amap) Close()

Close 关闭连接

func (*Amap) GetAddress added in v1.3.26

func (m *Amap) GetAddress(latitude, longitude, radius float64) (map[string]string, error)

func (*Amap) GetClient added in v1.3.26

func (m *Amap) GetClient() interface{}

GetClient 暴露原生client

func (*Amap) GetCoordinate added in v1.4.18

func (m *Amap) GetCoordinate(keyword string) (longitude float32, latitude float32, address string, err error)

func (*Amap) GetPosition added in v1.4.22

func (m *Amap) GetPosition(imei, network, ac, ci, snr string, result *map[string]interface{}) error

func (*Amap) String added in v1.3.26

func (*Amap) String() string

Jump to

Keyboard shortcuts

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