-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update stop retrieval endpoint in StopResource and AsyncStopRe…
…source
- Loading branch information
1 parent
591dabe
commit e08078b
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
|
||
import onebusaway | ||
|
||
|
||
def main_sync() -> None: | ||
client = onebusaway.OnebusawaySDK(api_key="TEST") | ||
agency_id = "40"; | ||
stop_ids = client.stop_ids_for_agency.list(agency_id) | ||
if stop_ids.data: | ||
for stop_id in stop_ids.data.list: | ||
print(stop_id) | ||
|
||
|
||
if __name__ == "__main__": | ||
main_sync() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters