location

package
v0.0.0-...-7a68c68 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const RADIUS = float64(6378.16)

Variables

This section is empty.

Functions

func GetDistance

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

func Radians

func Radians(x float64) float64

Types

type Location

type Location struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	Altitude  int32   `json:"altitude"`
}

Location is a position of device

Jump to

Keyboard shortcuts

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