module Cisco::Meraki::Geo

Defined in:

cisco/meraki/geo.cr

Constant Summary

EarthRadiusApprox = 6371000.7900

radius in meters, approx as we're using a perfect sphere the same volume as the earth

Radians = Math::PI / 180_f64

Class Method Summary

Class Method Detail

def self.calculate_xy(top_left : Point, bottom_left : Point, bottom_right : Point, position, distance : Distance) #

[View source]
def self.geo_distance(start : Point, ending) #

https://www.movable-type.co.uk/scripts/latlong.html returns the distance in meters


[View source]
def self.triangle_height(a : Float64, base : Float64, c : Float64) #

https://www.omnicalculator.com/math/triangle-height


[View source]