pub fn get_nearest_place(
    location: GeoLocation,
    geonames_data: &[Gazetteer]
) -> Option<&Gazetteer>
Expand description

Get the nearest place to a location.

§Arguments

  • location - A Location struct representing the location.
  • geonames_data - A slice of Gazetteer structs.

§Returns

An Option containing a reference to the nearest Gazetteer struct.