← Back to home

API Features Comparison

☀️ Weather APIs

The application supports two weather data providers: OpenMeteo (default) and OpenWeatherMap.

Feature OpenMeteo OpenWeatherMap
Current Temperature Available Available
Weather Conditions Available Available
3-Day Forecast Available Available
Sunrise/Sunset Times Available Available
Air Quality Available Available
API Key Required No Yes
Sunshine hours Yes No

OpenMeteo (Default)

OpenMeteo is the default provider and requires no API key. It offers:

  • Free, no registration required
  • High rate limits
  • Accurate weather data from multiple sources

To use OpenMeteo, simply set WEATHER_PROVIDER=openmeteo in your .env file (this is the default).

OpenWeatherMap

OpenWeatherMap is an alternative provider that requires an API key:

  1. Sign up at OpenWeatherMap
  2. Generate an API key in your account dashboard
  3. Add these to your .env file:
    WEATHER_PROVIDER=openweather
    OPENWEATHER_API_KEY=your_api_key

Note: If OpenWeatherMap is selected but no API key is provided, the application will automatically fall back to OpenMeteo.

✈️ AeroAPI (FlightAware)

Feature Without API Key With API Key
Basic Flight Detection Available Available
Flight Altitude Available Available
Distance from Location Available Available
Flight Identification Tail number and callsign Flight number and airline
Origin/Destination Not available Available
Aircraft Type Available Available
Flight display without AeroAPI
Without AeroAPI
Flight display with AeroAPI
With AeroAPI

How to Get an API Key

FlightAware's AeroAPI offers a free tier with $5 monthly quota:

  1. Sign up at FlightAware AeroAPI
  2. Get your API key
  3. Add the key to your .env file

Note: The application is designed to stay within the free tier limits unless specifically authorized.

🚌 Public Transport APIs

The application supports multiple public transport providers, with automatic fallback to static schedule data when realtime information is unavailable.

Feature Realtime Data Schedule Fallback
Arrival Times Live updates Static schedule
Time Indicators ⚡ for realtime 🕒 when mixed
Update Frequency Usually every 30 seconds Twice a week
Data Source Provider API GTFS data

Supported realtime providers

  • Belgium:
    • STIB/MIVB (Brussels) - RT: stib, Schedule: mdb-1088
    • De Lijn (Flanders) - RT: delijn, Schedule: mdb-684
    • SNCB/MIVB (Flanders) - RT: sncb, Schedule: mdb-1859
  • Hungary:
    • BKK (Budapest) - RT: bkk, Schedule: mdb-990

Supported schedule providers

All the providers listed above also have a schedule-only mode, which is used when realtime data is not available. For public transport companies where the processing of realtime data is not programmed in, you can use the schedule-only mode, as long as you can find the company in the Mobility Database.

Fallback mechanism

The system automatically handles fallback between realtime and schedule data:

  • If realtime data is temporarily unavailable (e.g., during system startup or API issues), it switches to schedule data
  • Periodically checks if realtime data becomes available again
  • Uses exponential backoff to prevent overwhelming the system during outages
  • Visual indicators (⚡/🕒) show data source when mixing realtime and scheduled times

🔧 Technical Details: APIs Used

Weather Data

Flight Tracking

Astronomy and Space

Location Services

API Usage Notes

  • The application is designed to work with minimal API requirements - only OpenWeatherMap is strictly required for full functionality
  • All APIs are used with appropriate rate limiting to stay within free tier limits
  • Fallback mechanisms are mostly in place for when optional APIs are unavailable