def getRoadsWithName(token, road_list):
    # get a list of all roadnames by road id
    data = getRoadNames(token=token, road_list=road_list)

    if len(data["errors"]) > 0:
        print data["errors"]
        return []
    else:
        return data["data"]
Пример #2
0
def getRoadsWithName(token, road_list):
    #get a list of all roadnames by road id
    data = getRoadNames(token=token, road_list=road_list)

    if len(data['errors']) > 0:
        print data['errors']
        return []
    else:
        print 'Size of road names is ' + str(sys.getsizeof(data['data'])) + ' bytes'
        return data['data']