geo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EarthRadiusMiles = 3_963.1
)

Variables

This section is empty.

Functions

func DegreesToRadians

func DegreesToRadians(degrees float64) float64

DegreesToRadians converts degrees to radians.

func RadiansToDegrees

func RadiansToDegrees(radians float64) float64

RadiansToDegrees converts radians to degress.

func RandomPointWithinRadius

func RandomPointWithinRadius(lat, lon, radiusMiles float64) (float64, float64)

RandomPointWithinRadius generates a random lat and long position within a given radius (in miles) of a given lat and long position.

Types

This section is empty.

Jump to

Keyboard shortcuts

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