File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55from onebusaway import OnebusawaySDK
66
7- # Load settings from .en`v file, if it exists. If not, we'll use the
7+ # Load settings from .env file, if it exists. If not, we'll use the
88# Puget Sound server URL (which is also the default in the SDK) and
99# the 'TEST' API key.
1010settings = load_settings (
2727
2828# make it easy to look up routes by ID.
2929reference_map = {}
30- for route in references .routes :
31- reference_map [route .id ] = route
30+ for ref_route in references .routes :
31+ reference_map [ref_route .id ] = ref_route
3232
3333for stop in stops :
3434 print (f"{ stop .name } ({ stop .lat } , { stop .lon } )" )
3939 route : Any = reference_map [route_id ]
4040
4141 # Get a string that looks like "D Line - Blue Ridge/Crown Hill - Ballard - Downtown Seattle"
42- description = [route .null_safe_short_name , route .description ]
43- description = [e for e in description if e ]
44- description = " - " .join (description )
45- print (f" { description } " )
42+ description_list = [route .null_safe_short_name , route .description ]
43+ description_list = [e for e in description_list if e ]
44+ description_str = " - " .join (description_list )
45+ print (f" { description_str } " )
You can’t perform that action at this time.
0 commit comments