Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPPosition ¶
type LBSInfo ¶
type LBSInfo struct { AccessType int //接入网络方式 移动接入网络:0 ;wifi接入网络:1 必选 IMEI string //手机 imei 号 必选 CDMA int //非cdma:0; cdma:1 默认值为:0 Network string //无线网络类型 GSM/GPRS/EDGE/HSUPA/HSDPA/WCDMA (注意大写) BTS string //基站信息 IMSI string //移动用户识别码 非必选,但建议填写 SMAC string //手机 mac 码 非必选,但建议填写 ClientIP string //移动网关IP 非必选,但建议填写 TEL string //手机号码 非必选 MMAC string //已连热点 mac 信息 }
type LBSPosition ¶
type Locator ¶
type Locator interface { //地理编码 Geocoder(address string, city string) (*Location, error) //逆地理编码 ReverseGeocoding(lat, lng float64) (*Address, error) //普通IP定位 IPLocation(ip string) (*IPPosition, error) //通过WI-FI、基站智能硬件定位 LBSLocation(params *LBSInfo) (*LBSPosition, error) //获取实况天气 GetWeatherNow(adcode int64) (*WeatherInfo, error) }
Click to show internal directories.
Click to hide internal directories.