geo

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coord

type Coord struct {
	Lat float64 `json:"lat"`
	Lon float64 `json:"lon"`
}

func LatLon

func LatLon(lat, lon float64) Coord

func (Coord) DistanceTo

func (c Coord) DistanceTo(o Coord) float64

func (Coord) Region

func (c Coord) Region() Region

func (Coord) String

func (c Coord) String() string

type Region

type Region struct {
	Code string
	Name string
	Coord
}

func (Region) String

func (c Region) String() string

Jump to

Keyboard shortcuts

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