aerial

package
v0.0.0-...-49a0fbc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(l1, l2 Location) (float64, error)

calculates aerial distance in KMs

Types

type Aerial

type Aerial struct{}

func New

func New() *Aerial

New returns a new instance of Aerial.

func (*Aerial) Dump

func (n *Aerial) Dump() ([]byte, error)

Dump is not implemented in this package.

func (*Aerial) Query

func (a *Aerial) Query(q string) ([]string, error)

Query returns the aerial distance in KMs between lat long pair.

type Location

type Location struct {
	Lat  float64
	Long float64
}

Jump to

Keyboard shortcuts

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