Hi,
there is currently no support for parsing bus stops or tram stops from OSM
(although we intended to add it eventually).
Right now, bus stops must be defined in xml files and loaded with option
-a. There is no functional difference between bus stops and tram stops from
sumo's point of view. (see
http://sumo.dlr.de/wiki/Simulation/Public_Transport).
I suggest you look at netimport/NIImporter_OpenStreetMap.cpp and write some
code to parse busStops/tramStops from OSM yourself and share it with us (-:

If you merge your networks by pasting, you will lose accuracy for streets
where trams and cars share a lane. It's better to import all edges in one
go and do the filtering with netconvert options (i.e.
--keep-edges.by-vclass passenger,tram)

regards,
Jakob

2015-10-01 15:46 GMT+02:00 Łukasz Jabłoński <[email protected]>:

> Hi everyone,
> I have a simulation of particular streets, with traffic lights, used to
> calibrate Krauss model. It works fine. My next task is to add tram lanes to
> my simulation. I obtained .osm map, trimmed it with osmconvert, kept only
> tram edges with osmfilter. Map is fine, I checked it with JOSM, there are
> only tram rails and tram stops left(stops are nodes, with tags such as
> railway=tram_stop and public_transport=stop_position).
> Next step is to convert it into .net.xml file, using NETCONVERT. I did it
> using '--xml-type-files' command, and without defining types. I get
> .net.xml file, paste contain into my source .net.xml file. It works, I got
> the tram-edges into simulation, but there are no tramstops. And I got
> jammed at this point, as there are no tutorials covering this subject.
> There are some about busStops, but as far as I'm concerned it is something
> different. Can anyone help me with getting tram rails and tram stops from
> osm file, into .net.xml file?
>
> Thanks in advance.
> Regards,Luke
>
> ------------------------------------------------------------------------------
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to