Versions in this module Expand all Collapse all v1 v1.0.3 Jul 24, 2021 v1.0.2 Dec 14, 2020 Changes in this version + var WXMAP_ERROR = errors.New("请求失败") + var WXMAP_JSON_MARSHA_ERROR = errors.New("JSON生成错误") + var WXMAP_JSON_UNMARSHA_ERROR = errors.New("JSON解析错误") + var WXMAP_REQ_PARAMT_ERROR = errors.New("缺少参数") + var WXMAP_SIGN_CAL_ERROR = errors.New("签名计算失败") + var WXMAP_SIGN_VERIFY_ERROR = errors.New("签名验证失败") + var WXMAP_XML_MARSHA_ERROR = errors.New("XML生成错误") + var WXMAP_XML_UNMARSHA_ERROR = errors.New("XML解析错误") + type AdInfo struct + AdCode string + City string + CityCode string + Location Location + Name string + Nation string + NationCode string + Province string + type AddressComponent struct + City string + District string + Nation string + Province string + Street string + StreetNumber string + type AddressReference struct + Crossroad FamousArea + FamousArea FamousArea + LandmarkL1 FamousArea + LandmarkL2 FamousArea + Street FamousArea + StreetNumber FamousArea + Town Town + Water FamousArea + type FamousArea struct + DirDesc string + Distance float64 + Id string + Location Location + Title string + type FormattedAddresses struct + Recommend string + Rough string + type GeoCoderResponse struct + Message string + RequestId string + Result Result + Status int64 + type Location struct + Lat float64 + Lng float64 + type Poi struct + AdInfo PosAdInfo + Address string + Category string + Distance float64 + Id string + Location Location + Title string + type PosAdInfo struct + AdCode string + City string + Province string + type Result struct + AdInfo AdInfo + Address string + AddressComponent AddressComponent + AddressReference AddressReference + FormattedAddresses FormattedAddresses + PoiCount int64 + Pois []Poi + type Town struct + DirDesc string + Distance float64 + Id string + Location Location + Title string + type WxMap struct + func New(key string) (wx *WxMap) + func (wx *WxMap) Geocoder(lat, lng float64, getPoi, poiOption string) (geoCoderResponse *GeoCoderResponse, err error)