Added route calculator functionality to api