Output StopPointName
Signed-off-by: Markus Birth <markus@birth-online.de>
This commit is contained in:
@@ -19,7 +19,7 @@ class TflCountdown:
|
||||
|
||||
def __init__(self, api_key: str):
|
||||
self.api_key = api_key
|
||||
self.return_list = ["StopPointName", "StopID", "Towards", "LineName", "DestinationText", "EstimatedTime", "MessageText"]
|
||||
self.return_list = ["StopID", "StopPointName", "StopPointIndicator", "Towards", "LineName", "DestinationText", "EstimatedTime", "MessageText"]
|
||||
self.stop_ids = ["1597", "1598", "11333", "11334"]
|
||||
self.time_now = time.gmtime() * 1000
|
||||
|
||||
@@ -102,6 +102,7 @@ class TflCountdown:
|
||||
result["stops"][stop_id] = {
|
||||
"id": stop_id,
|
||||
"name": self.get_field(ld, "StopPointName"),
|
||||
"stop": self.get_field(ld, "StopPointIndicator"),
|
||||
"towards": self.get_field(ld, "Towards"),
|
||||
"lines": {},
|
||||
"messages": []
|
||||
|
||||
Reference in New Issue
Block a user