pub fn get_postal_data_within_radius(
    location: GeoLocation,
    radius: f64,
    geonames_data: &[PostalData]
) -> Vec<&PostalData>
Expand description

Get all PostalData structs within a certain radius of a location.

§Arguments

  • location - A Location struct representing the location.
  • radius - A f64 representing the radius in kilometers.
  • geonames_data - A slice of PostalData structs.

§Returns

A Vec of &PostalData containing the postcodes.