skytracker.services.api.api.merge_states#
- skytracker.services.api.api.merge_states(states_opensky_network: list[State], states_aviation_edge: list[State]) list[State]#
Merge states from different sources
Aviation Edge API provides more details on the flight and aircraft, but only refreshes geography information about every 5 minutes. OpenSky Network API provides less details, but does update the geography information each call. Aviation Edge API geography information is replaced by OpenSky Network API geography information where matches are found by ICAO 24-bit address.