fix(data): filter non-Latin city names + score range clamp (Phase F)

- stg_population_geonames: reject CJK/Cyrillic/Arabic city names via regex
  (fixes "Seelow" showing Japanese characters on map)
- dim_locations: filter empty location names after trim
- location_profiles: defensive LEAST/GREATEST clamp on both scores (0-100)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-03-09 12:23:50 +01:00
parent eff50aef7d
commit 8e0dd6af63
3 changed files with 6 additions and 2 deletions

View File

@@ -278,8 +278,8 @@ SELECT
THEN ROUND(s.catchment_padel_courts::DOUBLE / s.catchment_population * 100000, 2)
ELSE NULL
END AS catchment_venues_per_100k,
s.market_score,
s.opportunity_score,
LEAST(GREATEST(s.market_score, 0), 100) AS market_score,
LEAST(GREATEST(s.opportunity_score, 0), 100) AS opportunity_score,
s.median_hourly_rate,
s.median_peak_rate,
s.median_offpeak_rate,