feat: Gezeiten über BSH-OGC-API mit Stations-Suche

Amtliche BSH-Wasserstandsvorhersage ersetzt Open-Meteo als Primärquelle;
nächster Pegel per Haversine, Open-Meteo nur außerhalb 75 km Reichweite.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-12 11:00:41 +02:00
parent 0b46154696
commit 7d6c908f65
20 changed files with 680 additions and 32 deletions
+5 -2
View File
@@ -10,17 +10,20 @@ export interface TideExtreme {
isHigh: boolean
}
export type TideLocationSource = 'coordinates' | 'geocoded' | 'bsh_station'
export interface TideLookupResult {
location: {
name?: string
lat: number
lon: number
source: 'coordinates' | 'geocoded'
source: TideLocationSource
stationId?: string
}
tides: {
data: {
timezone: string
datum: 'MSL'
datum: 'MSL' | 'gauge'
source: string
extrema: TideExtreme[]
}