Skip to main content

find_candidate_netelements

Function find_candidate_netelements 

Source
pub fn find_candidate_netelements(
    gnss_pos: &GnssPosition,
    netelements: &[Netelement],
    cutoff_distance: f64,
    max_candidates: usize,
) -> Result<Vec<CandidateNetElement>, ProjectionError>
Expand description

Find candidate netelements for a GNSS position

Returns netelements within cutoff_distance, sorted by distance.

§Arguments

  • gnss_pos - The GNSS position to find candidates for
  • netelements - All available network netelements
  • cutoff_distance - Maximum distance for candidate inclusion (meters)
  • max_candidates - Maximum number of candidates to return

§Returns

Vector of candidate netelements sorted by distance (closest first)