Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to retrieve internal edge info in sumolib

Hello,
The connections to internal lanes are implicit in the connection attribute con.getViaLaneID()
If you call sumolib.net.readNet(yournetfile, withInternal=True) then the internal lanes, internal junctions and the connections from internal lanes are loaded into the network graph.

the internal lanes from a given 'normal' lane can be obtained like this:
[net.getLane(c.getViaLaneID()) for c in lane.getOutgoing()]

regards,
Jakob


2018-01-05 1:30 GMT+01:00 Changjian Li via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
Hi all,

I'm trying to use sumolib to retrieve the connection of lanes using
the `getOutgoing()` function, but it seems that internal edges/lanes
in the intersection is ignored. Is there any way to get the connection
of internal edges as well?

Thanks.

Regards,
Changjian

------------------------------------------------------------------------------
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
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Back to the top