This word is taken from French taxe and measure (equivalent to English tariff and rice). It is precisely because of the invention and application of the meter that taxis are quickly called taxicab, or taxi for short. This word is spelled the same in English, French, German, Dutch, Spanish, Portuguese, Swedish, Danish and Norwegian.
In addition, the taxis at that time were also called hackneys or hacks, which were taken from the French word haquenee. Today, taxi drivers in many cities are still called taxi drivers.
Of course, there is no such thing as a free lunch, and taking a taxi costs money. In the early days, taxi drivers charged according to the estimated distance. But at the end of19th century, someone invented a taxi meter, which can automatically measure the actual driving distance of vehicles.