Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PreComputedExtraAngles map[int]float64 = map[int]float64{
100: 120.0,
75: 88.0,
50: 56.0,
25: 28.0,
20: 22.0,
10: 12.0,
0: 180.0,
}
Precalculated angles to speed up the process. This is to build the base of the cone based on how much further do we allow the the geo asset at its current position to go beyond its destination to reach the via point
Functions ¶
func Bearings ¶
Bearing calculates the initial and final angles (in degrees) taken on the route (P, Q) using Great Circle navigation. All latitudes and longitudes are expected to be in degrees. The current method is most suitable for short distances.
func Haversine ¶
Haversine uses the haversine formula to return a great-circle distance between two latitude/longitude points. Distance returned is in kilometers.
func HaversineInMeters ¶
Returns the distance between two points (given by lat and long coordinates) in meters
Types ¶
This section is empty.