|
|
@ -59,9 +59,10 @@ def get_name_from_direction(route, direction, api_key=api, timeout=None): |
|
|
@disk_cache_with_setup |
|
|
@disk_cache_with_setup |
|
|
def get_data_from_stop_id(stop_id, __setup__=None): |
|
|
def get_data_from_stop_id(stop_id, __setup__=None): |
|
|
if __setup__ is None: |
|
|
if __setup__ is None: |
|
|
info = get_times(stop_id)["prd"][0] |
|
|
|
|
|
|
|
|
info = get_times(stop_id) |
|
|
else: |
|
|
else: |
|
|
info = __setup__ |
|
|
info = __setup__ |
|
|
|
|
|
info = info["prd"][0] |
|
|
ret = { |
|
|
ret = { |
|
|
"route_direction": info["rtdir"], |
|
|
"route_direction": info["rtdir"], |
|
|
"route_name": info["des"], |
|
|
"route_name": info["des"], |
|
|
|