Refactor the server
This commit is contained in:
parent
3b9ad11d71
commit
01ec17ff04
15 changed files with 939 additions and 1226 deletions
|
|
@ -1,14 +1,20 @@
|
|||
/// Lower percentile for feature range reporting
|
||||
pub const FEATURE_PERCENTILE_LOW: f64 = 2.0;
|
||||
|
||||
/// Upper percentile for feature range reporting
|
||||
pub const FEATURE_PERCENTILE_HIGH: f64 = 98.0;
|
||||
|
||||
pub const HISTOGRAM_BINS: usize = 100;
|
||||
|
||||
/// H3 resolutions to precompute at startup (covers typical zoom levels)
|
||||
pub const H3_PRECOMPUTE_MIN: u8 = 4;
|
||||
pub const H3_PRECOMPUTE_MAX: u8 = 12;
|
||||
|
||||
/// Columns to exclude from feature discovery
|
||||
pub const EXCLUDED_COLUMNS: &[&str] = &["lat", "lon"];
|
||||
|
||||
pub const EXCLUDED_STRING_COLUMNS: &[&str] = &[
|
||||
"pp_address",
|
||||
"postcode",
|
||||
"Address per Property Register",
|
||||
"Address per EPC",
|
||||
"Postcode",
|
||||
];
|
||||
|
||||
pub const MAX_ENUM_CARDINALITY: usize = 50;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue