Skip to content

Route

route ¤

Classes:

Name Description
AircraftRoute
Destination
Route
RoutesSearch
SameOdException

AircraftRoute ¤

Classes:

Name Description
Options
Stopover
Warning

Members:

Methods:

Name Description
calc_fuel
create
estimate_load
to_dict

Attributes:

Name Type Description
acheck_cost float
ci int
co2 float
config PaxConfig | CargoConfig
contribution float
flight_time float
fuel float
income float
max_income float
max_tpd int | None
needs_stopover bool
num_ac int
profit float
repair_cost float
route Route
stopover Stopover
ticket PaxTicket | CargoTicket | VIPTicket
trips_per_day_per_ac int
valid bool
warnings list[Warning]

acheck_cost property ¤

acheck_cost: float

ci property ¤

ci: int

co2 property ¤

co2: float

config property ¤

config: PaxConfig | CargoConfig

contribution property ¤

contribution: float

flight_time property ¤

flight_time: float

fuel property ¤

fuel: float

income property ¤

income: float

max_income property ¤

max_income: float

max_tpd property ¤

max_tpd: int | None

needs_stopover property ¤

needs_stopover: bool

num_ac property ¤

num_ac: int

profit property ¤

profit: float

repair_cost property ¤

repair_cost: float

route property ¤

route: Route

stopover property ¤

stopover: Stopover

ticket property ¤

ticket: PaxTicket | CargoTicket | VIPTicket

trips_per_day_per_ac property ¤

trips_per_day_per_ac: int

valid property ¤

valid: bool

warnings property ¤

warnings: list[Warning]

Options ¤

Options(
    tpd_mode: TPDMode = AUTO,
    trips_per_day_per_ac: int = 1,
    max_distance: float = 20015.086796020572,
    max_flight_time: float = 24.0,
    config_algorithm: None | Algorithm | Algorithm = None,
    sort_by: SortBy = PER_TRIP,
)

Classes:

Name Description
SortBy

Members:

TPDMode

Members:

Attributes:

Name Type Description
config_algorithm None | Algorithm | Algorithm
max_distance float
max_flight_time float
sort_by SortBy
tpd_mode TPDMode
trips_per_day_per_ac int
config_algorithm instance-attribute ¤
config_algorithm: None | Algorithm | Algorithm
max_distance instance-attribute ¤
max_distance: float
max_flight_time instance-attribute ¤
max_flight_time: float
sort_by instance-attribute ¤
sort_by: SortBy
tpd_mode instance-attribute ¤
tpd_mode: TPDMode
trips_per_day_per_ac instance-attribute ¤
trips_per_day_per_ac: int
SortBy ¤
SortBy(value: int)

Members:

PER_TRIP

PER_AC_PER_DAY

Attributes:

Name Type Description
PER_AC_PER_DAY SortBy
PER_TRIP SortBy
name str
value int
PER_AC_PER_DAY class-attribute ¤
PER_AC_PER_DAY: SortBy
PER_TRIP class-attribute ¤
PER_TRIP: SortBy
name property ¤
name: str
value property ¤
value: int
_pybind11_conduit_v1_ staticmethod ¤
_pybind11_conduit_v1_(*args, **kwargs)
TPDMode ¤
TPDMode(value: int)

Members:

AUTO

STRICT_ALLOW_MULTIPLE_AC

STRICT

Attributes:

Name Type Description
AUTO TPDMode
STRICT TPDMode
STRICT_ALLOW_MULTIPLE_AC TPDMode
name str
value int
AUTO class-attribute ¤
AUTO: TPDMode
STRICT class-attribute ¤
STRICT: TPDMode
STRICT_ALLOW_MULTIPLE_AC class-attribute ¤
STRICT_ALLOW_MULTIPLE_AC: TPDMode
name property ¤
name: str
value property ¤
value: int
_pybind11_conduit_v1_ staticmethod ¤
_pybind11_conduit_v1_(*args, **kwargs)
_pybind11_conduit_v1_ staticmethod ¤
_pybind11_conduit_v1_(*args, **kwargs)

Stopover ¤

Methods:

Name Description
find_by_efficiency
to_dict

Attributes:

Name Type Description
airport Airport
exists bool
full_distance float
airport property ¤
airport: Airport
exists property ¤
exists: bool
full_distance property ¤
full_distance: float
_pybind11_conduit_v1_ staticmethod ¤
_pybind11_conduit_v1_(*args, **kwargs)
find_by_efficiency staticmethod ¤
find_by_efficiency(
    origin: Airport,
    destination: Airport,
    aircraft: Aircraft,
    game_mode: GameMode,
) -> Stopover
to_dict ¤
to_dict() -> dict

