pub fn get_postcode_location(
    postcode: &str,
    geonames_data: &[PostalData]
) -> Option<GeoLocation>
Expand description

Get the location of a postcode.

§Arguments

  • postcode - A &str representing the postcode.
  • geonames_data - A slice of PostalData structs.

§Returns

An Option containing a Location struct.