lng_lats

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDistance

func GetDistance(lng1 float64, lat1 float64, lng2 float64, lat2 float64, unit ...string) float64

GetDistance 计算地理距离, 依次为两个坐标的纬度、经度、单位(默认: 英里, K => 公里(Km), N => 海里) 球面距离公式: https://baike.baidu.com/item/%E7%90%83%E9%9D%A2%E8%B7%9D%E7%A6%BB%E5%85%AC%E5%BC%8F/5374455?fr=aladdin ;

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL