Hello,
1) you can run sumo with the option --fcd-output fcd.xml --fcd-output.geo
for a complete trace of vehicle positions along their route (including
start and end points)
2)
- you can do coordinate transformations using traci (this can also be done
after the acutal simulation is finished by simpy loading the network and
doing coordiate queries). see
http://sumo-sim.org/wiki/TraCI/Simulation_Value_Retrieval#Command_0x82:_Position_Conversion
- you can do coordinate transformations using sumolib (requires pyproj
python module). In the source code you will also find the formula.
  see http://sumo-sim.org/wiki/Tools/Sumolib
  the functions are sumolib.net.convertLonLat2XY and
sumolib.net.convertXY2LonLat
 Implementing the function sumolib.net.convertLanePos2XY is left as an
exercise for the reader (but be sure to send a patch if you do).

regards,
Jakob




2014-02-02 Arin Vinitchaykul <[email protected]>:

> Hi [email protected],
> Please help clarify my 2 questions below.
> 1)  Could you suggest how to get latitude and longitude coordinates of the
> vehicles instead of sumo x,y-coordinates?More specific details about what I
> would like to do:In the tripinfo file output from the simulation, it gives
> destinations of all vehicles in term of arrivalLane and arrivalPos. But I
> would like to know those destinations in term of latitude and longitude.
> 2) Is there an equation to convert sumo x,y-coordinates to
> lat/lon-coordinates?
> Thank you in advance for your reply.
> Best regards,Arin Vinitchaykul
>
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to