Hi Jacob,
Thank you so much for your consideration and your informative answer.
This is a great help and I appreciate that.I will try it.
Many thanksMohsen 

    On Tuesday, May 9, 2017 7:22 AM, Jakob Erdmann <[email protected]> 
wrote:
 

 Hello,
the updated documentation link is: 
http://sumo.dlr.de/wiki/TraCI/Simulation_Value_Retrieval#Command_0x82:_Position_Conversion
When using the python client, the following function can be used:
road, pos = traci.simulation.convertRoad(lon, lat, isGeo=True)
Note that the running time of this command grows linear with the size of the 
network (we didn't get around to optimizing it).
If you want to map vehicles to the road network you can also do this:
x, y = traci.simulation.convertGeo(lon, lat, fromGeo=True)
traci.vehicle.moveToXY(vehID, "", 0, x, y)
and the vehicle will be placed on the closest lane. The running time of this 
command is logarithmic in the size of the network.

regards,
Jakob


2017-05-08 21:06 GMT+02:00 mohsen hs <[email protected]>:

 Hi Jacob,
Thanks for your reply.
It was hyperlinked, I am not sure why it has not shown up. This is the link:
http://www.sumo.dlr.de/ userdoc/TraCI/Protocol.html# Position_Representations
  TraCI/Protocol - SUMO - Simulation of Urban Mobility


Many thanksMohsen

   

 On Tuesday, May 9, 2017 12:19 AM, Jakob Erdmann <[email protected]> 
wrote:
 

 Hello,
- can you link the old answer please? This way I can tell you the updated links
- when you say 'efficient' do you mean in terms of computation time or 
convenience?
regards,
Jakob

2017-05-08 10:36 GMT+02:00 mohsen hs <[email protected]>:

Hi there,
I am interested to know if there is an efficient way to map geo coordinates to 
edges in sumo. I found this which has been answered by Jacob about 4 years ago 
and the two links do not work anymore. I was wondering if you could kindly let 
me know of if there is any update about the accuracy of TraCl. In addition, it 
would be great if you could also refer me to some example if exist as no 
example exists here.



Many thanks
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]. net
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

Reply via email to