Distance calculation service.