Due to the growing air quality concern in urban areas and rising fuel prices, urban bus fleets are progressively turning to hybrid electric vehicles (HEVs) which show higher efficiency and lower emissions in comparison with conventional vehicles. HEVs can reduce fuel consumption and emissions by combining different energy sources (i.e., fuel and batteries). In this sense, the performance of HEVs is strongly dependent on the energy management strategy (EMS) which coordinates the energy sources available to exploit their potential. While most EMSs are calibrated for general driving conditions, this paper proposes to adapt the EMS to the specific driving conditions on a particular bus route. The proposed algorithm relies on the fact that parti...