On the optimal fare policies in urban transportation