Warning ¤

Warning(value: int)

Members:

ERR_RWY_TOO_SHORT

ERR_DISTANCE_ABOVE_SPECIFIED

ERR_DISTANCE_TOO_LONG

ERR_DISTANCE_TOO_SHORT

REDUCED_CONTRIBUTION

ERR_NO_STOPOVER

ERR_FLIGHT_TIME_ABOVE_SPECIFIED

ERR_INSUFFICIENT_DEMAND

ERR_TRIPS_PER_DAY_TOO_HIGH

Attributes:

Name Type Description
ERR_DISTANCE_ABOVE_SPECIFIED Warning
ERR_DISTANCE_TOO_LONG Warning
ERR_DISTANCE_TOO_SHORT Warning
ERR_FLIGHT_TIME_ABOVE_SPECIFIED Warning
ERR_INSUFFICIENT_DEMAND Warning
ERR_NO_STOPOVER Warning
ERR_RWY_TOO_SHORT Warning
ERR_TRIPS_PER_DAY_TOO_HIGH Warning
REDUCED_CONTRIBUTION Warning
name str
value int
ERR_DISTANCE_ABOVE_SPECIFIED class-attribute ¤
ERR_DISTANCE_ABOVE_SPECIFIED: Warning
ERR_DISTANCE_TOO_LONG class-attribute ¤
ERR_DISTANCE_TOO_LONG: Warning
ERR_DISTANCE_TOO_SHORT class-attribute ¤
ERR_DISTANCE_TOO_SHORT: Warning
ERR_FLIGHT_TIME_ABOVE_SPECIFIED class-attribute ¤
ERR_FLIGHT_TIME_ABOVE_SPECIFIED: Warning
ERR_INSUFFICIENT_DEMAND class-attribute ¤
ERR_INSUFFICIENT_DEMAND: Warning
ERR_NO_STOPOVER class-attribute ¤
ERR_NO_STOPOVER: Warning
ERR_RWY_TOO_SHORT class-attribute ¤
ERR_RWY_TOO_SHORT: Warning
ERR_TRIPS_PER_DAY_TOO_HIGH class-attribute ¤
ERR_TRIPS_PER_DAY_TOO_HIGH: Warning
REDUCED_CONTRIBUTION class-attribute ¤
REDUCED_CONTRIBUTION: Warning
name property ¤
name: str
value property ¤
value: int
_pybind11_conduit_v1_ staticmethod ¤
_pybind11_conduit_v1_(*args, **kwargs)

_pybind11_conduit_v1_ staticmethod ¤

_pybind11_conduit_v1_(*args, **kwargs)

calc_fuel staticmethod ¤

calc_fuel(
    ac: Aircraft,
    distance: float,
    user: User = Default(),
    ci: int = 200,
) -> float

create staticmethod ¤

create(
    ap0: Airport,
    ap1: Airport,
    ac: Aircraft,
    options: Options = Options(),
    user: User = Default(),
) -> AircraftRoute

estimate_load staticmethod ¤

estimate_load(
    reputation: float = 87,
    autoprice_ratio: float = 1.06,
    has_stopover: bool = False,
) -> float

to_dict ¤

to_dict() -> dict

Destination ¤

Methods:

Name Description
to_dict

Attributes:

Name Type Description
ac_route AircraftRoute
airport Airport
origin Airport

ac_route property ¤

ac_route: AircraftRoute

airport property ¤

airport: Airport

origin property ¤

origin: Airport

_pybind11_conduit_v1_ staticmethod ¤

_pybind11_conduit_v1_(*args, **kwargs)

to_dict ¤

to_dict(include_origin: bool = False) -> dict

Route ¤

Methods:

Name Description
create
to_dict

Attributes:

Name Type Description
direct_distance float
pax_demand PaxDemand
valid bool

direct_distance property ¤

direct_distance: float

pax_demand property ¤

pax_demand: PaxDemand

valid property ¤

valid: bool

_pybind11_conduit_v1_ staticmethod ¤

_pybind11_conduit_v1_(*args, **kwargs)

create staticmethod ¤

create(ap0: Airport, ap1: Airport) -> Route

to_dict ¤

to_dict() -> dict

RoutesSearch ¤

RoutesSearch(
    ap0: list[Airport],
    ac: Aircraft,
    options: Options = Options(),
    user: User = Default(),
)

Methods:

Name Description
get

_pybind11_conduit_v1_ staticmethod ¤

_pybind11_conduit_v1_(*args, **kwargs)

_get_columns ¤

_get_columns(
    dests: list[Destination], include_origin: bool = False
) -> dict[str, list]

get ¤

get() -> list[Destination]

SameOdException ¤

Bases: Exception