gis

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sphere

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

Sphere 两经纬度坐标距离 lonA, latA分别为A点的纬度和经度 lonB, latB分别为B点的纬度和经度 单位: 米

Types

type Location

type Location struct {
	Longitude string `json:"longitude"` // 经度
	Latitude  string `json:"latitude"`  // 纬度
}

func NewLocation

func NewLocation(locationStr string) Location

func (Location) Lat

func (loc Location) Lat() float64

func (Location) Lng

func (loc Location) Lng() float64

Jump to

Keyboard shortcuts

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