Documentation ¶
Index ¶
Constants ¶
View Source
const EarthRadius = 6371000.0
EarthRadius is the volumetric mean radius of the Earth in meters taken from https://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html
Variables ¶
This section is empty.
Functions ¶
func HaversineDistance ¶
func HaversineDistance(pointA, pointB interface{}) float64
Distance finds the Haversine distance in meters between two points. It accepts the following types:
* google.golang.org/genproto/googleapis/type/latlng (*latlng.LatLng)
func HaversineFormula ¶
HaversineFormula finds the Haversine distance (https://en.wikipedia.org/wiki/Haversine_formula) from the latitude and longitude pairs of A and B
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.