geo

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistanceKm

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

DistanceKm returns the great-circle distance in kilometres between two points.

func IsNearby

func IsNearby(lat1, lon1, lat2, lon2 float64, radiusKm float64) bool

IsNearby reports whether two points are within radiusKm of each other.

func Lookup

func Lookup(location string) (lat, lon float64, ok bool)

Lookup resolves a location string like "Hamburg, Germany" to coordinates. Tries exact city+country match first, then city-only. Case-insensitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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