Checkpoint all changes
This commit is contained in:
parent
65877acf95
commit
66c2a25457
28 changed files with 3035 additions and 621 deletions
|
|
@ -1,5 +1,14 @@
|
|||
use rustc_hash::FxHashMap;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::data::{POIData, PropertyData};
|
||||
use crate::index::GridIndex;
|
||||
use crate::grid_index::GridIndex;
|
||||
|
||||
#[derive(Serialize, Clone)]
|
||||
pub struct POICategoryGroup {
|
||||
pub name: String,
|
||||
pub categories: Vec<String>,
|
||||
}
|
||||
|
||||
pub struct AppState {
|
||||
pub data: PropertyData,
|
||||
|
|
@ -9,4 +18,16 @@ pub struct AppState {
|
|||
pub h3_cells: Vec<Vec<u64>>,
|
||||
pub poi_data: POIData,
|
||||
pub poi_grid: GridIndex,
|
||||
/// Precomputed JSON key names: "min_{feature_name}" for each numeric feature
|
||||
pub min_keys: Vec<String>,
|
||||
/// Precomputed JSON key names: "max_{feature_name}" for each numeric feature
|
||||
pub max_keys: Vec<String>,
|
||||
/// Precomputed JSON key names: "min_{enum_name}" for each enum feature
|
||||
pub enum_min_keys: Vec<String>,
|
||||
/// Precomputed JSON key names: "max_{enum_name}" for each enum feature
|
||||
pub enum_max_keys: Vec<String>,
|
||||
/// Precomputed POI category groups (sorted)
|
||||
pub poi_category_groups: Vec<POICategoryGroup>,
|
||||
/// Precomputed map from enum feature name to index in data.enum_features
|
||||
pub enum_name_to_idx: FxHashMap<String, usize>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue