add a distance endpoint to the service