Skip to content

Commit

Permalink
Updated URL after changes in URL at FlightRadar24 API
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Oct 17, 2023
1 parent b21088d commit 6d7348a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flight_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

bool get_flights(float latitude, float longitude, float range_latitude, float range_longitude, bool air, bool ground, bool gliders, bool vehicles, std::list<flight_info> &flights, String &error_message)
{
const String flight_data_base_url = "http://data-cloud.flightradar24.com/zones/fcgi/feed.js";
const String bounds = String(latitude + range_latitude / 2.0) + "," + String(latitude - range_latitude / 2.0) + "," + String(longitude - range_longitude / 2.0) + "," + String(longitude + range_longitude / 2.0);
const String flight_data_url = "http://data-live.flightradar24.com/zones/fcgi/feed.js?bounds=" + bounds + "&faa=1&satellite=1&mlat=1&flarm=1&adsb=1&gnd=" + String(ground) + "&air=" + String(air) + "&vehicles=" + String(vehicles) + "&estimated=1&maxage=14400&gliders=" + String(gliders) + "&stats=0";
const String flight_data_url = flight_data_base_url + "?" + "bounds=" + bounds + "&faa=1&satellite=1&mlat=1&flarm=1&adsb=1&gnd=" + String(ground) + "&air=" + String(air) + "&vehicles=" + String(vehicles) + "&estimated=1&maxage=14400&gliders=" + String(gliders) + "&stats=0";

flights.clear();
error_message = "";
Expand Down

0 comments on commit 6d7348a

Please sign in to comment.