def main(): from get_busRuns import get_busRuns from get_URIDs import get_URIDs import pandas as pd print("2mi ambulatory taxi") print("cost: $" + str(taxi(47.602558, -122.142807, 47.631370, -122.142979, False))) # $ 8.20 print("2mi wheelchair taxi") print("cost: $" + str(taxi(47.602558, -122.142807, 47.631370, -122.142979, True))) # $28.00 data = pd.read_csv("../data/single_day_TimeWindows.csv") bus = "680SEB" print("Run 680SEB after 15:21 4/14/14 on provider 5") print("cost: $" + str(newBusRun(get_busRuns(data, bus, get_URIDs(data, bus, 53684)[1]), 5))) # 187.4 print("Run 680SEB after 15:21 4/14/14 on provider 6") print("cost: $" + str(newBusRun(get_busRuns(data, bus, get_URIDs(data, bus, 53684)[1]), 6)))
def main(): import pandas as pd import numpy as np from get_URIDs import get_URIDs from add_TimeWindows import add_TimeWindows data_filepath = "../data/single_day_TimeWindows.csv" data_allday = pd.read_csv(data_filepath) #import one day's QC'ed data # print(data_allday) windowsz = 30 * 60 #Variable window size, in seconds # newdata = add_TimeWindows(data_allday, windowsz) # Bus = newdata.Run.iloc[50] bus = '680SEB' busRun = get_busRuns(data_allday, bus, get_URIDs(data_allday, bus, 53684)[1]) print busRun