ee.Join.saveBest

Returns a join that pairs each element from the first collection with a matching element from the second collection. The match with the best join measure is added to each result as an additional property. Join measures are produced when withinDistance or maxDifference filters are used as the join condition.

UsageReturns
ee.Join.saveBest(matchKey, measureKey, outer)Join
ArgumentTypeDetails
matchKeyStringThe key used to save the match.
measureKeyStringThe key used to save the measure of the join condition on the match.
outerBoolean, default: falseIf true, primary rows without matches will be included in the result.