The solution lies in letting the router decide from which of the two directional edges to start / arrive. This can be done using traffic assignment zones which puts both edges (positive and negative number) into one zone. These zones can be generated automatically. See http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Traffic_assignement_zones_.28TAZ.29 http://sumo.dlr.de/wiki/Tools/District#generateBidiDistricts.py regards, Jakob
2017-04-30 8:03 GMT+02:00 mohsen hs <[email protected]>: > Hello all, > I have some data from actual traffic devices and would like to generate > the traffic based on the collected traffic data. My collected data is like > this: > Source Street(SS), latitude of SS, longitude of SS, number of observed > vehicles, Destination (DS), DS latitude, DS longitude, arrival time at DS > I have generated net.xml for my city and I wrote an application to extract > edges and store them in my database (db). I also wrote an application that > can generate trips.xml for me based on the data in my db. I also stored > lat, long, and street names from map.osm in my db. So I can easily > correlate lat and long (from map.osm) with edges (from net.xml). The > problem that I am facing is related to generating the trips based on the > edges (to and from). I can find the closest edge to my SS/SD by finding the > minimum Euclidean distance between SS/DSs' lat/long and edges' lat/long. > But, I have difficulty in selecting the negative edge or positive edge as > from/to. For example, after calculating the minimum Euclidean distance, > the start point matches the following edges (see below screenshot) and the > direction of travel (SS->SD) in my case is North. So, I have to select the > negative one, but I can not do this manually. I was wondering if you could > help me to find a way to automate this process. > > > Please let me know if you need more information. > Looking forward to hearing from you. > > Regards,Mohsen > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
