Common Models¶
- pydantic model flight_radar.models.common.AirportWithDirection¶
Show JSON schema
{ "title": "AirportWithDirection", "type": "object", "properties": { "airport": { "description": "Airport IATA or ICAO code.", "title": "Airport", "type": "string" }, "direction": { "anyOf": [ { "$ref": "#/$defs/Direction" }, { "type": "null" } ], "default": null, "description": "Direction of the flight (inbound or outbound or both)." } }, "$defs": { "Direction": { "enum": [ "both", "inbound", "outbound" ], "title": "Direction", "type": "string" } }, "required": [ "airport" ] }
-
field airport:
str
[Required]¶ Airport IATA or ICAO code.
-
field direction:
Direction
|None
= None¶ Direction of the flight (inbound or outbound or both).
-
field airport:
- pydantic model flight_radar.models.common.Route¶
Show JSON schema
{ "title": "Route", "type": "object", "properties": { "origin": { "description": "Origin airport IATA or ICAO code.", "title": "Origin", "type": "string" }, "destination": { "description": "Destination airport IATA or ICAO code.", "title": "Destination", "type": "string" } }, "required": [ "origin", "destination" ] }
- Fields:
-
field destination:
str
[Required]¶ Destination airport IATA or ICAO code.
-
field origin:
str
[Required]¶ Origin airport IATA or ICAO code.