Stay organized with collections
Save and categorize content based on your preferences.
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.
Usage
Returns
ee.Join.saveBest(matchKey, measureKey, outer)
Join
Argument
Type
Details
matchKey
String
The key used to save the match.
measureKey
String
The key used to save the measure of the join condition on the match.
outer
Boolean, default: false
If true, primary rows without matches will be included in the result.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["The `saveBest` join pairs elements from two collections based on the best match according to a specified measure."],["A join measure, like distance or difference, is calculated when using `withinDistance` or `maxDifference` filters in the join condition."],["The best match and its corresponding measure are added as properties to the result using specified keys (`matchKey`, `measureKey`)."],["Optionally, unmatched primary elements can be included in the output by setting the `outer` parameter to `true`."]]],[]]