csdif_core/context.rs
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2025 Egon Kastelijn
3// file: src/context.rs
4
5use crate::error::ContextError;
6use crate::model::StationProfile;
7
8/// Provides context for mapping, such as station metadata.
9pub trait ContextProvider {
10 fn get_station_profile(&self, id: &str) -> Result<StationProfile, ContextError>;
11}