module

EnrichmentService

Constants

FR24_API_KEY = begin ( ( if File.exists?(".env") (File.read(".env")).each_line do |line| if line.starts_with?("FR24_API_KEY=") break (line.split("=", 2))[1].strip end end end ) || ENV["FR24_API_KEY"]? ) || "" end
FR24_BASE_URL = "https://fr24api.flightradar24.com"

Class methods

calculate_distance(lat1 : Float64, lon1 : Float64, lat2 : Float64, lon2 : Float64) : Int32
Source
enabled?
Source
enrich_flight(flight : Flight)
Source
estimate_distance(origin : String, destination : String) : Int32
Source
fetch_airport_info(code : String) : AirportInfo | Nil
Source
fetch_flight_summary(flight_number : String, date : String) : FlightSummary | Nil
Source
parse_flight_data(data : JSON::Any) : FlightSummary | Nil
Source

Nested types