From da72203cebe899b98f1a2e9f0cf2f541058a63ee Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 9 Dec 2019 22:53:40 +0300 Subject: [PATCH] Added a comment --- dbms/src/Functions/greatCircleDistance.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbms/src/Functions/greatCircleDistance.cpp b/dbms/src/Functions/greatCircleDistance.cpp index 1d60ed5cdc1..97c4abc6ae6 100644 --- a/dbms/src/Functions/greatCircleDistance.cpp +++ b/dbms/src/Functions/greatCircleDistance.cpp @@ -83,6 +83,7 @@ void geodistInit() /// Squared metric coefficients (for the distance in meters) on a tangent plane, for latitude and longitude (in degrees), /// depending on the latitude (in radians). + /// https://github.com/mapbox/cheap-ruler/blob/master/index.js#L67 wgs84_metric_meters_lut[i * 2] = static_cast(sqr(111132.09 - 566.05 * cos(2 * latitude) + 1.20 * cos(4 * latitude))); wgs84_metric_meters_lut[i * 2 + 1] = static_cast(sqr(111415.13 * cos(latitude) - 94.55 * cos(3 * latitude) + 0.12 * cos(5 * latitude)));