These were called 'taxi-cabs'. Nowadays either word is used. In UK the word 'taxi' is used for the diesel-engine ones with a high roof to the passenger compartment (also known as 'black cabs/black taxis'), and the term 'minicab' is used for standard passenger saloon cars that just happen to be available for hire.