New date and time behavior, improved typing
This commit is contained in:
@@ -36,17 +36,17 @@ def journey_detail(
|
||||
### Args:
|
||||
* accessId (str): Access ID for identifying the requesting client. Get your key on [RMV website](https://opendata.rmv.de/site/start.html).
|
||||
* id (str): Specifies the internal journey id of the journey shall be retrieved. Maximum length 512.
|
||||
* json (bool, optional): Whether response should be retrieved as JSON. XML is returned if False. Defaults to True.
|
||||
* date (Union[str, datetime], optional): Day of operation. Represented in the format `YYYY-MM-DD`. By default the current server date is used. Defaults to None.
|
||||
* poly (bool, optional): Enables/disables the calculation of the polyline for each leg of the trip except any GIS route. Defaults to False.
|
||||
* polyEnc (Literal["DLT", "GPA", "N"], optional): Defines encoding of the returned polyline. Possible values are "N" (no encoding / compression), "DLT" (delta to the previous coordinate), "GPA" (Google encoded polyline format). Defaults to "N".
|
||||
* showPassingPoints (bool, optional): Enables/disables the return of stops having no alighting and no boarding in its passlist for each leg of the trip. Defaults to False.
|
||||
* rtMode (Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"], optional): Set the realtime mode to be used. Read more about this in HAFAS ReST Documentation. Defaults to None.
|
||||
* fromId (str, optional): Specifies the station/stop ID the partial itinerary shall start from. Defaults to None.
|
||||
* fromIdx (str, optional): Specifies the station/stop index the partial itinerary shall start from. Defaults to None.
|
||||
* toId (str, optional): Specifies the station/stop ID the partial itinerary shall end at. Defaults to None.
|
||||
* toIdx (str, optional): Specifies the station/stop index the partial itinerary shall end at. Defaults to None.
|
||||
* baim (bool, optional): Enables/disables BAIM search and response. Defaults to False.
|
||||
* json (bool, *optional*): Whether response should be retrieved as JSON. XML is returned if False. Defaults to True.
|
||||
* date (Union[str, datetime], *optional*): Day of operation. Represented in the format `YYYY-MM-DD`. By default the current server date is used. Defaults to None.
|
||||
* poly (bool, *optional*): Enables/disables the calculation of the polyline for each leg of the trip except any GIS route. Defaults to False.
|
||||
* polyEnc (Literal["DLT", "GPA", "N"], *optional*): Defines encoding of the returned polyline. Possible values are "N" (no encoding / compression), "DLT" (delta to the previous coordinate), "GPA" (Google encoded polyline format). Defaults to "N".
|
||||
* showPassingPoints (bool, *optional*): Enables/disables the return of stops having no alighting and no boarding in its passlist for each leg of the trip. Defaults to False.
|
||||
* rtMode (Literal["FULL", "INFOS", "OFF", "REALTIME", "SERVER_DEFAULT"], *optional*): Set the realtime mode to be used. Read more about this in HAFAS ReST Documentation. Defaults to None.
|
||||
* fromId (str, *optional*): Specifies the station/stop ID the partial itinerary shall start from. Defaults to None.
|
||||
* fromIdx (str, *optional*): Specifies the station/stop index the partial itinerary shall start from. Defaults to None.
|
||||
* toId (str, *optional*): Specifies the station/stop ID the partial itinerary shall end at. Defaults to None.
|
||||
* toIdx (str, *optional*): Specifies the station/stop index the partial itinerary shall end at. Defaults to None.
|
||||
* baim (bool, *optional*): Enables/disables BAIM search and response. Defaults to False.
|
||||
|
||||
### Returns:
|
||||
* dict: Output from RMV. Dict will contain "errorCode" and "errorText" if exception occurs.
|
||||
|
Reference in New Issue
Block a user