Flight Track Models¶
- pydantic model flight_radar.models.flight_track.FlightTrack¶
Bases:
BaseModel
Show JSON schema
{ "title": "FlightTrack", "type": "object", "properties": { "timestamp": { "description": "Timestamp of the flight position expressed in UTC (ISO 8601 date format).", "format": "date-time", "title": "Timestamp", "type": "string" }, "latitude": { "description": "Latest latitude expressed in decimal degrees", "title": "Latitude", "type": "number" }, "longitude": { "description": "Latest longitude expressed in decimal degrees", "title": "Longitude", "type": "number" }, "altitude": { "description": "Barometric pressure altitude above mean sea level (AMSL)\n reported at a standard atmospheric pressure (1013.25 hPa / 29.92 in. Hg.)\n expressed in feet.", "title": "Altitude", "type": "integer" }, "gspeed": { "description": "Speed relative to the ground expressed in knots.", "title": "Gspeed", "type": "integer" }, "vspeed": { "description": "The rate at which the aircraft is ascending or\n descending in feet per minute.", "title": "Vspeed", "type": "integer" }, "track": { "description": "True track (over ground) expressed in integer degrees as 0-360.\n Please note that 0 can in some cases mean unknown.", "title": "Track", "type": "integer" }, "squawk": { "description": "4 digit unique identifying code for ATC expressed in octal format.", "title": "Squawk", "type": "string" }, "callsign": { "description": "The last known callsign used by Air Traffic Control to denote a\n specific flight, as sent by the aircraft transponder. This callsign is\n consistent across all reported positions.", "title": "Callsign", "type": "string" }, "source": { "description": "Data source of the provided flight position.", "title": "Source", "type": "string" } }, "required": [ "timestamp", "latitude", "longitude", "altitude", "gspeed", "vspeed", "track", "squawk", "callsign", "source" ] }
- Fields:
-
field altitude:
int
[Required]¶ Barometric pressure altitude above mean sea level (AMSL) reported at a standard atmospheric pressure (1013.25 hPa / 29.92 in. Hg.) expressed in feet.
-
field callsign:
str
[Required]¶ The last known callsign used by Air Traffic Control to denote a specific flight, as sent by the aircraft transponder. This callsign is consistent across all reported positions.
-
field gspeed:
int
[Required]¶ Speed relative to the ground expressed in knots.
-
field latitude:
float
[Required]¶ Latest latitude expressed in decimal degrees
-
field longitude:
float
[Required]¶ Latest longitude expressed in decimal degrees
-
field source:
str
[Required]¶ Data source of the provided flight position.
-
field squawk:
str
[Required]¶ 4 digit unique identifying code for ATC expressed in octal format.
-
field timestamp:
datetime
[Required]¶ Timestamp of the flight position expressed in UTC (ISO 8601 date format).
-
field track:
int
[Required]¶ True track (over ground) expressed in integer degrees as 0-360. Please note that 0 can in some cases mean unknown.
-
field vspeed:
int
[Required]¶ The rate at which the aircraft is ascending or descending in feet per minute.
- static from_dto(dto)¶
- Return type:
- Parameters:
dto (FlightTrackDto)
- pydantic model flight_radar.models.flight_track.FlightTrackRequest¶
Bases:
BaseModel
Show JSON schema
{ "title": "FlightTrackRequest", "type": "object", "properties": { "flight_id": { "description": "Unique identifier assigned by Flightradar24 to the flight leg.", "title": "Flight Id", "type": "string" } }, "required": [ "flight_id" ] }
- Fields:
-
field flight_id:
str
[Required]¶ Unique identifier assigned by Flightradar24 to the flight leg.
- to_dto()¶
- Return type:
GetFlightTracksBaseRequestDto
- class flight_radar.models.flight_track.FlightTrackRequest(**data)¶
- Parameters:
flight_id (str)
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class flight_radar.models.flight_track.FlightTrack(**data)¶
- Parameters:
timestamp (datetime)
latitude (float)
longitude (float)
altitude (int)
gspeed (int)
vspeed (int)
track (int)
squawk (str)
callsign (str)
source (str)
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].