flinn_engdahlFunction region_number
Source pub fn region_number(lat: f64, lon: f64) -> Result<usize, RegionError>
Expand description
Get the Flinn_Engdahl region numner from a location at (lat
,lon
)
use flinn_engdahl as fe;
let region = fe::region(37.871593, -122.272743).unwrap();
assert_eq!(region, "CENTRAL CALIFORNIA");
§Arguments
- lat - Latitude
- lon - Longitude
§Returns
- Flinn_Engdahl Region Number