Hi Jakob,

Thank you very much for helping! I appreciate it.

Have a good day and stay safe!

Sincerely,
Dayuan


————
Dayuan(Neil) Tan
UMBC



> On Sep 21, 2020, at 05:57, Jakob Erdmann <[email protected]> wrote:
> 
> Generally, you will have to perform a recursive search in the road network 
> since there may be multiple edges between adjacent tls even if they are in 
> close proximity (due to changes in lane number of speed). You can use sumolib 
> to traverse the network graph: https://sumo.dlr.de/docs/Tools/Sumolib.html 
> <https://sumo.dlr.de/docs/Tools/Sumolib.html>
> 
> regards,
> Ja
> 
> Am Mo., 21. Sept. 2020 um 03:50 Uhr schrieb Dayuan Tan <[email protected] 
> <mailto:[email protected]>>:
> BTW: My stupid solution: 
> 
> Let's call this TL as TL1. Assume it's crossroads. It has four nearby TLs 
> which are TL_E, TL_N, TL_W, TL_S.
> 
> 1, get TL1’s edges E1, E2, E3, E4, 
> 2, then get that edge E1's connected TLs. Usually an edge has two TLs. So one 
> will be TL1 and another one is that nearby TL we want.
> 3, repeat for E2, E3, E4.
> 
> But this is just so redundant. Any other better idea? 
> Thank you very much!
> 
> 
> 
> 
> ————
> Dayuan(Neil) Tan
> UMBC
> 
> 
> 
>> On Sep 20, 2020, at 21:36, Dayuan Tan <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Dear all,
>> 
>> Hope everything goes well!
>> 
>> Could you help to tell me how to get a TL's nearby TLs? 
>> Usually a Traffic Light has 4 nearby TLs in most city road net, but how to 
>> get the IDs of those 4 TLs?
>> Any idea or suggestion?
>> 
>> Thank you very much in advance! Any reply will be appreciated!
>> 
>> Have a good day and stay safe!
>> 
>> 
>> Sincerely,
>> Dayuan
>>  
>> 
>> 
>> ————
>> Dayuan(Neil) Tan
>> UMBC
>> 
>> 
>> 
> 
> _______________________________________________
> sumo-user mailing list
> [email protected] <mailto:[email protected]>
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user 
> <https://www.eclipse.org/mailman/listinfo/sumo-user>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to