Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressComponents ¶
type RespGeoDistance ¶
type RespGeoDistance struct { Status int `json:"status,omitempty"` Message string `json:"message,omitempty"` Result ResultGeoDistance `json:"result,omitempty"` }
func GeoDistance ¶
func GeoDistance(mode, from, to, accessKey, secretKey string) (rsp RespGeoDistance, err error)
Address2Geo 腾讯位置服务-地址解析(地址转坐标)
mode 模式: driving-驾车 walking-步行 bicycling-自行车
from 起点经纬度,逗号分隔
to 终点经纬度,逗号分隔
accessKey 访问Key
secretKey 访问密钥
type RespLoc ¶
type RespLoc struct { Status int `json:"status,omitempty"` Message string `json:"message,omitempty"` Result ResultLoc `json:"result,omitempty"` }
type ResultGeoDistance ¶
type ResultGeoDistance struct {
Rows []Row `json:"rows,omitempty"`
}
type ResultLoc ¶
type ResultLoc struct { Title string `json:"title,omitempty"` Location Location `json:"location,omitempty"` AddressComponents AddressComponents `json:"address_components,omitempty"` AdInfo AdInfo `json:"ad_info,omitempty"` Reliability int `json:"reliability,omitempty"` Level int `json:"level,omitempty"` }
Click to show internal directories.
Click to hide internal directories.