In the modern world, every person needs to take a taxi in a certain period…