Car sharing simulator

This simulator is a trace-drive simulator which relies on the real data coming from Car2go, a car sharing provider working in 25 cities spread around the world. Please notice that the code is available, but the data is subjected to some restrictions.

If you are interested on the data, please contact: or

Simulator structure

The simulator uses the data to:

  • Reconstruct the operative area
  • Create a trace composed by a sequence of consecutive car rentals

The trace is a an array of events indexed by timestamp. Each event is either a rental begin, or a rental end. According to the event type, the simulator change the status of the car from booked to parked or viceversa and compute all the information about the car position, battery level etc..

This simulator has the aim to evaluate the car fleet conversion  from combustion engine cars to electric vehicles, and evaluate the impact of different charging stations placement and return policies.

Create the basic structures

Execute the

To run this script,  the information of the database where data is stored is required. Please contact us to ask the required information.

Run the simulation

When data is available, to run a simulation use the Inside of the several parameters can be set:

  • TODO



Number of Infeasible trips
Reroute percentage: How many times the user is obliged by the system to leave the car in a charging station
Recharge percentage: How many times the user physically plugs the car
Average e median walked distance: how much an user have to walk each time he is rerouted
Average and median battery State of Charge (SOC)
Average and median time spent in a charging station
Percentage of users willingness

The simulator is available at:



Anonymized datasaset of 2 months of trips of car sharing users in the city of Turin