S2: средняя площадь против приблизительной площади - PullRequest
0 голосов
/ 26 декабря 2018

У нас есть следующие определения для ApproxArea и AverageArea в cell.go :

// ApproxArea returns the approximate area of this cell. This method is accurate
// to within 3% percent for all cell sizes and accurate to within 0.1% for cells
// at level 5 or higher (i.e. squares 350km to a side or smaller on the Earth's
// surface). It is moderately cheap to compute.
func (c Cell) ApproxArea() float64

// AverageArea returns the average area of cells at the level of this cell.
// This is accurate to within a factor of 1.7.
func (c Cell) AverageArea() float64

Можете ли вы уточнить варианты использования и / или преимущества / недостатки длякаждый и их стоимость?

...