Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Inquiry : Regarding sumo-traci-api : getLastStepVehicleNumber(edgeId) & range querying

Namaste,

I have the following 2 doubts regarding the traci-api.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. This is regarding the getLastStepVehicleNumber()

Existing Api: getLastStepVehicleNumber(self, edgeID)

Input: edgeId
Output:  Number of vehicles in the given edgeID.

Requirement : getLastStepVehicleNumber(self,List<edgeID>)
Input: List<edgeID>
Output: List of number of vehicles in each edgeID

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. Is there any support for the following requirement? (range querying of edgeID)

Requirement:  If I pass two points P and Q, which internally 2 positions obtained by getPosition(self, vehID), can I get a list of all edges present in the rectangle in which P and Q are two diagonal points? Does sumo support any such api?

Input: P, Q
Output: List of edgeID
I have attached a figure to explain the requirement. (sumo_traci.jpg)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Regards,
Sheshadri K R

+91-9845213149

Attachment: sumo_traci.jpg
Description: sumo_traci.jpg


Back to the top