Added service method for determining threat distance for AI.