Refactor and improve
This commit is contained in:
parent
1f148b2185
commit
242acff987
22 changed files with 754 additions and 1053 deletions
|
|
@ -45,8 +45,7 @@ pub struct EnumFeatureGroup {
|
|||
pub features: &'static [EnumFeatureConfig],
|
||||
}
|
||||
|
||||
/// Columns in parquet that are neither numeric features nor enum features.
|
||||
/// These are silently skipped during schema validation.
|
||||
/// Columns in parquet that are not filterable
|
||||
pub const IGNORED_COLUMNS: &[&str] = &[
|
||||
"lat",
|
||||
"lon",
|
||||
|
|
@ -792,3 +791,17 @@ pub fn bounds_for(name: &str) -> Option<&'static Bounds> {
|
|||
.find(|feature| feature.name == name)
|
||||
.map(|feature| &feature.bounds)
|
||||
}
|
||||
|
||||
/// Canonical display order for POI category groups.
|
||||
/// The server will panic at startup if the data contains groups not in this list or vice versa.
|
||||
pub const POI_GROUP_ORDER: &[&str] = &[
|
||||
"Public Transport",
|
||||
"Amenity",
|
||||
"Building",
|
||||
"Craft",
|
||||
"Healthcare",
|
||||
"Leisure",
|
||||
"Office",
|
||||
"Shop",
|
||||
"Tourism",
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue