Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistance ¶
func GetDistance(args *ArgsGetDistance) (distanceM int64, err error)
GetDistance 计算两个坐标之间的距离 @result distanceM 距离米
func GetDistanceM ¶
func GetDistanceM(args *ArgsGetDistance) (distance float64, err error)
GetDistanceM 计算两个坐标之间的米数
Types ¶
type ArgsGetDistance ¶
type ArgsGetDistance struct { //出发点 StartPoint MapMathArgs.ParamsPoint `json:"startPoint"` //目的地 EndPoint MapMathArgs.ParamsPoint `json:"endPoint"` }
ArgsGetDistance 计算两个坐标之间的距离参数
Click to show internal directories.
Click to hide internal directories.