eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.49k stars 1.41k forks source link

Public transport routes input as .add or .rou #8699

Open ArmelliniMG opened 3 years ago

ArmelliniMG commented 3 years ago

If our recommendation is to define the file with the public transport routes as an additional file, we should modify the documentation, bacause this is not so clear. The use of public transport routes as an additional file is to enable person rides with public transport. Is this then already defined? Should we change the documentation and adopt a global format?

If so, some docs to modify: https://sumo.dlr.de/docs/Tutorials/PublicTransport.html#sumocfg https://sumo.dlr.de/docs/Simulation/Public_Transport.html https://sumo.dlr.de/docs/Specification/Persons.html#rides https://sumo.dlr.de/docs/IntermodalRouting.html#defining_public_transport

namdre commented 3 years ago

In many cases, it shouldn't matter whether public transport is loaded with --route-files or --additional-files. In order for persons to use public transport, all that is needed is that the pt vehicles are loaded before the person and this will be the case if public transport departs earlier and is loaded from a separate file.

However, there may be cases where a single personTrip takes a very long time to move across the network and thus the pt vehicles used in the beginning of the trip are already loaded but the vehicles that could be used later during the trip (after changing at a station) are not yet loaded (due to incremental loading with --route-files).

To avoid this, it would indeed be safer to load all public transport at once with --additional-files

ArmelliniMG commented 3 years ago

Wouldn't it then be better to recommend the use of public transport routes as additional files? I mean, for us and for many experienced users this difference between uploading as a route-file or an additional-file is known. But for new users this could be quite confusing. This would also imply to change the file extension from .rou to .add.

namdre commented 3 years ago

Yes, to adding the recomendation of loading the pt routes with --additional-files. I'm not so sure whether we should really recommend a different file extension.I haven't got a strong gut feeling either way (@behrisch ?)

behrisch commented 3 years ago

I think the file suffix is a good indication for the user so yes let's change it.

behrisch commented 2 years ago

Needs documentation, ptlines2flows should generate .add.xml files and duarouter should load routes from additionals #7070