Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Imitating a person moving from work to home

Hello,
there is currently no support for specifying stop locations with geo coordinates.
The recommended workaround is to use our libraries to do the geomapping beforehand: https://sumo.dlr.de/docs/Tools/Sumolib.html#coordinate_transformations

regards,
Jakob

Am Fr., 21. Mai 2021 um 02:00 Uhr schrieb Dom Newman <dominicnewman022@xxxxxxxxx>:
Hi, I have a network taken from OSM of a city and census data that i'm using that contains information on where people live and work. I'm creating a model to simulate rush hour traffic during these times.

I've read the documentation on persons and routes but can't find anything to easily create a population of persons that can move between a home position and a work position, not creating traffic while at this work or home position. I'm not able to work with links as all my data is lat lon. 

I've tried using a routes file similar to:

    <vType id="car" vClass="passenger"/>
    <vType id="bicycle" vClass="bicycle"/>

    <trip id="0_0" depart="triggered" fromLonLat="54.779268, -1.553100" toLonLat="54.778274, -1.586564" type="car"/>
    <trip id="0_1" depart="triggered" fromLonLat="54.778274, -1.586564" toLonLat="54.779268, -1.553100" type="car"/>
    <person id="0" depart="0:0:0">
        <stop until="0830" actType="h"/>
        <ride lines="0_0" to="None"/>
        <stop until="1700" actType="w"/>
        <ride lines="0_1" to="None"/>
        <stop until="2400" actType="h"/>
    </person>

but this isn't valid as there is no lane for stop. 

How can I create this behaviour in which agents move between locations defined in lat lon and are removed from traffic at these locations.

thanks,
Dom Newman
_______________________________________________
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