Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Simulation of GPS Trajectories

Hi Alemu,

I see that the dataset you linked to is *very* big. If you are planning to 
convert the whole dataset to SUMO routes, then I would recommend that you 
use Sumolib, as it is faster than TraCI. Sumolib can locate the nearest edge 
from a given gps-coordinate (see [1]). You can therefore iterate through all 
your coordinates in a script to get a sequence of edges. You can then parse 
those edges as a route file, using Python's xml library.

Hope that helps. BTW, I'm doing exactly this in my project. I can share my 
python code with you if you like. Just email me privately.

[1]: https://sumo.dlr.de/docs/Tools/Sumolib.html#locate_nearby_edges_based_on_the_geo-coordinate

Chris

On 2020/11/17 at 15:03, Jakob wrote:
> 
> Hello,
> usually SUMO is tasked with generation trajectories rather than replaying
> them so there isn't any direct support for this at the moment.
> However, you can use the TraCI API to force simulation objects (cars,
> persons) onto a given sequence of x,y positions. The API also supports
> conversion of lon,lat into x,y for the given map projection. See moveToXY
> in https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#move_to_xy_0xb4
> and https://sumo.dlr.de/docs/Geo-Coordinates.html
> 
> regards,
> Jakob
> 
> Am Mo., 16. Nov. 2020 um 14:21 Uhr schrieb alemu1221 <woldiealemu12@xxxxxxxxx>:
> 
> > Hello there,
> >
> > I got a gps trace from Microsoft research called Geolife project.
> >
> > For more detail, here is the link for the trace file.
> >
> > https://www.microsoft.com/en-us/download/details.aspx?id=52367
> >
> > Can I run a simulation using SUMO or any other simulation tools using this
> > file?
> >
> > I need a little help, please.
> >
> >
> > With Regards,
> >
> > Alemu W.
> >
> >
> >
> > --
> > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> > _______________________________________________
> > sumo-user mailing list
> > sumo-user@xxxxxxxxxxx
> > To unsubscribe from this list, visit
> > https://www.eclipse.org/mailman/listinfo/sumo-user
> >
> 




Back to the top