Refactor the server

This commit is contained in:
Andras Schmelczer 2026-01-31 20:25:54 +00:00
parent 3b9ad11d71
commit 01ec17ff04
15 changed files with 939 additions and 1226 deletions

View file

@ -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;