I can confirm this as I tried to hatch eggs as a passenger in a car while in thick traffic. It will work if you are reaaally moving slowly, like in a traffic jam. i.e. less than 5km/h. But go around 10km/h and it won’t count the distance anymore. Biking will also not work for hatching eggs, as soon as you move too…