function getTraceTargets(coordinate, features) {
  /**
   * @type {Array<TraceTarget>}
   */
  const targets = [];

  for (let i = 0; i < features.length; ++i) {
    const feature = features[i];
    const geometry = feature.getGeometry();
    appendGeometryTraceTargets(coordinate, geometry, targets);
  }

  return targets;
}
@param {import("../coordinate.js").Coordinate} coordinate The coordinate.
@param {Array<Feature>} features The candidate features.
@return {Array<TraceTarget>} The trace targets.