Typing improved
This commit is contained in:
parent
e09e8f29fb
commit
3599a034dc
@ -70,15 +70,15 @@ class Client():
|
|||||||
self.access_id = access_id
|
self.access_id = access_id
|
||||||
|
|
||||||
def board_arrival(self,
|
def board_arrival(self,
|
||||||
id: str = None, # type: ignore
|
id: Union[str, None] = None,
|
||||||
id_ext: str = None, # type: ignore
|
id_ext: Union[str, None] = None,
|
||||||
direction: Union[str, Stop, StopTrip] = None, # type: ignore
|
direction: Union[str, Stop, StopTrip, None] = None,
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
time: Union[str, datetime] = None, # type: ignore
|
time: Union[str, datetime, None] = None,
|
||||||
duration: Union[int, timedelta] = 60,
|
duration: Union[int, timedelta] = 60,
|
||||||
journeys_max: int = -1,
|
journeys_max: int = -1,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
board_type: Literal[BoardArrivalType.ARR, BoardArrivalType.ARR_EQUIVS, BoardArrivalType.ARR_MAST, BoardArrivalType.ARR_STATION] = BoardArrivalType.ARR,
|
board_type: Literal[BoardArrivalType.ARR, BoardArrivalType.ARR_EQUIVS, BoardArrivalType.ARR_MAST, BoardArrivalType.ARR_STATION] = BoardArrivalType.ARR,
|
||||||
) -> BoardArrival:
|
) -> BoardArrival:
|
||||||
@ -113,7 +113,7 @@ class Client():
|
|||||||
direction=direction, # type: ignore
|
direction=direction, # type: ignore
|
||||||
date=date,
|
date=date,
|
||||||
time=time,
|
time=time,
|
||||||
duration=duration, # type: ignore
|
duration=duration,
|
||||||
maxJourneys=journeys_max,
|
maxJourneys=journeys_max,
|
||||||
operators=operators,
|
operators=operators,
|
||||||
lines=lines,
|
lines=lines,
|
||||||
@ -126,15 +126,15 @@ class Client():
|
|||||||
return BoardArrival(board_raw, self)
|
return BoardArrival(board_raw, self)
|
||||||
|
|
||||||
def board_departure(self,
|
def board_departure(self,
|
||||||
id: str = None, # type: ignore
|
id: Union[str, None] = None,
|
||||||
id_ext: str = None, # type: ignore
|
id_ext: Union[str, None] = None,
|
||||||
direction: Union[str, Stop, StopTrip] = None, # type: ignore
|
direction: Union[str, Stop, StopTrip, None] = None,
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
time: Union[str, datetime] = None, # type: ignore
|
time: Union[str, datetime, None] = None,
|
||||||
duration: Union[int, timedelta] = 60,
|
duration: Union[int, timedelta] = 60,
|
||||||
journeys_max: int = -1,
|
journeys_max: int = -1,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
board_type: Literal[BoardDepartureType.DEP, BoardDepartureType.DEP_EQUIVS, BoardDepartureType.DEP_MAST, BoardDepartureType.DEP_STATION] = BoardDepartureType.DEP,
|
board_type: Literal[BoardDepartureType.DEP, BoardDepartureType.DEP_EQUIVS, BoardDepartureType.DEP_MAST, BoardDepartureType.DEP_STATION] = BoardDepartureType.DEP,
|
||||||
) -> BoardDeparture:
|
) -> BoardDeparture:
|
||||||
@ -169,7 +169,7 @@ class Client():
|
|||||||
direction=direction, # type: ignore
|
direction=direction, # type: ignore
|
||||||
date=date,
|
date=date,
|
||||||
time=time,
|
time=time,
|
||||||
duration=duration, # type: ignore
|
duration=duration,
|
||||||
maxJourneys=journeys_max,
|
maxJourneys=journeys_max,
|
||||||
operators=operators,
|
operators=operators,
|
||||||
lines=lines,
|
lines=lines,
|
||||||
@ -182,28 +182,28 @@ class Client():
|
|||||||
return BoardDeparture(board_raw, self)
|
return BoardDeparture(board_raw, self)
|
||||||
|
|
||||||
def him_search(self,
|
def him_search(self,
|
||||||
date_begin: Union[str, datetime] = None, # type: ignore
|
date_begin: Union[str, datetime, None] = None,
|
||||||
date_end: Union[str, datetime] = None, # type: ignore
|
date_end: Union[str, datetime, None] = None,
|
||||||
time_begin: Union[str, datetime] = None, # type: ignore
|
time_begin: Union[str, datetime, None] = None,
|
||||||
time_end: Union[str, datetime] = None, # type: ignore
|
time_end: Union[str, datetime, None] = None,
|
||||||
weekdays: Union[str, OrderedDict[str, bool]] = None, # type: ignore
|
weekdays: Union[str, OrderedDict[str, bool], None] = None,
|
||||||
ids: list = None, # type: ignore
|
ids: Union[list, None] = None,
|
||||||
operators: list = None, # type: ignore
|
operators: Union[list, None] = None,
|
||||||
categories: list = None, # type: ignore
|
categories: Union[list, None] = None,
|
||||||
channels: list = None, # type: ignore
|
channels: Union[list, None] = None,
|
||||||
companies: list = None, # type: ignore
|
companies: Union[list, None] = None,
|
||||||
lines: list = None, # type: ignore
|
lines: Union[list, None] = None,
|
||||||
line_ids: list = None, # type: ignore
|
line_ids: Union[list, None] = None,
|
||||||
stations: Union[list, List[Stop]] = None, # type: ignore
|
stations: Union[list, List[Stop], None] = None,
|
||||||
station_from: Union[str, Stop] = None, # type: ignore
|
station_from: Union[str, Stop, None] = None,
|
||||||
station_to: Union[str, Stop] = None, # type: ignore
|
station_to: Union[str, Stop, None] = None,
|
||||||
both_ways: bool = None, # type: ignore
|
both_ways: Union[bool, None] = None,
|
||||||
train_names: list = None, # type: ignore
|
train_names: Union[list, None] = None,
|
||||||
search_mode: Literal[SearchMode.MATCH, SearchMode.NOMATCH, SearchMode.TFMATCH] = None, # type: ignore
|
search_mode: Union[Literal[SearchMode.MATCH, SearchMode.NOMATCH, SearchMode.TFMATCH], None] = None,
|
||||||
affected_journey_mode: Literal[AffectedJourneyMode.ALL, AffectedJourneyMode.OFF] = None, # type: ignore
|
affected_journey_mode: Union[Literal[AffectedJourneyMode.ALL, AffectedJourneyMode.OFF], None] = None,
|
||||||
affected_journey_stop_mode: Literal[AffectedJourneyStopMode.ALL, AffectedJourneyStopMode.IMP, AffectedJourneyStopMode.OFF] = None, # type: ignore
|
affected_journey_stop_mode: Union[Literal[AffectedJourneyStopMode.ALL, AffectedJourneyStopMode.IMP, AffectedJourneyStopMode.OFF], None] = None,
|
||||||
priority_min: int = None, # type: ignore
|
priority_min: Union[int, None] = None,
|
||||||
priority_max: int = None # type: ignore
|
priority_max: Union[int, None] = None
|
||||||
) -> List[Message]:
|
) -> List[Message]:
|
||||||
"""The him_search method will deliver a list of HIM messages if matched by the given criteria as
|
"""The him_search method will deliver a list of HIM messages if matched by the given criteria as
|
||||||
well as affected products if any.
|
well as affected products if any.
|
||||||
@ -239,10 +239,10 @@ class Client():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if isinstance(station_from, Stop):
|
if isinstance(station_from, Stop):
|
||||||
station_from = station_from.ext_id # type: ignore
|
station_from = station_from.ext_id
|
||||||
|
|
||||||
if isinstance(station_to, Stop):
|
if isinstance(station_to, Stop):
|
||||||
station_to = station_to.ext_id # type: ignore
|
station_to = station_to.ext_id
|
||||||
|
|
||||||
if stations != None:
|
if stations != None:
|
||||||
new_stations = []
|
new_stations = []
|
||||||
@ -254,17 +254,17 @@ class Client():
|
|||||||
stations = new_stations
|
stations = new_stations
|
||||||
|
|
||||||
if search_mode == None:
|
if search_mode == None:
|
||||||
search_mode = None # type: ignore
|
search_mode = None
|
||||||
else:
|
else:
|
||||||
search_mode = search_mode.code
|
search_mode = search_mode.code
|
||||||
|
|
||||||
if affected_journey_mode == None:
|
if affected_journey_mode == None:
|
||||||
affected_journey_mode = None # type: ignore
|
affected_journey_mode = None
|
||||||
else:
|
else:
|
||||||
affected_journey_mode = affected_journey_mode.code
|
affected_journey_mode = affected_journey_mode.code
|
||||||
|
|
||||||
if affected_journey_stop_mode == None:
|
if affected_journey_stop_mode == None:
|
||||||
affected_journey_stop_mode = None # type: ignore
|
affected_journey_stop_mode = None
|
||||||
else:
|
else:
|
||||||
affected_journey_stop_mode = affected_journey_stop_mode.code
|
affected_journey_stop_mode = affected_journey_stop_mode.code
|
||||||
|
|
||||||
@ -304,12 +304,12 @@ class Client():
|
|||||||
|
|
||||||
def journey_detail(self,
|
def journey_detail(self,
|
||||||
id: str,
|
id: str,
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
real_time_mode: Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT] = None, # type: ignore
|
real_time_mode: Union[Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT], None] = None,
|
||||||
from_id: str = None, # type: ignore
|
from_id: Union[str, None] = None,
|
||||||
from_index: int = None, # type: ignore
|
from_index: Union[int, None] = None,
|
||||||
to_id: str = None, # type: ignore
|
to_id: Union[str, None] = None,
|
||||||
to_index: int = None # type: ignore
|
to_index: Union[int, None] = None
|
||||||
) -> Journey:
|
) -> Journey:
|
||||||
"""The journey_detail method will deliver information about the complete route of a vehicle. The journey
|
"""The journey_detail method will deliver information about the complete route of a vehicle. The journey
|
||||||
identifier is part of a trip or `board_departure()` response. It contains a list of all stops/stations of this journey
|
identifier is part of a trip or `board_departure()` response. It contains a list of all stops/stations of this journey
|
||||||
@ -332,7 +332,7 @@ class Client():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if real_time_mode == None:
|
if real_time_mode == None:
|
||||||
real_time_mode = None # type: ignore
|
real_time_mode = None
|
||||||
else:
|
else:
|
||||||
real_time_mode = real_time_mode.code
|
real_time_mode = real_time_mode.code
|
||||||
|
|
||||||
@ -342,9 +342,9 @@ class Client():
|
|||||||
date=date,
|
date=date,
|
||||||
rtMode=real_time_mode, # type: ignore
|
rtMode=real_time_mode, # type: ignore
|
||||||
fromId=from_id,
|
fromId=from_id,
|
||||||
fromIdx=from_index, # type: ignore
|
fromIdx=from_index,
|
||||||
toId=to_id,
|
toId=to_id,
|
||||||
toIdx=to_index # type: ignore
|
toIdx=to_index
|
||||||
)
|
)
|
||||||
|
|
||||||
find_exception(journey_raw)
|
find_exception(journey_raw)
|
||||||
@ -359,7 +359,7 @@ class Client():
|
|||||||
radius: Union[int, float] = 1000,
|
radius: Union[int, float] = 1000,
|
||||||
max_number: int = 10,
|
max_number: int = 10,
|
||||||
stop_type: Literal[LocationType.S, LocationType.P, LocationType.SP, LocationType.SE, LocationType.SPE] = LocationType.S,
|
stop_type: Literal[LocationType.S, LocationType.P, LocationType.SP, LocationType.SE, LocationType.SPE] = LocationType.S,
|
||||||
selection_mode: Literal[SelectionMode.SLCT_A, SelectionMode.SLCT_N] = None, # type: ignore
|
selection_mode: Union[Literal[SelectionMode.SLCT_A, SelectionMode.SLCT_N], None] = None,
|
||||||
) -> List[Stop]:
|
) -> List[Stop]:
|
||||||
"""Method returns a list of stops around a given center coordinate.
|
"""Method returns a list of stops around a given center coordinate.
|
||||||
The returned results are ordered by their distance to the center coordinate.
|
The returned results are ordered by their distance to the center coordinate.
|
||||||
@ -380,7 +380,7 @@ class Client():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if selection_mode == None:
|
if selection_mode == None:
|
||||||
selection_mode = None # type: ignore
|
selection_mode = None
|
||||||
else:
|
else:
|
||||||
selection_mode = selection_mode.code
|
selection_mode = selection_mode.code
|
||||||
|
|
||||||
@ -446,12 +446,12 @@ class Client():
|
|||||||
lang: Literal[Language.DE, Language.DA, Language.EN, Language.ES, Language.FR, Language.HU, Language.IT, Language.NL, Language.NO, Language.PL, Language.SV, Language.TR] = Language.EN,
|
lang: Literal[Language.DE, Language.DA, Language.EN, Language.ES, Language.FR, Language.HU, Language.IT, Language.NL, Language.NO, Language.PL, Language.SV, Language.TR] = Language.EN,
|
||||||
max_number: int = 10,
|
max_number: int = 10,
|
||||||
stop_type: Literal[LocationType.A, LocationType.ALL, LocationType.AP, LocationType.P, LocationType.S, LocationType.SA, LocationType.SP] = LocationType.ALL,
|
stop_type: Literal[LocationType.A, LocationType.ALL, LocationType.AP, LocationType.P, LocationType.S, LocationType.SA, LocationType.SP] = LocationType.ALL,
|
||||||
selection_mode: Literal[SelectionMode.SLCT_A, SelectionMode.SLCT_N] = None, # type: ignore
|
selection_mode: Union[Literal[SelectionMode.SLCT_A, SelectionMode.SLCT_N], None] = None,
|
||||||
coord_lat: Union[str, float] = None, # type: ignore
|
coord_lat: Union[str, float, None] = None,
|
||||||
coord_lon: Union[str, float] = None, # type: ignore
|
coord_lon: Union[str, float, None] = None,
|
||||||
radius: Union[int, float] = 1000,
|
radius: Union[int, float] = 1000,
|
||||||
refine_id: str = None, # type: ignore
|
refine_id: Union[str, None] = None,
|
||||||
stations: Union[str, list] = None, # type: ignore
|
stations: Union[str, list, None] = None,
|
||||||
filter_mode: Literal[FilterMode.DIST_PERI, FilterMode.EXCL_PERI, FilterMode.SLCT_PERI] = FilterMode.DIST_PERI
|
filter_mode: Literal[FilterMode.DIST_PERI, FilterMode.EXCL_PERI, FilterMode.SLCT_PERI] = FilterMode.DIST_PERI
|
||||||
) -> List[Stop]:
|
) -> List[Stop]:
|
||||||
"""Method can be used to perform a pattern matching of a user input and to retrieve a list
|
"""Method can be used to perform a pattern matching of a user input and to retrieve a list
|
||||||
@ -478,7 +478,7 @@ class Client():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if selection_mode == None:
|
if selection_mode == None:
|
||||||
selection_mode = None # type: ignore
|
selection_mode = None
|
||||||
else:
|
else:
|
||||||
selection_mode = selection_mode.code
|
selection_mode = selection_mode.code
|
||||||
|
|
||||||
@ -511,47 +511,47 @@ class Client():
|
|||||||
def trip_find(self,
|
def trip_find(self,
|
||||||
lang: Literal[Language.DE, Language.DA, Language.EN, Language.ES, Language.FR, Language.HU, Language.IT, Language.NL, Language.NO, Language.PL, Language.SV, Language.TR] = Language.EN,
|
lang: Literal[Language.DE, Language.DA, Language.EN, Language.ES, Language.FR, Language.HU, Language.IT, Language.NL, Language.NO, Language.PL, Language.SV, Language.TR] = Language.EN,
|
||||||
|
|
||||||
origin_id: str = None, # type: ignore
|
origin_id: Union[str, None] = None,
|
||||||
origin_id_ext: str = None, # type: ignore
|
origin_id_ext: Union[str, None] = None,
|
||||||
origin_coord_lat: Union[str, float] = None, # type: ignore
|
origin_coord_lat: Union[str, float, None] = None,
|
||||||
origin_coord_lon: Union[str, float] = None, # type: ignore
|
origin_coord_lon: Union[str, float, None] = None,
|
||||||
origin_coord_name: str = None, # type: ignore
|
origin_coord_name: Union[str, None] = None,
|
||||||
|
|
||||||
destination_id: str = None, # type: ignore
|
destination_id: Union[str, None] = None,
|
||||||
destination_id_ext: str = None, # type: ignore
|
destination_id_ext: Union[str, None] = None,
|
||||||
destination_coord_lat: Union[str, float] = None, # type: ignore
|
destination_coord_lat: Union[str, float, None] = None,
|
||||||
destination_coord_lon: Union[str, float] = None, # type: ignore
|
destination_coord_lon: Union[str, float, None] = None,
|
||||||
destination_coord_name: str = None, # type: ignore
|
destination_coord_name: Union[str, None] = None,
|
||||||
|
|
||||||
via: str = None, # type: ignore
|
via: Union[str, None] = None,
|
||||||
via_id: str = None, # type: ignore
|
via_id: Union[str, None] = None,
|
||||||
via_gis: str = None, # type: ignore
|
via_gis: Union[str, None] = None,
|
||||||
via_wait_time: int = 0,
|
via_wait_time: int = 0,
|
||||||
|
|
||||||
avoid: str = None, # type: ignore
|
avoid: Union[str, None] = None,
|
||||||
avoid_id: str = None, # type: ignore
|
avoid_id: Union[str, None] = None,
|
||||||
|
|
||||||
change_time_percent: int = 100,
|
change_time_percent: int = 100,
|
||||||
change_time_min: int = None, # type: ignore
|
change_time_min: Union[int, None] = None,
|
||||||
change_time_max: int = None, # type: ignore
|
change_time_max: Union[int, None] = None,
|
||||||
change_time_add: int = None, # type: ignore
|
change_time_add: Union[int, None] = None,
|
||||||
change_max: int = None, # type: ignore
|
change_max: Union[int, None] = None,
|
||||||
|
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
time: Union[str, datetime] = None, # type: ignore
|
time: Union[str, datetime, None] = None,
|
||||||
|
|
||||||
search_arrival: bool = False,
|
search_arrival: bool = False,
|
||||||
|
|
||||||
trips_after_time: int = None, # type: ignore
|
trips_after_time: Union[int, None] = None,
|
||||||
trips_before_time: int = None, # type: ignore
|
trips_before_time: Union[int, None] = None,
|
||||||
|
|
||||||
context: str = None, # type: ignore
|
context: Union[str, None] = None,
|
||||||
|
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
|
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
lineids: Union[str, list] = None, # type: ignore
|
lineids: Union[str, list, None] = None,
|
||||||
|
|
||||||
iv_include: bool = False,
|
iv_include: bool = False,
|
||||||
iv_only: bool = False,
|
iv_only: bool = False,
|
||||||
@ -560,11 +560,11 @@ class Client():
|
|||||||
|
|
||||||
passing_points: bool = False,
|
passing_points: bool = False,
|
||||||
|
|
||||||
real_time_mode: Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT] = None, # type: ignore
|
real_time_mode: Union[Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT], None] = None,
|
||||||
|
|
||||||
include_earlier: bool = False,
|
include_earlier: bool = False,
|
||||||
ict_alternatives: bool = False,
|
ict_alternatives: bool = False,
|
||||||
tariff: bool = None, # type: ignore
|
tariff: Union[bool, None] = None,
|
||||||
messages: bool = False,
|
messages: bool = False,
|
||||||
frequency: bool = True
|
frequency: bool = True
|
||||||
) -> List[Trip]:
|
) -> List[Trip]:
|
||||||
@ -623,7 +623,7 @@ class Client():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if real_time_mode == None:
|
if real_time_mode == None:
|
||||||
real_time_mode = None # type: ignore
|
real_time_mode = None
|
||||||
else:
|
else:
|
||||||
real_time_mode = real_time_mode.code
|
real_time_mode = real_time_mode.code
|
||||||
|
|
||||||
@ -700,17 +700,17 @@ class Client():
|
|||||||
|
|
||||||
def trip_recon(self,
|
def trip_recon(self,
|
||||||
context: Union[str, Trip],
|
context: Union[str, Trip],
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
match_real_time: bool = None, # type: ignore
|
match_real_time: Union[bool, None] = None,
|
||||||
enable_replacements: bool = None, # type: ignore
|
enable_replacements: Union[bool, None] = None,
|
||||||
arrival_dev_lower: int = None, # type: ignore
|
arrival_dev_lower: Union[int, None] = None,
|
||||||
arrival_dev_upper: int = None, # type: ignore
|
arrival_dev_upper: Union[int, None] = None,
|
||||||
departure_dev_lower: int = None, # type: ignore
|
departure_dev_lower: Union[int, None] = None,
|
||||||
departure_dev_upper: int = None, # type: ignore
|
departure_dev_upper: Union[int, None] = None,
|
||||||
passlist: bool = None, # type: ignore
|
passlist: bool = False,
|
||||||
passing_points: bool = False,
|
passing_points: bool = False,
|
||||||
real_time_mode: Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT] = None, # type: ignore
|
real_time_mode: Union[Literal[RealTimeMode.FULL, RealTimeMode.INFOS, RealTimeMode.OFF, RealTimeMode.REALTIME, RealTimeMode.SERVER_DEFAULT], None] = None,
|
||||||
tariff: bool = None, # type: ignore
|
tariff: Union[bool, None] = None,
|
||||||
messages: bool = False
|
messages: bool = False
|
||||||
) -> List[Trip]:
|
) -> List[Trip]:
|
||||||
"""Reconstructing a trip can be achieved using the reconstruction context provided by any trip result in the
|
"""Reconstructing a trip can be achieved using the reconstruction context provided by any trip result in the
|
||||||
@ -739,7 +739,7 @@ class Client():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if real_time_mode == None:
|
if real_time_mode == None:
|
||||||
real_time_mode = None # type: ignore
|
real_time_mode = None
|
||||||
else:
|
else:
|
||||||
real_time_mode = real_time_mode.code
|
real_time_mode = real_time_mode.code
|
||||||
|
|
||||||
|
@ -11,19 +11,19 @@ except ImportError:
|
|||||||
# 2.25. Arrival Board (arrivalBoard)
|
# 2.25. Arrival Board (arrivalBoard)
|
||||||
def board_arrival(accessId: str,
|
def board_arrival(accessId: str,
|
||||||
json: bool = True,
|
json: bool = True,
|
||||||
id: str = None, # type: ignore
|
id: Union[str, None] = None,
|
||||||
extId: str = None, # type: ignore
|
extId: Union[str, None] = None,
|
||||||
direction: str = None, # type: ignore
|
direction: Union[str, None] = None,
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
time: Union[str, datetime] = None, # type: ignore
|
time: Union[str, datetime, None] = None,
|
||||||
duration: int = 60,
|
duration: Union[int, timedelta] = 60,
|
||||||
maxJourneys: int = -1,
|
maxJourneys: int = -1,
|
||||||
products: int = None, # type: ignore
|
products: Union[int, None] = None,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
filterEquiv: bool = True,
|
filterEquiv: bool = True,
|
||||||
attributes: Union[str, list] = None, # type: ignore
|
attributes: Union[str, list, None] = None,
|
||||||
platforms: Union[str, list] = None, # type: ignore
|
platforms: Union[str, list, None] = None,
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
boardType: Literal["ARR", "ARR_EQUIVS", "ARR_MAST", "ARR_STATION"] = "ARR"
|
boardType: Literal["ARR", "ARR_EQUIVS", "ARR_MAST", "ARR_STATION"] = "ARR"
|
||||||
) -> dict:
|
) -> dict:
|
||||||
@ -81,7 +81,7 @@ def board_arrival(accessId: str,
|
|||||||
elif str(var) == "duration":
|
elif str(var) == "duration":
|
||||||
if val != None:
|
if val != None:
|
||||||
if isinstance(val, timedelta):
|
if isinstance(val, timedelta):
|
||||||
payload[str(var)] = val.minutes
|
payload[str(var)] = val.minutes # type: ignore
|
||||||
else:
|
else:
|
||||||
payload[str(var)] = val
|
payload[str(var)] = val
|
||||||
elif str(var) == "boardType":
|
elif str(var) == "boardType":
|
||||||
|
@ -11,19 +11,19 @@ except ImportError:
|
|||||||
# 2.24. Departure Board (departureBoard)
|
# 2.24. Departure Board (departureBoard)
|
||||||
def board_departure(accessId: str,
|
def board_departure(accessId: str,
|
||||||
json: bool = True,
|
json: bool = True,
|
||||||
id: str = None, # type: ignore
|
id: Union[str, None] = None,
|
||||||
extId: str = None, # type: ignore
|
extId: Union[str, None] = None,
|
||||||
direction: str = None, # type: ignore
|
direction: Union[str, None] = None,
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
time: Union[str, datetime] = None, # type: ignore
|
time: Union[str, datetime, None] = None,
|
||||||
duration: int = 60,
|
duration: Union[int, timedelta] = 60,
|
||||||
maxJourneys: int = -1,
|
maxJourneys: int = -1,
|
||||||
products: int = None, # type: ignore
|
products: Union[int, None] = None,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
filterEquiv: bool = True,
|
filterEquiv: bool = True,
|
||||||
attributes: Union[str, list] = None, # type: ignore
|
attributes: Union[str, list, None] = None,
|
||||||
platforms: Union[str, list] = None, # type: ignore
|
platforms: Union[str, list, None] = None,
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
boardType: Literal["DEP", "DEP_EQUIVS", "DEP_MAST", "DEP_STATION"] = "DEP"
|
boardType: Literal["DEP", "DEP_EQUIVS", "DEP_MAST", "DEP_STATION"] = "DEP"
|
||||||
) -> dict:
|
) -> dict:
|
||||||
@ -82,7 +82,7 @@ def board_departure(accessId: str,
|
|||||||
elif str(var) == "duration":
|
elif str(var) == "duration":
|
||||||
if val != None:
|
if val != None:
|
||||||
if isinstance(val, timedelta):
|
if isinstance(val, timedelta):
|
||||||
payload[str(var)] = val.minutes
|
payload[str(var)] = val.minutes # type: ignore
|
||||||
else:
|
else:
|
||||||
payload[str(var)] = val
|
payload[str(var)] = val
|
||||||
elif str(var) == "boardType":
|
elif str(var) == "boardType":
|
||||||
|
@ -13,38 +13,38 @@ except ImportError:
|
|||||||
# 2.37. HIM Search (himsearch)
|
# 2.37. HIM Search (himsearch)
|
||||||
def him_search(accessId: str,
|
def him_search(accessId: str,
|
||||||
json: bool = True,
|
json: bool = True,
|
||||||
dateB: Union[str, datetime] = None, # type: ignore
|
dateB: Union[str, datetime, None] = None,
|
||||||
dateE: Union[str, datetime] = None, # type: ignore
|
dateE: Union[str, datetime, None] = None,
|
||||||
timeB: Union[str, datetime] = None, # type: ignore
|
timeB: Union[str, datetime, None] = None,
|
||||||
timeE: Union[str, datetime] = None, # type: ignore
|
timeE: Union[str, datetime, None] = None,
|
||||||
weekdays: Union[str, OrderedDict[str, bool]] = None, # type: ignore
|
weekdays: Union[str, OrderedDict[str, bool], None] = None,
|
||||||
himIds: Union[str, list] = None, # type: ignore
|
himIds: Union[str, list, None] = None,
|
||||||
hierarchicalView: bool = False,
|
hierarchicalView: bool = False,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
categories: Union[str, list] = None, # type: ignore
|
categories: Union[str, list, None] = None,
|
||||||
channels: Union[str, list] = None, # type: ignore
|
channels: Union[str, list, None] = None,
|
||||||
companies: Union[str, list] = None, # type: ignore
|
companies: Union[str, list, None] = None,
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
lineids: Union[str, list] = None, # type: ignore
|
lineids: Union[str, list, None] = None,
|
||||||
stations: Union[str, list] = None, # type: ignore
|
stations: Union[str, list, None] = None,
|
||||||
fromstation: str = None, # type: ignore
|
fromstation: Union[str, None] = None,
|
||||||
tostation: str = None, # type: ignore
|
tostation: Union[str, None] = None,
|
||||||
bothways: bool = None, # type: ignore
|
bothways: Union[bool, None] = None,
|
||||||
trainnames: Union[str, list] = None, # type: ignore
|
trainnames: Union[str, list, None] = None,
|
||||||
metas: Union[str, list] = None, # type: ignore
|
metas: Union[str, list, None] = None,
|
||||||
himcategory: str = None, # type: ignore
|
himcategory: Union[str, None] = None,
|
||||||
himtags: Union[str, list] = None, # type: ignore
|
himtags: Union[str, list, None] = None,
|
||||||
regions: Union[str, list] = None, # type: ignore
|
regions: Union[str, list, None] = None,
|
||||||
himtext: Union[str, list] = None, # type: ignore
|
himtext: Union[str, list, None] = None,
|
||||||
himtexttags: Union[str, list] = None, # type: ignore
|
himtexttags: Union[str, list, None] = None,
|
||||||
additionalfields: Union[str, list, dict] = None, # type: ignore
|
additionalfields: Union[str, list, dict, None] = None,
|
||||||
poly: bool = False,
|
poly: bool = False,
|
||||||
searchmode: Literal["MATCH", "NOMATCH", "TFMATCH"] = None, # type: ignore
|
searchmode: Union[Literal["MATCH", "NOMATCH", "TFMATCH"], None] = None,
|
||||||
affectedJourneyMode: Literal["ALL", "OFF"] = None, # type: ignore
|
affectedJourneyMode: Union[Literal["ALL", "OFF"], None] = None,
|
||||||
affectedJourneyStopMode: Literal["ALL", "IMP", "OFF"] = None, # type: ignore
|
affectedJourneyStopMode: Union[Literal["ALL", "IMP", "OFF"], None] = None,
|
||||||
orderBy: Union[str, list] = None, # type: ignore
|
orderBy: Union[str, list, None] = None,
|
||||||
minprio: Union[str, int] = None, # type: ignore
|
minprio: Union[str, int, None] = None,
|
||||||
maxprio: Union[str, int] = None # type: ignore
|
maxprio: Union[str, int, None] = None
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""The himSearch will return a list of HIM messages if matched by the given criteria as well as affected
|
"""The himSearch will return a list of HIM messages if matched by the given criteria as well as affected
|
||||||
products if any.
|
products if any.
|
||||||
|
@ -12,15 +12,15 @@ except ImportError:
|
|||||||
def journey_detail(accessId: str,
|
def journey_detail(accessId: str,
|
||||||
id: str,
|
id: str,
|
||||||
json: bool = True,
|
json: bool = True,
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
poly: bool = False,
|
poly: bool = False,
|
||||||
polyEnc: Literal["DLT", "GPA", "N"] = "N",
|
polyEnc: Literal["DLT", "GPA", "N"] = "N",
|
||||||
showPassingPoints: bool = False,
|
showPassingPoints: bool = False,
|
||||||
rtMode: Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"] = None, # type: ignore
|
rtMode: Union[Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"], None] = None,
|
||||||
fromId: str = None, # type: ignore
|
fromId: Union[str, None] = None,
|
||||||
fromIdx: str = None, # type: ignore
|
fromIdx: Union[int, None] = None,
|
||||||
toId: str = None, # type: ignore
|
toId: Union[str, None] = None,
|
||||||
toIdx: str = None, # type: ignore
|
toIdx: Union[int, None] = None,
|
||||||
baim: bool = False
|
baim: bool = False
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""The journey_detail method will deliver information about the complete route of a vehicle. The journey
|
"""The journey_detail method will deliver information about the complete route of a vehicle. The journey
|
||||||
|
@ -16,11 +16,11 @@ def stop_by_coords(accessId: str,
|
|||||||
radius: Union[int, float] = 1000,
|
radius: Union[int, float] = 1000,
|
||||||
maxNo: int = 10,
|
maxNo: int = 10,
|
||||||
stopType: Literal["S", "P", "SP", "SE", "SPE"] = "S",
|
stopType: Literal["S", "P", "SP", "SE", "SPE"] = "S",
|
||||||
locationSelectionMode: Literal["SLCT_N", "SLCT_A"] = None, # type: ignore
|
locationSelectionMode: Union[Literal["SLCT_N", "SLCT_A"], None] = None,
|
||||||
products: int = None, # type: ignore
|
products: Union[int, None] = None,
|
||||||
meta: str = None, # type: ignore
|
meta: Union[str, None] = None,
|
||||||
sattributes: Union[str, list] = None, # type: ignore
|
sattributes: Union[str, list, None] = None,
|
||||||
sinfotexts: Union[str, list] = None # type: ignore
|
sinfotexts: Union[str, list, None] = None
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""The location.nearbystops service returns a list of stops around a given center coordinate (within a
|
"""The location.nearbystops service returns a list of stops around a given center coordinate (within a
|
||||||
radius of 1000m). The returned results are ordered by their distance to the center coordinate.
|
radius of 1000m). The returned results are ordered by their distance to the center coordinate.
|
||||||
|
@ -14,15 +14,15 @@ def stop_by_name(accessId: str,
|
|||||||
json: bool = True,
|
json: bool = True,
|
||||||
maxNo: int = 10,
|
maxNo: int = 10,
|
||||||
stopType: Literal["A", "ALL", "AP", "P", "S", "SA", "SP"] = "ALL",
|
stopType: Literal["A", "ALL", "AP", "P", "S", "SA", "SP"] = "ALL",
|
||||||
locationSelectionMode: Literal["SLCT_N", "SLCT_A"] = None, # type: ignore
|
locationSelectionMode: Union[Literal["SLCT_N", "SLCT_A"], None] = None,
|
||||||
products: int = None, # type: ignore
|
products: Union[int, None] = None,
|
||||||
coordLat: Union[str, float] = None, # type: ignore
|
coordLat: Union[str, float, None] = None,
|
||||||
coordLong: Union[str, float] = None, # type: ignore
|
coordLong: Union[str, float, None] = None,
|
||||||
radius: Union[int, float] = 1000,
|
radius: Union[int, float] = 1000,
|
||||||
refineId: str = None, # type: ignore
|
refineId: Union[str, None] = None,
|
||||||
meta: str = None, # type: ignore
|
meta: Union[str, None] = None,
|
||||||
stations: Union[str, list] = None, # type: ignore
|
stations: Union[str, list, None] = None,
|
||||||
sattributes: Union[str, list] = None, # type: ignore
|
sattributes: Union[str, list, None] = None,
|
||||||
filterMode: Literal["DIST_PERI", "EXCL_PERI", "SLCT_PERI"] = "DIST_PERI"
|
filterMode: Literal["DIST_PERI", "EXCL_PERI", "SLCT_PERI"] = "DIST_PERI"
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""The location.name service can be used to perform a pattern matching of a user input and to retrieve a list
|
"""The location.name service can be used to perform a pattern matching of a user input and to retrieve a list
|
||||||
|
@ -13,87 +13,87 @@ def trip_find(accessId: str,
|
|||||||
lang: Literal["de", "da", "en", "es", "fr", "hu", "it", "nl", "no", "pl", "sv", "tr"] = "en",
|
lang: Literal["de", "da", "en", "es", "fr", "hu", "it", "nl", "no", "pl", "sv", "tr"] = "en",
|
||||||
json: bool = True,
|
json: bool = True,
|
||||||
|
|
||||||
originId: str = None, # type: ignore
|
originId: Union[str, None] = None,
|
||||||
originExtId: str = None, # type: ignore
|
originExtId: Union[str, None] = None,
|
||||||
originCoordLat: Union[str, float] = None, # type: ignore
|
originCoordLat: Union[str, float, None] = None,
|
||||||
originCoordLong: Union[str, float] = None, # type: ignore
|
originCoordLong: Union[str, float, None] = None,
|
||||||
originCoordName: str = None, # type: ignore
|
originCoordName: Union[str, None] = None,
|
||||||
|
|
||||||
destId: str = None, # type: ignore
|
destId: Union[str, None] = None,
|
||||||
destExtId: str = None, # type: ignore
|
destExtId: Union[str, None] = None,
|
||||||
destCoordLat: Union[str, float] = None, # type: ignore
|
destCoordLat: Union[str, float, None] = None,
|
||||||
destCoordLong: Union[str, float] = None, # type: ignore
|
destCoordLong: Union[str, float, None] = None,
|
||||||
destCoordName: str = None, # type: ignore
|
destCoordName: Union[str, None] = None,
|
||||||
|
|
||||||
via: str = None, # type: ignore
|
via: Union[str, None] = None,
|
||||||
viaId: str = None, # type: ignore
|
viaId: Union[str, None] = None,
|
||||||
viaWaitTime: int = 0,
|
viaWaitTime: int = 0,
|
||||||
|
|
||||||
avoid: str = None, # type: ignore
|
avoid: Union[str, None] = None,
|
||||||
avoidId: str = None, # type: ignore
|
avoidId: Union[str, None] = None,
|
||||||
|
|
||||||
viaGis: str = None, # type: ignore
|
viaGis: Union[str, None] = None,
|
||||||
|
|
||||||
changeTimePercent: int = 100,
|
changeTimePercent: int = 100,
|
||||||
minChangeTime: int = None, # type: ignore
|
minChangeTime: Union[int, None] = None,
|
||||||
maxChangeTime: int = None, # type: ignore
|
maxChangeTime: Union[int, None] = None,
|
||||||
addChangeTime: int = None, # type: ignore
|
addChangeTime: Union[int, None] = None,
|
||||||
maxChange: int = None, # type: ignore
|
maxChange: Union[int, None] = None,
|
||||||
|
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
time: Union[str, datetime] = None, # type: ignore
|
time: Union[str, datetime, None] = None,
|
||||||
|
|
||||||
searchForArrival: bool = False,
|
searchForArrival: bool = False,
|
||||||
|
|
||||||
numF: int = None, # type: ignore
|
numF: Union[int, None] = None,
|
||||||
numB: int = None, # type: ignore
|
numB: Union[int, None] = None,
|
||||||
|
|
||||||
context: str = None, # type: ignore
|
context: Union[str, None] = None,
|
||||||
|
|
||||||
poly: bool = False,
|
poly: bool = False,
|
||||||
polyEnc: Literal["DLT", "GPA", "N"] = "N",
|
polyEnc: Literal["DLT", "GPA", "N"] = "N",
|
||||||
|
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
products: int = None, # type: ignore
|
products: Union[int, None] = None,
|
||||||
operators: Union[str, list] = None, # type: ignore
|
operators: Union[str, list, None] = None,
|
||||||
|
|
||||||
attributes: Union[str, list] = None, # type: ignore
|
attributes: Union[str, list, None] = None,
|
||||||
sattributes: Union[str, list] = None, # type: ignore
|
sattributes: Union[str, list, None] = None,
|
||||||
fattributes: Union[str, list] = None, # type: ignore
|
fattributes: Union[str, list, None] = None,
|
||||||
lines: Union[str, list] = None, # type: ignore
|
lines: Union[str, list, None] = None,
|
||||||
lineids: Union[str, list] = None, # type: ignore
|
lineids: Union[str, list, None] = None,
|
||||||
|
|
||||||
avoidPaths: List[Literal["SW", "EA", "ES", "RA", "CB"]] = None, # type: ignore
|
avoidPaths: Union[List[Literal["SW", "EA", "ES", "RA", "CB"]], None] = None,
|
||||||
|
|
||||||
originWalk: Union[str, list] = None, # type: ignore
|
originWalk: Union[str, list, None] = None,
|
||||||
originBike: Union[str, list] = None, # type: ignore
|
originBike: Union[str, list, None] = None,
|
||||||
originCar: Union[str, list] = None, # type: ignore
|
originCar: Union[str, list, None] = None,
|
||||||
originTaxi: Union[str, list] = None, # type: ignore
|
originTaxi: Union[str, list, None] = None,
|
||||||
originPark: Union[str, list] = None, # type: ignore
|
originPark: Union[str, list, None] = None,
|
||||||
originMeta: Union[str, list] = None, # type: ignore
|
originMeta: Union[str, list, None] = None,
|
||||||
|
|
||||||
destWalk: Union[str, list] = None, # type: ignore
|
destWalk: Union[str, list, None] = None,
|
||||||
destBike: Union[str, list] = None, # type: ignore
|
destBike: Union[str, list, None] = None,
|
||||||
destCar: Union[str, list] = None, # type: ignore
|
destCar: Union[str, list, None] = None,
|
||||||
destTaxi: Union[str, list] = None, # type: ignore
|
destTaxi: Union[str, list, None] = None,
|
||||||
destPark: Union[str, list] = None, # type: ignore
|
destPark: Union[str, list, None] = None,
|
||||||
destMeta: Union[str, list] = None, # type: ignore
|
destMeta: Union[str, list, None] = None,
|
||||||
|
|
||||||
totalWalk: Union[str, list] = None, # type: ignore
|
totalWalk: Union[str, list, None] = None,
|
||||||
totalBike: Union[str, list] = None, # type: ignore
|
totalBike: Union[str, list, None] = None,
|
||||||
totalCar: Union[str, list] = None, # type: ignore
|
totalCar: Union[str, list, None] = None,
|
||||||
totalTaxi: Union[str, list] = None, # type: ignore
|
totalTaxi: Union[str, list, None] = None,
|
||||||
totalMeta: Union[str, list] = None, # type: ignore
|
totalMeta: Union[str, list, None] = None,
|
||||||
|
|
||||||
gisProducts: str = None, # type: ignore
|
gisProducts: Union[str, None] = None,
|
||||||
|
|
||||||
includeIv: bool = False,
|
includeIv: bool = False,
|
||||||
ivOnly: bool = False,
|
ivOnly: bool = False,
|
||||||
|
|
||||||
mobilityProfile: str = None, # type: ignore
|
mobilityProfile: Union[str, None] = None,
|
||||||
|
|
||||||
bikeCarriage: bool = False,
|
bikeCarriage: bool = False,
|
||||||
bikeCarriageType: Literal["SINGLEBIKES", "SMALLGROUPS", "LARGEGROUPS"] = None, # type: ignore
|
bikeCarriageType: Union[Literal["SINGLEBIKES", "SMALLGROUPS", "LARGEGROUPS"], None] = None,
|
||||||
|
|
||||||
sleepingCar: bool = False,
|
sleepingCar: bool = False,
|
||||||
couchetteCoach: bool = False,
|
couchetteCoach: bool = False,
|
||||||
@ -102,24 +102,24 @@ def trip_find(accessId: str,
|
|||||||
|
|
||||||
eco: bool = False,
|
eco: bool = False,
|
||||||
ecoCmp: bool = False,
|
ecoCmp: bool = False,
|
||||||
ecoParams: str = None, # type: ignore
|
ecoParams: Union[str, None] = None,
|
||||||
|
|
||||||
rtMode: Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"] = None, # type: ignore
|
rtMode: Union[Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"], None] = None,
|
||||||
|
|
||||||
unsharp: bool = False,
|
unsharp: bool = False,
|
||||||
trainFilter: str = None, # type: ignore
|
trainFilter: Union[str, None] = None,
|
||||||
economic: bool = False,
|
economic: bool = False,
|
||||||
groupFilter: str = None, # type: ignore
|
groupFilter: Union[str, None] = None,
|
||||||
|
|
||||||
blockingList: str = None, # type: ignore
|
blockingList: Union[str, None] = None,
|
||||||
blockedEdges: str = None, # type: ignore
|
blockedEdges: Union[str, None] = None,
|
||||||
|
|
||||||
trainComposition: bool = False,
|
trainComposition: bool = False,
|
||||||
includeEarlier: bool = False,
|
includeEarlier: bool = False,
|
||||||
withICTAlternatives: bool = False,
|
withICTAlternatives: bool = False,
|
||||||
tariff: bool = None, # type: ignore
|
tariff: Union[bool, None] = None,
|
||||||
trafficMessages: bool = False,
|
trafficMessages: bool = False,
|
||||||
travellerProfileData: str = None, # type: ignore
|
travellerProfileData: Union[str, None] = None,
|
||||||
withFreq: bool = True
|
withFreq: bool = True
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""The trip service calculates a trip from a specified origin to a specified destination. These might be
|
"""The trip service calculates a trip from a specified origin to a specified destination. These might be
|
||||||
|
@ -14,31 +14,31 @@ def trip_recon(accessId: str,
|
|||||||
json: bool = True,
|
json: bool = True,
|
||||||
poly: bool = False,
|
poly: bool = False,
|
||||||
polyEnc: Literal["DLT", "GPA", "N"] = "N",
|
polyEnc: Literal["DLT", "GPA", "N"] = "N",
|
||||||
date: Union[str, datetime] = None, # type: ignore
|
date: Union[str, datetime, None] = None,
|
||||||
useCombinedComparison: bool = None, # type: ignore
|
useCombinedComparison: Union[bool, None] = None,
|
||||||
acceptGaps: bool = None, # type: ignore
|
acceptGaps: Union[bool, None] = None,
|
||||||
allowDummySections: bool = None, # type: ignore
|
allowDummySections: Union[bool, None] = None,
|
||||||
flagAllNonReachable: bool = None, # type: ignore
|
flagAllNonReachable: Union[bool, None] = None,
|
||||||
matchCatStrict: bool = None, # type: ignore
|
matchCatStrict: Union[bool, None] = None,
|
||||||
matchIdNonBlank: bool = None, # type: ignore
|
matchIdNonBlank: Union[bool, None] = None,
|
||||||
matchIdStrict: bool = None, # type: ignore
|
matchIdStrict: Union[bool, None] = None,
|
||||||
matchNumStrict: bool = None, # type: ignore
|
matchNumStrict: Union[bool, None] = None,
|
||||||
matchRtType: bool = None, # type: ignore
|
matchRtType: Union[bool, None] = None,
|
||||||
enableRtFullSearch: bool = None, # type: ignore
|
enableRtFullSearch: Union[bool, None] = None,
|
||||||
enableReplacements: bool = None, # type: ignore
|
enableReplacements: Union[bool, None] = None,
|
||||||
arrL: int = None, # type: ignore
|
arrL: Union[int, None] = None,
|
||||||
arrU: int = None, # type: ignore
|
arrU: Union[int, None] = None,
|
||||||
depL: int = None, # type: ignore
|
depL: Union[int, None] = None,
|
||||||
depU: int = None, # type: ignore
|
depU: Union[int, None] = None,
|
||||||
passlist: bool = False,
|
passlist: bool = False,
|
||||||
showPassingPoints: bool = False,
|
showPassingPoints: bool = False,
|
||||||
rtMode: Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"] = None, # type: ignore
|
rtMode: Union[Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"], None] = None,
|
||||||
eco: bool = False,
|
eco: bool = False,
|
||||||
ecoCmp: bool = False,
|
ecoCmp: bool = False,
|
||||||
ecoParams: str = None, # type: ignore
|
ecoParams: Union[str, None] = None,
|
||||||
tariff: bool = None, # type: ignore
|
tariff: Union[bool, None] = None,
|
||||||
trafficMessages: bool = None, # type: ignore
|
trafficMessages: Union[bool, None] = None,
|
||||||
travellerProfileData: str = None # type: ignore
|
travellerProfileData: Union[str, None] = None
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""Reconstructing a trip can be achieved using the reconstruction context provided by any trip result in the
|
"""Reconstructing a trip can be achieved using the reconstruction context provided by any trip result in the
|
||||||
ctxRecon attribute of Trip element. The result will be a true copy of the original trip search result given
|
ctxRecon attribute of Trip element. The result will be a true copy of the original trip search result given
|
||||||
|
Loading…
Reference in New Issue
Block a user