It can be replaced, but the range and intensity of running in situ are smaller than that of running outdoors. So it takes 1 more hours to run outdoors for 30 minutes.
You can also jump rope and bobby, which is better than running outdoors. 20 minutes is equivalent to running outdoors for 30-40 minutes.