Is it Possible to Use Machine Learning for Ranking Alternatives?
Yes, you can rank those data points.

First, you need to define a quantitative measure of "potential danger" called a target variable. That could be a single variable (e.g., number of accidents) or weighted collection of variables, frequently called an index.

Then a regression model can be trained to predict that continuously-measured target variable and the data points can be rank-ordered.