# External Environmental Data Components This directory contains components for displaying external environmental data from various public APIs and data sources. ## Components ### WeatherWidget Displays current weather conditions for a location including: - Temperature and "feels like" temperature - Humidity percentage - Wind speed and direction - Weather description **Props:** - `latitude: number` - Location latitude - `longitude: number` - Location longitude **API Endpoint:** `GET /api/external/weather/:lat/:lng` ### TideDisplay Shows tide information for coastal locations including: - Next tide time and type (high/low) - Today's tide schedule with times and heights - Tide heights in meters **Props:** - `latitude: number` - Location latitude - `longitude: number` - Location longitude **API Endpoint:** `GET /api/external/tides/:lat/:lng` ### WaterQualityIndicator Displays water quality status from EPA data: - Overall quality rating (excellent, good, sufficient, poor) - Water quality parameters (bacteria, pH, temperature) - Last update date - Data source information **Props:** - `latitude: number` - Location latitude - `longitude: number` - Location longitude **API Endpoint:** `GET /api/external/water-quality/:lat/:lng` ### BeachQualityDisplay Shows beach quality ratings and certifications: - Quality rating (Blue Flag, Green Coast, etc.) - Awards and certifications - Available facilities - Last inspection date **Props:** - `latitude: number` - Location latitude - `longitude: number` - Location longitude **API Endpoint:** `GET /api/external/beach-quality/:lat/:lng` ### BiodiversityInfo Displays marine biodiversity information: - Protected area status - Habitat type - Conservation status - Notable species list with scientific names **Props:** - `latitude: number` - Location latitude - `longitude: number` - Location longitude **API Endpoint:** `GET /api/external/biodiversity/:lat/:lng` **Note:** This component only renders if meaningful data is available. ### EnvironmentalDataPanel Composite component that displays all external environmental data widgets together. **Props:** - `latitude: number` - Location latitude - `longitude: number` - Location longitude - `className?: string` - Optional CSS classes ## Usage ### Individual Components ```tsx import { WeatherWidget, TideDisplay } from '@/components/external'; function MyComponent() { return (