distance

package
v0.0.0-...-da2935b Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Degrees2Radians

func Degrees2Radians(degree float64) float64

角度转换为弧度 radians = degrees * (Math.PI/180);

func EarthDistance

func EarthDistance(lat1, lng1, lat2, lng2 float64) float64

func Haversine

func Haversine(lon1 float64, lat1 float64, lon2 float64, lat2 float64) float64

计算两个经纬度之间的距离 (Haversine公式)

func Radians2Degrees

func Radians2Degrees(radians float64) float64

弧度转换为角度 degrees = radians * (180/Math.PI);

Types

This section is empty.

Jump to

Keyboard shortcuts

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