Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to get Junction type

net.getEdge(edgeID).getToNode().getType()
I do encourage trying some of these things by yourself (i.e. checking the return type of a method).

Am Mi., 23. Nov. 2022 um 22:02 Uhr schrieb Matheus Saueressig <matsaueressig@xxxxxxxxxxx>:
Okay,

If I want the Type of a Destination Node, the code should be net.getEdge(edgeID).getToNode().getID(), right?

De: sumo-user <sumo-user-bounces@xxxxxxxxxxx> em nome de Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Enviado: quarta-feira, 23 de novembro de 2022 17:58
Para: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Assunto: Re: [sumo-user] How to get Junction type
 
yes

Am Mi., 23. Nov. 2022 um 21:57 Uhr schrieb Matheus Saueressig <matsaueressig@xxxxxxxxxxx>:
This returns a string, correct?

De: sumo-user <sumo-user-bounces@xxxxxxxxxxx> em nome de Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Enviado: quarta-feira, 23 de novembro de 2022 17:17
Para: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Assunto: Re: [sumo-user] How to get Junction type
 
net.getNode(nodeID).getType()

Am Mi., 23. Nov. 2022 um 19:40 Uhr schrieb Matheus Saueressig <matsaueressig@xxxxxxxxxxx>:
Hello,

I'm trying to figure out how to get what type the junction/node is. I tried to find it in sumolib pydoc documentation, but didn't find it.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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