point.go
func approximateSquareDistance(p1, p2 Point) Meters {
	avgLat := (p1.Lat() + p2.Lat()) / 2.0

	latLen := math.Abs(p1.Lat()-p2.Lat()) * float64(latDegreeLength)
	lonLen := math.Abs(p1.Lon()-p2.Lon()) * float64(lonLength.get(avgLat))

	return Meters(latLen*latLen + lonLen*lonLen)
}
func approximateSquareDistance(p1, p2 Point) Meters {
	avgLat := (p1.Lat() + p2.Lat()) / 2.0

	latLen := math.Abs(p1.Lat()-p2.Lat()) * float64(latDegreeLength)
	lonLen := math.Abs(p1.Lon()-p2.Lon()) * float64(lonLength.get(avgLat))

	return Meters(latLen*latLen + lonLen*lonLen)
}
func approximateSquareDistance ( p1 , p2 Point ) Meters { avgLat := ( p1 . Lat ( ) + p2 . Lat ( ) ) / 2.0 latLen := math . Abs ( p1 . Lat ( ) - p2 . Lat ( ) ) * float64 ( latDegreeLength ) lonLen := math . Abs ( p1 . Lon ( ) - p2 . Lon ( ) ) * float64 ( lonLength . get ( avgLat ) ) return Meters ( latLen * latLen + lonLen * lonLen ) }
// Calculates approximate distance between two points using euclidian distance. The assumption here
// is that the points are relatively close to each other.
Calculates approximate distance between two points using euclidian distance . The assumption here is that the points are relatively close to each other .