In an effort to sustain efficient and safe movements, this paper examines SPT performances according to a set of key evaluation metrics. In this respect, two urban transportation systems of freight are tested: (1) the conventional transportation system, (2) the SPT system with heterogeneous fleets. The proposed model is coupled with a stochastic process in order to provide a range of real-world data of Casablanca city (Morocco) based on institutional surveys. Such a system is intended to integrate the two flows of passengers and containerized freights in Public Transportation (PT) patterns towards more sustainable, efficient, and socially suitable mobility. This paper deals with an agent-based simulation to investigate and evaluate the potential impacts of implementing Shared Public Transports (SPT) in urban areas. Focusing on the main system, real-time retrieval of outputs based on mutual interactions of the whole autonomous entities makes the agent-based simulation very promising. Simulation and computer modeling have a key role in understanding transportation systems.