Documentation ¶
Index ¶
- Constants
- func GeoLocationFromIP(ip string) (location m.GeoLocation, err error)
- func GetDistanceBetweenPoints(point1, point2 m.Point, unit ...string) (distance float64)
- func GetDistanceToPolygon(point1 m.Point, polygon1 []m.Point, unit ...string) (distance float64)
- func GetRegionInfo() (info m.RegionInfo, err error)
- func PointInsidePolygon(point1 m.Point, polygon1 []m.Point) bool
Constants ¶
View Source
const ( // IpApi ... IpApi = "http://ip-api.com/json" // IPAPI ... IPAPI = "https://ipapi.co/json/" )
View Source
const ( Miles = string("M") Kilometers = string("K") )
Variables ¶
This section is empty.
Functions ¶
func GeoLocationFromIP ¶
func GeoLocationFromIP(ip string) (location m.GeoLocation, err error)
GeoLocationFromIP ...
func GetDistanceBetweenPoints ¶
GetDistanceBetweenPoints ...
func GetDistanceToPolygon ¶
GetDistanceToPolygon ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.