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

Get the nearest postcode to a location.

§Arguments

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

§Returns

An Option containing a reference to the nearest PostalData struct.