The bus times aren’t even based on the actual buses, they’re based on the timetable that the bus is SUPPOsed to leave/arrive. So it obviously doesn’t take into account traffic etc. Don’t look at the times or you’ll end up missing the bus or waiting hours.
If you want to make a transport app, learn from USTransit