莫斯科数据源简化:移除 METAR 集群 + NOAA 结算,仅保留 UUWW 单站
- city_registry: settlement_source noaa → metar - weather_sources: 移除 Moscow METAR cluster 5 站配置 - country_networks: 删除 RussiaStationWebNetworkProvider 类 - 文档: Tier 4 备注更新
This commit is contained in:
@@ -191,8 +191,6 @@ def _provider_code_for_city(city: str) -> str:
|
||||
return "saudi_ncm"
|
||||
if normalized == "paris":
|
||||
return "fr_aeroweb"
|
||||
if normalized == "moscow":
|
||||
return "russia_metar_cluster"
|
||||
if settlement_source == "hko":
|
||||
return "hongkong_hko"
|
||||
if settlement_source == "cwa":
|
||||
@@ -984,24 +982,6 @@ class KoreaKmaNetworkProvider(CountryNetworkProvider):
|
||||
}
|
||||
|
||||
|
||||
class RussiaStationWebNetworkProvider(CountryNetworkProvider):
|
||||
def __init__(self) -> None:
|
||||
super().__init__("russia_metar_cluster", "Moscow METAR network")
|
||||
|
||||
def official_nearby_current(self, city: str, raw: Dict[str, Any]) -> List[Dict[str, Any]]:
|
||||
return _metar_cluster_rows(raw)
|
||||
|
||||
def official_network_status(self, city: str, raw: Dict[str, Any]) -> Dict[str, Any]:
|
||||
rows = self.official_nearby_current(city, raw)
|
||||
return {
|
||||
"provider_code": self.provider_code,
|
||||
"provider_label": self.provider_label,
|
||||
"available": bool(rows),
|
||||
"mode": "realtime_metar_cluster" if rows else "reference_only",
|
||||
"row_count": len(rows),
|
||||
}
|
||||
|
||||
|
||||
class IsraelImsNetworkProvider(CountryNetworkProvider):
|
||||
def __init__(self) -> None:
|
||||
super().__init__("israel_ims", "IMS Lod Airport")
|
||||
@@ -1161,8 +1141,6 @@ def get_country_network_provider(city: str) -> CountryNetworkProvider:
|
||||
return TurkeyMgmNetworkProvider()
|
||||
if provider_code == "korea_kma":
|
||||
return KoreaKmaNetworkProvider()
|
||||
if provider_code == "russia_metar_cluster":
|
||||
return RussiaStationWebNetworkProvider()
|
||||
if provider_code == "japan_jma":
|
||||
return JapanJmaNetworkProvider()
|
||||
if provider_code == "china_cma":
|
||||
|
||||
Reference in New Issue
Block a user