The construction_sites criterion evaluates drought risk from proximity to active road construction sites (OSM highway=construction). Construction works damage roots, compact the soil, alter the local water regime and often reduce watering access — temporary but significant stressors for nearby street trees (issue #139).
The criterion is currently configured with weight 0.0: it contributes extras and the ML feature construction_dist_m to the AutoGluon training dataset, but not to the weighted total score (pending weight recalibration).
bluegreencity_ki/criteria/construction_sites.pytests/test_subway_construction.pyhighway=construction, fetched via osmnx (Overpass fallback)fetch_osm_construction() queries OSM for highway=construction line features within the configured bbox (no cache).sjoin_nearest computes the distance from each tree to the nearest construction way.distance ≤ 25 m → 0.7 (within the construction influence zone)
distance > 25 m → 0.1 (no influence)
meta.status = "no_data".inputs:
osm_construction:
bbox_wgs84: [9.60, 52.30, 9.92, 52.46]
# deliberately no cache_path — temporary data, fetched fresh every run
criteria:
- name: "construction_sites"
weight: 0.0
params:
distance_breaks: [25]
distance_scores: [0.7, 0.1]
| Parameter | Type | Default | Description |
|---|---|---|---|
distance_breaks |
list[float] | [25] | Distance thresholds in metres |
distance_scores |
list[float] | [0.7, 0.1] | Risk score per class (one more than breaks) |
construction_sites_risk — risk score (0–1)construction_dist_m — distance to the nearest construction way in metres (ML feature)landuse=construction) are not evaluated; road construction is the dominant stressor for street trees.construction_dist_m as AutoGluon featureAuthor: BlueGreenCity-KI Team Last Updated: 2026-07-22