> 2. Is there any way to add routes or trips into the SUMO by using TraCI
> commands, similar to adding vehicles into SUMO simulation using the
> command - 'traci.vehicle.add()'?
There is traci.route.add function. Furthermore if you give the vehicle a
route consisting of two disconnected edges it will search a route
automatically (much like a trip).
> 3. What is the difference between 'traci.vehicle.' and
> 'traci._vehicle.' and why do both of these have different functions
> in them?
traci.vehicle is an instance of the class traci._vehicle.VehicleDomain,
so for seeing the methods offered by the python traci interface you need
to look into the definition of the VehicleDomain in _vehicle.py. For
calling the methods you refer to traci.vehicle