We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff8599 commit 19f0f30Copy full SHA for 19f0f30
1 file changed
examples/schedule_for_stop.py
@@ -0,0 +1,16 @@
1
+import onebusaway
2
+
3
4
+def main_sync() -> None:
5
+ client = onebusaway.OnebusawaySDK(api_key="TEST")
6
+ stop_id = "1_75403"
7
+ schedule_for_stop = client.schedule_for_stop.retrieve(stop_id)
8
9
+ if schedule_for_stop.data and schedule_for_stop.data.entry:
10
+ print(schedule_for_stop.data.entry)
11
+ else:
12
+ print("schedule data or entry is None.")
13
14
15
+if __name__ == "__main__":
16
+ main_sync()
0 commit comments