I was in/on the taxi on my way to your place when I saw my friend Joe walking his new dog in the street. Is this sentence okay and are both prepositions okay?