Modeling demand for passenger and freight transportation