This plpgsql function will accept any number of variables (point coordinates in our case) points (start, end, and other via points) and will compute the best possible shortest route, considering the reverse_cost