REST API to get the distance between two points