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

Get all places 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 Gazetteer structs.

§Returns

A Vec of &str containing the places.