Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

462 B
Raw Blame
import { windForecastResponseSchema, type WindForecastResponse } from '@trek/shared';
import apiClient from './client';

/** PAD-08: the wind forecast for one place and one day. */
export const windApi = {
  forecast: (lat: number, lng: number, date: string, signal?: AbortSignal): Promise<WindForecastResponse> =>
    apiClient
      .get('/weather/wind', { params: { lat, lng, date }, signal })
      .then((r) => windForecastResponseSchema.parse(r.data)),
};