def view_menu(): print("\n- Menu Viewer -") print("\tPlease type your ADDRESS using the following form.") print("\tHOUSE #, Full Street Name, City, State/Province, ZIP/Postal Code") print("\tEXAMPLE: 700 Pennsylvania Avenue NW, Washington, DC, 20408") ret_address = ConsoleInput.get_valid_input("ADDRESS: ", ConsoleInput.validate_address) address = Address(*ret_address.split(',')) closest_store = StoreLocator.nearby_stores(address)[0] menu = closest_store.get_menu() print(menu) return
def view_stores(): print("\n- Store Locator -") print("\tPlease type your ADDRESS using the following form.") print("\tHOUSE #, Full Street Name, City, State/Province, ZIP/Postal Code") print("\tEXAMPLE: 700 Pennsylvania Avenue NW, Washington, DC, 20408") ret_address = ConsoleInput.get_valid_input("ADDRESS: ", ConsoleInput.validate_address) address = Address(*ret_address.split(',')) print("\n- CLOSEST STORES -") local_stores = StoreLocator.nearby_stores(address) for i, store in enumerate(local_stores[:5]): print(str(i + 1) + ".") print(store) print() return