Documentation
¶
Overview ¶
GPS 定位计算距离
IP地址
Index ¶
- func EarthDistance(lat1, lng1, lat2, lng2 float64) float64
- func GetExternal() string
- func GetLocalIPAddress() string
- func LatitudeLongitudeDistance(lon1, lat1, lon2, lat2 float64) (distance float64)
- func ResolveIPV4address(ip string) (country, area, city, Isp string, err error)
- type IP
- type IPInfo
- type IpApiCom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EarthDistance ¶
func ResolveIPV4address ¶
ResolveIPV4address 解析IPv4 国家、地区、城市、运行商、错误
Types ¶
type IpApiCom ¶
type IpApiCom struct {
Status string `json:"status"`
Country string `json:"country"`
CountryCode string `json:"countryCode"`
Region string `json:"region"`
RegionName string `json:"regionName"`
City string `json:"city"`
Zip string `json:"zip"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
Timezone string `json:"timezone"`
Isp string `json:"isp"`
Org string `json:"org"`
As string `json:"as"`
Query string `json:"query"`
}
Click to show internal directories.
Click to hide internal directories.