[][src]Function flinn_engdahl::region

pub fn region(lat: f64, lon: f64) -> Result<&'static str, RegionError>

Get the Flinn_Engdahl region name from a location at (lat,lon)

 use flinn_engdahl as fe;
 let region = fe::region(41.440971, -71.502289).unwrap();
 assert_eq!(region, "SOUTHERN NEW ENGLAND");

Arguments

  • lat - Latitude [-90, 90]
  • lon - Longitude [-360, 360]

Note: Values returned at longitude of -180 and 180 are different

Returns

  • Flinn_Engdahl Region Name