Added filtering to heatmap endpoint as well as encoding to the proper dictonary form to be returned to clientside. Need to add bucket sorting by precision to finish up the end point