dockers/API/restV1.py
def price_predict(commands):
    '''
    Very bad prediction of the price, but fun to make
    '''
    vars = commands.split("&")
    vars = [float(i.replace('+','.')) for i in vars]
    # help: vars = [lat, lon, size, tijd]

    # this makes a prediction
    price = predict_price(vars[0], vars[1], vars[2], vars[3])


    return jsonify({"price": list(price)[0]}), 200

    Very bad prediction of the price, but fun to make
    
Very bad prediction of the price, but fun to make
Very bad prediction of the price but fun to make
def price_predict(commands):
    vars = commands.split("&")
    vars = [float(i.replace('+','.')) for i in vars]
    price = predict_price(vars[0], vars[1], vars[2], vars[3])
    return jsonify({"price": list(price)[0]}), 200
def price_predict ( commands ) : vars = commands . split ( "&" ) vars = [ float ( i . replace ( '+' , '.' ) ) for i in vars ] price = predict_price ( vars [ 0 ] , vars [ 1 ] , vars [ 2 ] , vars [ 3 ] ) return jsonify ( { "price" : list ( price ) [ 0 ] } ) , 200
Very bad prediction of the price, but fun to make
Very bad prediction of the price but fun to make
'''
    Very bad prediction of the price, but fun to make
    ''' # help: vars = [lat, lon, size, tijd] # this makes a prediction
commands