All good
This commit is contained in:
parent
6ea544a0f6
commit
6cc7288126
45 changed files with 929 additions and 1043 deletions
|
|
@ -1014,22 +1014,6 @@ pub static FEATURE_GROUPS: &[FeatureGroup] = &[
|
|||
},
|
||||
];
|
||||
|
||||
/// Feature names that describe an individual property (price, size, type, etc.) rather
|
||||
/// than the surrounding area. Use this to skip filters that should not exclude live
|
||||
/// listings on the map even though they hide aggregated property rows.
|
||||
pub fn property_level_feature_names() -> Vec<&'static str> {
|
||||
const PROPERTY_GROUPS: &[&str] = &["Properties", "Property prices"];
|
||||
FEATURE_GROUPS
|
||||
.iter()
|
||||
.filter(|group| PROPERTY_GROUPS.contains(&group.name))
|
||||
.flat_map(|group| group.features.iter())
|
||||
.map(|feature| match feature {
|
||||
Feature::Numeric(c) => c.name,
|
||||
Feature::Enum(c) => c.name,
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Flat ordered list of all numeric feature names (follows group order).
|
||||
pub fn all_numeric_feature_names() -> Vec<&'static str> {
|
||||
FEATURE_GROUPS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue